- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to change zookeeper parameter non-managed by ambari
- Labels:
-
Apache Ambari
Created 12-18-2018 04:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In order to add zookeeper observer in my Zookeeper observer, I need to make append the line "server.4=hostname:2888:3888" by ":observer" in configuration file zoo.cfg . However, this parameter is not managed by ambari. I tried to use the ambari script but not display all parameter
/var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin--port=8080 --action=get --host=hostnamexx--cluster=CLUSTPOC--config-type=zoo.cfg --file=/tmp/zooConf.json
How to change this line
server.4=hostname:2888:3888
to
server.4=hostname:2888:3888:observer
Created 12-18-2018 04:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lam rab,
Unfortunately ambari doesnt allow you add observers in the zoo.cfg.
You can refer to : https://issues.apache.org/jira/browse/AMBARI-24748
here user is facing the same issue that you are facing.
See if you can manually start zookeeper after changing the zoo.cfg which might help you.
Please accept this answer if this helped you.
Created 12-18-2018 04:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lam rab ,
If ambari is not managing zoo.cfg you cannot change it via configs.py also as configs.py do the same thing ambari does in web UI .why dont you mannually ssh to zeppelin host and
[root@asnaik4 conf]# cd /usr/hdp/current/zookeeper-server/conf [root@asnaik4 conf]#vi zoo.cfg
If ambari is not managing a config file , the script also cannot help
Please accept this answer if it helps you.
Created 12-18-2018 04:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for you reply, but when I modify via vim zoo.cfg, the config removed when I restart the Zookeeper service.
configs.py or APIs cannot help as you see, they get only the parameters managed by Ambari.
Created 12-18-2018 04:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lam rab,
Unfortunately ambari doesnt allow you add observers in the zoo.cfg.
You can refer to : https://issues.apache.org/jira/browse/AMBARI-24748
here user is facing the same issue that you are facing.
See if you can manually start zookeeper after changing the zoo.cfg which might help you.
Please accept this answer if this helped you.
Created 12-20-2018 09:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The change with vim zoo.cfg and restart zookeeper manually doesn't help as long as we restart zookeeper from ambari