Hi All,
I have created a custom service for Zookeeper and using Ambari 2.1.0 .In
status function of master.py if its defined in this way:
*def status(self, env):*
* config = Script.get_config()*
* zkDataDir = config['configurations']['zoo']['dataDir']*
* print 'Status of the Zookeeper Master'*
* print ******************************************
* print zkDataDir*
* dummy_master_pid_file = format("{zkDataDir}/zookeeper_server.pid")*
* check_process_status(dummy_master_pid_file) *
Ambari is always showing status of application stopped but when I provide
the constant path of the pid file for example:
*dummy_master_pid_file = "/usr/share/zookeeper/tmp/zookeeper_server.pid")*
it starts working perfectly and Ambari is able to correctly show the status
of the application. I need a variable pid file instead of a constant one. I
would to thankful if someone suggest me a way out.
Thanking you in advance
--
Souvik Sarkhel