Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

cloudera manager will not start - fresh install

avatar
Explorer

Hello,

 

I have completed installation of Cloudera Enterprise 5.6.x on Red Hat Enterprise Linux Server release 6.7 in steps described as "installation path b" without errors.

 

http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_install_path_b.html#cmig_topic_...

 

Start of cloudera manager immediately fails - cloudera-scm-server.out only contains a few lines..

 

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


JAVA_HOME=/usr/java/jdk1.8.0_72
/usr/share/cmf/bin/cmf-server: line 129: /usr/java/jdk1.8.0_72/bin/java: Permission denied
/usr/share/cmf/bin/cmf-server: line 129: exec: /usr/java/jdk1.8.0_72/bin/java: cannot execute: Permission denied

 

Java JDK was installed as described here:

 

http://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_jdk_installation.html?scroll=t...

 

Java environment for "hduser"..

 

echo $JAVA_HOME
/usr/java/jdk1.8.0_72


[hduser@slrs01va6f1clm1 cloudera-scm-server]$ 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)

 

I would appreciate any suggestions on how to proceed.

 

Thank you

1 ACCEPTED SOLUTION

avatar
Explorer

Suggested chmod applied, but problem persisted.

 

Solution was to re-install with 5.5.2.

 

Thanks for your replies.

View solution in original post

15 REPLIES 15

avatar
Master 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

avatar
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!

 

avatar
Master 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

avatar
Explorer

Suggested chmod applied, but problem persisted.

 

Solution was to re-install with 5.5.2.

 

Thanks for your replies.

avatar
Contributor

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?

avatar
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.