Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

zookeeper datadir name configuration

avatar
Contributor

Simple question

 

When I deploy zookeeper programatically I change the datadir using the Cloudera API with the variable:

 

conf = {"dataDir": "/mnt/mydir" }

 

that I pass to the zookeeper service with:

 

zook_service.update_config(conf)

 

This indeed works and I can see the value in the Cloudera Manager

 

But when I check the /etc/zookeeper/conf/zoo.cfg file I see:

 

dataDir=/var/lib/zookeeper

 

Which one takes precedence?

 

1 ACCEPTED SOLUTION

avatar
Files in /etc/ are not used by processes managed by Cloudera Manager.

See here for more info:
http://blog.cloudera.com/blog/2013/07/how-does-cloudera-manager-work/

Thanks,
Darren

View solution in original post

3 REPLIES 3

avatar
Files in /etc/ are not used by processes managed by Cloudera Manager.

See here for more info:
http://blog.cloudera.com/blog/2013/07/how-does-cloudera-manager-work/

Thanks,
Darren

avatar
Ah, my bad. Darren caught it. Cloudera Manager will write zoo.cfg to
/var/run/cloudera-scm-agent/process/ (look for the latest director for
zookeeper)

Regards,
Gautam Gopalakrishnan

avatar
Did you run a rolling restart of the ZooKeeper service? I am also not
sure if Cloudera Manager copies the data from the old to the new
location, that is something you might have to take care of manually as
well

Regards,
Gautam Gopalakrishnan