Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

cloudera manager will not start - fresh install

Solved Go to solution

Re: cloudera manager will not start - fresh install

Super Guru

 

Looking back at your permissions, it appears that you have the following as reported by "stat /usr/java/jdk1.8.0_72/bin/java":

 

Access: (0776/-rwxrwxrw-) Uid: ( 504/ hduser) Gid: ( 504/ hadoop)

 

Since the shell used to start Clouder Manager is owned by cloudera-scm, this would mean that unless you altered your init script to start as user "hduser" then "other" users don't have access to run java.

 

Try adding the execute permission for other on your java binary and try starting Cloudera Manager.

 

Regards,

 

Ben

Re: cloudera manager will not start - fresh install

Explorer

Thanks for the quick response. You're suggestion allowed to inch closer, but new problem exists..

 

[hduser@slrs01va6f1clm1 ~]$ sudo sudo service cloudera-scm-server start
[sudo] password for hduser:
Starting cloudera-scm-server: [FAILED]


[hduser@slrs01va6f1clm1 ~]$ cd /var/log/cloudera-scm-server/
[hduser@slrs01va6f1clm1 cloudera-scm-server]$ cat *.out

 

JAVA_HOME=/usr/java/jdk1.8.0_72
/usr/java/jdk1.8.0_72/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[hduser@slrs01va6f1clm1 cloudera-scm-server]$

 

I created symlink for java and ensured shared library is recognized for access by root user..

 

[hduser@slrs01va6f1clm1 cloudera-scm-server]$ cd /usr/bin
[hduser@slrs01va6f1clm1 bin]$ ls -l java


lrwxrwxrwx 1 root root 30 Mar 29 01:26 java -> /usr/java/jdk1.8.0_72/bin/java

 

[hduser@slrs01va6f1clm1 bin]$ sudo java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

 

 

[hduser@slrs01va6f1clm1 bin]$ sudo ldd /usr/java/jdk1.8.0_72/bin/java
linux-vdso.so.1 => (0x00007ffca5db1000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038b0800000)
libjli.so => /usr/java/jdk1.8.0_72/bin/../lib/amd64/jli/libjli.so (0x00007f5ac2111000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003d6ec00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003d6e400000)
/lib64/ld-linux-x86-64.so.2 (0x0000003d6e000000)
[hduser@slrs01va6f1clm1 bin]$

 

[hduser@slrs01va6f1clm1 bin]$ sudo cat /etc/ld.so.conf.d/java.conf
/usr/java/jdk1.8.0_72/lib/amd64/jli

 

[hduser@slrs01va6f1clm1 bin]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hduser/bin:/usr/java/jdk1.8.0_72/bin:/usr/java/jdk1.8.0_72/lib/amd64/jli


[hduser@slrs01va6f1clm1 bin]$ echo $LD_LIBRARY_PATH
/usr/java/jdk1.8.0_72/lib/amd64/jli

Any suggestions?

 

Much appreciated.

 

Thanks!

 

Re: cloudera manager will not start - fresh install

Super Guru

It appears that cloudera-scm still cannot access files in the java directories.  Check that the file is read/execute by other.

This is mine:

 

-rwxr-xr-x 1 root root 106366 Sep 2 2014 libjli.so

 

I recommend just doing the following as again it appears there are permission problems in your JDK

 

chmod -R 777 /usr/java/jdk1.8.0_72

 

I'm not sure why permissions are like they are, but normally java is accessible by "other" I believe.

 

Regards,

 

Ben

Re: cloudera manager will not start - fresh install

Explorer

Suggested chmod applied, but problem persisted.

 

Solution was to re-install with 5.5.2.

 

Thanks for your replies.

Re: cloudera manager will not start - fresh install

It looks like you installed Java as hduser instead of as root. This will prevent other users from accessing it.

 

Could you try uninstalling java, and re-installing it as root?

Highlighted

Re: cloudera manager will not start - fresh install

New Contributor

I got the same problem when I put the Java files in my home directory. It only worked after I put the Java files in the /usr/java directory.

Don't have an account?
Coming from Hortonworks? Activate your account here