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.
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
/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
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)
[hduser@slrs01va6f1clm1 bin]$ sudo cat /etc/ld.so.conf.d/java.conf
[hduser@slrs01va6f1clm1 bin]$ echo $PATH
[hduser@slrs01va6f1clm1 bin]$ echo $LD_LIBRARY_PATH
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.
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?