Not having a datadir is currently not possible - the servers expect to
read/write snapshot and log files. In particular the leader needs to be
able to stream updates, and in some cases the entire latest snapshot, to
a follower. It does this by streaming data directly from the filesystem.
On 07/20/2010 11:01 PM, Ashwin Jayaprakash wrote:
I did try a quick test on Windows (yes, some of us use Windows :)
I thought simply changing the "dataDir" to the "/dev/null" equivalent on
Windows would do the trick. It didn't work. It looks like a Java issue
because I noticed inconsistencies in the File API regarding this. I wrote
about it here -
BTW the Windows equivalent is "nul".
This is the error I got on Windows (below). The mkdirs() returns false. As
noted on my blog, it returns true for some cases.
2010-07-20 22:25:47,851 - FATAL [main:zookeeperserverm...@62] - Unexpected
exception, exiting abnormally
java.io.IOException: Unable to create data directory nul:\version-2