Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 7 PID_Dir issue: service won't start due to mkdir /var/run/zeppelin-notebook: permision denied #16

Open
anset opened this issue Feb 26, 2016 · 3 comments

Comments

@anset
Copy link

anset commented Feb 26, 2016

Even though CentOS 7 is not yet supported by this, there is an easy solution for this issue.

Carefull: Make sure you stop the zeppelin service before making the below changes!

Go to the config page of the Zeppelin service in Ambari and search for

'zeppelin_pid_dir' 

(It's under Advanced zeppelin-env).

Change the value to

/var/run/user/<zeppelin user id>/zeppelin-notebook

Where is the UID of the zeppelin user (find it using id -u zeppelin).
For me, the end result was /var/run/user/1008/zeppelin-notebook

The service should start normally now on CentOS 7.

@abajwa-hw
Copy link
Contributor

Thanks for your note. I ust did a quick test on an HDP setup running on Centos7/java 8 and was able to install Zeppelin without having to do this workaround.

@anset
Copy link
Author

anset commented Mar 8, 2016

Installing is not the problem. try to reboot the node and see if the service comes up again.

During install, the install is able to create the pid directory. But the service restart expects the dir to be there and on centos7, this is now a tmpfs meaning it needs to be recreated every boot and the zeppelin user that starts the service has no permission to write in the default /var/run.

It's not dependant on the java version. It is a followon result of moving from upstart to systemd.

@soskay
Copy link

soskay commented May 27, 2016

The same problem has occurred in my environment on CentOS7.

It looks "ambari-zeppelin-service/package/scripts/master.py" file's problem.
Maybe, In the "start" function, it needs to create the pid directory before executing "zeppelin-daemon.sh".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants