From cb2f9f54aaec7ff43ee7c96d991b12de4c689168 Mon Sep 17 00:00:00 2001 From: renkai Date: Wed, 2 Sep 2015 13:26:43 +0800 Subject: [PATCH] replace default storm.local.dir value to absolute path. --- conf/defaults.yaml | 2 +- docs/documentation/Setting-up-a-Storm-cluster.md | 7 +++++-- storm-core/src/clj/backtype/storm/config.clj | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/conf/defaults.yaml b/conf/defaults.yaml index 634cd598221..b3a09f01a16 100644 --- a/conf/defaults.yaml +++ b/conf/defaults.yaml @@ -22,7 +22,7 @@ java.library.path: "/usr/local/lib:/opt/local/lib:/usr/lib" ### storm.* configs are general configurations # the local dir is where jars are kept -storm.local.dir: "storm-local" +storm.local.dir: "/var/storm-local" storm.log4j2.conf.dir: "log4j2" storm.zookeeper.servers: - "localhost" diff --git a/docs/documentation/Setting-up-a-Storm-cluster.md b/docs/documentation/Setting-up-a-Storm-cluster.md index 07b4edaeb36..0ae8b8bc21e 100644 --- a/docs/documentation/Setting-up-a-Storm-cluster.md +++ b/docs/documentation/Setting-up-a-Storm-cluster.md @@ -52,10 +52,13 @@ storm.zookeeper.servers: If the port that your Zookeeper cluster uses is different than the default, you should set **storm.zookeeper.port** as well. -2) **storm.local.dir**: The Nimbus and Supervisor daemons require a directory on the local disk to store small amounts of state (like jars, confs, and things like that). You should create that directory on each machine, give it proper permissions, and then fill in the directory location using this config. For example: +2) **storm.local.dir**: The Nimbus and Supervisor daemons require a directory on the local disk to store small amounts of state (like jars, confs, and things like that). + You should create that directory on each machine, give it proper permissions, and then fill in the directory location using this config. + You'd better set it to absolute path rather than relative path,otherwise it will cause unexpected behavior when you launch daemons + from different directories.For example: ```yaml -storm.local.dir: "/mnt/storm" +storm.local.dir: "/var/storm-local" ``` 3) **nimbus.host**: The worker nodes need to know which machine is the master in order to download topology jars and confs. For example: diff --git a/storm-core/src/clj/backtype/storm/config.clj b/storm-core/src/clj/backtype/storm/config.clj index 320948bbcac..159779739d5 100644 --- a/storm-core/src/clj/backtype/storm/config.clj +++ b/storm-core/src/clj/backtype/storm/config.clj @@ -102,7 +102,7 @@ ; ; ### storm.* configs are general configurations ; # the local dir is where jars are kept -; storm.local.dir: "/mnt/storm" +; storm.local.dir: "/var/storm-local" ; storm.zookeeper.port: 2181 ; storm.zookeeper.root: "/storm"