Created on 03-24-2016 01:53 PM - edited 09-16-2022 03:10 AM
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.
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:
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
Created 04-22-2016 03:12 PM
Suggested chmod applied, but problem persisted.
Solution was to re-install with 5.5.2.
Thanks for your replies.
Created 03-28-2016 02:01 PM
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
Created on 03-28-2016 11:56 PM - edited 03-29-2016 12:07 AM
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!
Created 03-29-2016 09:30 PM
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
Created 04-22-2016 03:12 PM
Suggested chmod applied, but problem persisted.
Solution was to re-install with 5.5.2.
Thanks for your replies.
Created 04-25-2016 09:23 AM
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?
Created 05-05-2018 01:59 PM
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.