Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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