Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

installing Atlas failing in HDP2.5

avatar
Super Collaborator

I am getting the following error , even though JAVA is installed on every node.

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 35, in <module>
    BeforeAnyHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 32, in hook
    setup_java()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", line 181, in setup_java
    raise Fail(format("Unable to access {java_exec}. Confirm you have copied jdk to this host."))
resource_management.core.exceptions.Fail: Unable to access /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java. Confirm you have copied jdk to this host.
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-2222.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-2222.json', 'INFO', '/var/lib/ambari-agent/tmp']
1 ACCEPTED SOLUTION

avatar
Master Guru

can you confirm java is installed here

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java

View solution in original post

2 REPLIES 2

avatar
Master Guru

can you confirm java is installed here

/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java

avatar
Super Collaborator

yes you were right , some how the java was upgraded to a new release 121 , I fixed the issue by creating a symbolic link as follows :

[root@hadoop1 jvm]# pwd
/usr/lib/jvm
[root@hadoop1 jvm]# ln -s /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121.x86_64 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64