[ https://issues.apache.org/jira/browse/SOLR-9891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson updated SOLR-9891: --------------------------------- Attachment: SOLR-9891.patch Not tested on Windows. I've copy/pasted/edited what I think are the necessary bits into bin/solr.cmd, but it needs someone to try it out before I can check it in. If some kind person with a windows setup could give this patch a spin on Windows I would be grateful. NOTE: I've used 'mkroot' as the command. I'm not particularly wedded to that name. What opinions do people have? Two possibilities that spring to mind are 'mkpath' and 'mkdir'... I slightly prefer 'mkroot' even though it's really a generic 'mkpath' command. The intent is to create something for chroot, but it's really more general than that. Not sure that generality needs to be advertised though... > bin/solr cannot create an empty Znode which is useful for chroot > ---------------------------------------------------------------- > > Key: SOLR-9891 > URL: https://issues.apache.org/jira/browse/SOLR-9891 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Erick Erickson > Assignee: Erick Erickson > Priority: Minor > Attachments: SOLR-9891.patch > > > This came to my attention just now. To use a different root in Solr, we say > this in the ref guide: > IMPORTANT: If your ZooKeeper connection string uses a chroot, such as > localhost:2181/solr, then you need to bootstrap the /solr znode before > launching SolrCloud using the bin/solr script. To do this, you need to use > the zkcli.sh script shipped with Solr, such as: > server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181/solr -cmd > bootstrap -solrhome server/solr > I think all this really does is create an empty /solr ZNode. We're trying to > move the common usages of the zkcli scripts to bin/solr so I tried making > this work. > It's clumsy. If I try to copy up an empty directory to /solr nothing happens. > I got it to work by copying file:README.txt to zk:/solr/nonsense then delete > zk:/solr/nonsense. Ugly. > I don't want to get into reproducing the whole Unix shell file manipulation > commands with mkdir, touch, etc. > I guess we already have special 'upconfig' and 'downconfig' commands, so > maybe a specific command for this like 'mkroot' would be OK. Do people have > opinions about this as opposed to 'mkdir'? I'm tending to mkdir. > Or have the cp command handle empty directories, but mkroot/mkdir seems more > intuitive if not as generic. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org