Created 10-09-2017 02:13 PM
Hello,
Under Ambari 2.5.1 Atlas has been installed just after Hbase and Kafka (required modules)
Atlas Metadata Server does not start and I don't see any logs or messages (/var/log/atlas is emty)
Does anyone has an idea on how to resolve this kind of issue ?
Thanks in advance
Regards
Created 10-10-2017 03:01 PM
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/2.6.1.0-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/2.6.1.0-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.
Created 10-10-2017 08:24 AM
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
Created 10-10-2017 08:28 AM
Looks like you already have "java-1.8.0-openjdk-1.8.0.141-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 :
export JAVA_HOME=/PATH/TO/java-1.8.0-openjdk-1.8.0.141
.
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 1.8.0.141 installation on your file system and then set it accordingly.
export JAVA_HOME=/usr/jdk64/java-1.8.0-openjdk-1.8.0.141 export PATH=$JAVA_HOME/bin:$PATH
.
Created 10-10-2017 08:38 AM
Well, JAVA_HOME is already set in /etc/profile
The actual value is /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
The value given above
/usr/lib/jvm/jre-1.8.0-openjdk
is a link to /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
The 3 nodes are exactly the same they have the same version of all components
Created 10-10-2017 08:47 AM
Please try this:
# cd /usr/hdp/2.6.1.0-129/atlas/server/webapp/ # mv atlas ../ # /usr/lib/jvm/jre-1.8.0-openjdk/bin/jar -xf atlas.war
.
And then try restarting the atlas.
Created 10-10-2017 08:54 AM
I already tried it :
/usr/lib/jvm/jre-1.8.0-openjdk/bin/jar: No such file or directory
So we tried using unzip but it is the same
Created 10-10-2017 10:42 AM
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).
Created 10-10-2017 11:56 AM
Ok thanks, I'm going to try "Manually Installing Oracle JDK 1.7 or 1.8"..
Created 10-10-2017 12:44 PM
Ok so JDK installed and jar on the machine.
But still the same error .... 😞
Created 10-10-2017 02:48 PM
Sorry we forgot to modify the environment variable and now it works !
Thanks a lot for your help 🙂
Created 10-10-2017 03:01 PM
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/2.6.1.0-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/2.6.1.0-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.