[
https://issues.apache.org/jira/browse/ZOOKEEPER-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Hunt updated ZOOKEEPER-1161:
------------------------------------
Attachment: ZOOKEEPER-1161.patch
This patch adds the ability to turn off the autocreate feature. It also adds a
new script "zkServer-initialize.sh" to bin to support this feature - ie create
the required directories for the user. See the docs I added to the admin guide
for more details on this. I had intended to add this as a command to
zkServer.sh, however the cfg file handling (as $2) in that script make it
unworkable (could have done it as an ugly hack but that wouldn't have been a
good idea).
Notice that I also added a test-scripts.sh. I'm worried that we are not
validating our scripts and bad behaviors could be introduced. as a result I've
taken the time to add tests for zkServer and the new init script. It's not
hooked into the build yet, but we can run it manually for the time being.
Eventually however it should be added and the tests themselves exteded.
> Provide an option for disabling auto-creation of the data directroy
> -------------------------------------------------------------------
>
> Key: ZOOKEEPER-1161
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1161
> Project: ZooKeeper
> Issue Type: New Feature
> Components: scripts, server
> Reporter: Roman Shaposhnik
> Assignee: Patrick Hunt
> Fix For: 3.5.0
>
> Attachments: ZOOKEEPER-1161.patch
>
>
> Currently if ZK starts and doesn't see and existing dataDir it tries to
> create it. There should be an option to tweak this behavior. As for default,
> my personal opinion is to NOW allow autocreate.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira