JDK requirement: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_support-matrices/content/ch_matrices-hdp...
One option is to set the java_home for the cluster using setup command as following: , Using this option when you plan to use a JDK other than the default Oracle JDK 1.8. If you are using an alternate JDK, you must manually install the same JDK on all hosts and specify the Java Home path during Ambari Server setup.
# ambari-server setup --java-home=/usr/jdk64/jdk1.8.0_121
Looks like you already have "java-1.8.0-openjdk-22.214.171.124-1.b16.el7_3.x86_64" present in your atlas host.
So all you need to do is that locate that JDK and then set the JAVA_HOME some thing like :
Example: In the file "/etc/profile" we can set the JAVA_HOME for all the users globally. You will need to find the exact location of your JDK 126.96.36.199 installation on your file system and then set it accordingly.
export JAVA_HOME=/usr/jdk64/java-1.8.0-openjdk-188.8.131.52 export PATH=$JAVA_HOME/bin:$PATH
Well, JAVA_HOME is already set in /etc/profile
The actual value is /usr/lib/jvm/jre-1.8.0-openjdk-184.108.40.206-1.b16.el7_3.x86_64
The value given above
is a link to /usr/lib/jvm/jre-1.8.0-openjdk-220.127.116.11-1.b16.el7_3.x86_64
The 3 nodes are exactly the same they have the same version of all components
You are using JRE (/usr/lib/jvm/jre-1.8.0-openjdk/bin/) which does not have "jar" utility inside the it's "bin" directory.
You need JDK (not JRE).
Good to know that the issue is resolved. It will be great if you can mark this HCC thread as Answered by clicking on the "Accept" Button. That way other HCC users can quickly find the solution when they encounter the same issue.
As it was a long thread hence i am writing a brief summary for the HCC users who might encounter this issue and can quickly find the answer.
Issue: Atlas Installation Was failing with the following error:
File "/usr/hdp/18.104.22.168-129/atlas/bin/atlas_config.py", line 232, in runProcess p = subprocess.Popen(commandline, stdout=stdoutFile, stderr=stderrFile, shell=shell) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exceptionOSError: [Errno 2] No such file or director
Solution: Making sure that the JAVA_HOME is set correctly on the host and it is pointing to a valid JDK (not JRE) and setting the JAVA_HOME properly inside the global environment variable.
# cd /usr/hdp/22.214.171.124-129/atlas/server/webapp/ # mv atlas ../ # /usr/lib/jvm/jre-1.8.0-openjdk/bin/jar -xf atlas.war
Cause: "jar" utility comes with JDK (inside $JAVA_HOME/bin) which is being used by the "atlas_config.py" script to extract the atlas.war.