Created 03-02-2017 03:31 PM
Guys, we're reinstalling Zeppelin in our HDP 2.5, when we are finishing to install, received this error :
==============================
resource_management.core.exceptions.Fail: Execution of '/usr/hdp/current/zeppelin-server/lib/bin/zeppelin-daemon.sh stop >> /var/log/zeppelin/zeppelin-setup.log' returned 127. TERM environment variable not set. -bash: /usr/hdp/current/zeppelin-server/lib/bin/zeppelin-daemon.sh: No such file or directory
==============================
Looking at master.py we saw "zeppelin_params.dir" in the place of this problem, in our mind is been valued like :
/usr/hdp/current/zeppelin-server/lib/ -- we know that /lib/ is wrong
Question,
How to change zeppelin_params.dir ?
Created 03-02-2017 05:08 PM
Most probably your ZEPPELIN_HOME environment variable is pointing to
/usr/hdp/current/zeppelin-server/lib
instead of
/usr/hdp/current/zeppelin-server/
I would recommend fixing that.
You can change the python files but be very careful as ambari will cache these scripts and next installs will look at the cached file. So if you change the master.py file and nothing's changed, look in the cache directory.
Another hassle-free workaround will be to create a symlink of 'bin' in 'lib' directory. But if HOME directory is messed up, other things will start to break.
Created 03-02-2017 05:47 PM
Hi Umar, we fixed and works, but know it's stoping in another place, seems me the pid is not been created, maybe it is ?
=============================
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/ZEPPELIN/package/scripts/master.py", line 235, in <module>
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 709, in restart
self.status(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/ZEPPELIN/package/scripts/master.py", line 185, in status
+ status_params.zeppelin_user + '*.pid')[0]
IndexError: list index out of range