<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari Setup - JAVA HOME Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Setup-JAVA-HOME-Error/m-p/215687#M177597</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/81270/khsabarish.html" nodeid="81270"&gt;@Sabarigirivasan  Kuttuva &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your java.home set inside the ambari.properties is incorrect. It is pointing to the "java" file instead of pointing to the directory  where the JDK is installed&lt;/P&gt;&lt;PRE&gt;java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.ppc64le/jre/bin/java&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Can you please try this path:&lt;/P&gt;&lt;PRE&gt;java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.ppc64le&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please check if your PATH contains the "bin" directory as following:&lt;/P&gt;&lt;PRE&gt;# ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.ppc64le/bin/java&lt;/PRE&gt;&lt;P&gt;Java home is a directory up t; the directory where the "bin" is present.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# grep 'java.home' /etc/ambari-server/conf/ambari.properties
java.home=/usr/jdk64/jdk1.8.0_112
stack.java.home=/usr/jdk64/jdk1.8.0_112


[root@latest1 ~]# ls -l /usr/jdk64/jdk1.8.0_112
total 25916
drwxr-xr-x. 2 root root     4096 Sep 23  2016 bin
-r--r--r--. 1 root root     3244 Sep 23  2016 COPYRIGHT
drwxr-xr-x. 4 root root     4096 Sep 23  2016 db
drwxr-xr-x. 3 root root     4096 Sep 23  2016 include
-rwxr-xr-x. 1 root root  5094021 Sep 22  2016 javafx-src.zip
drwxr-xr-x. 5 root root     4096 Sep 23  2016 jre
drwxr-xr-x. 5 root root     4096 Sep 23  2016 lib
-r--r--r--. 1 root root       40 Sep 23  2016 LICENSE
drwxr-xr-x. 4 root root       44 Sep 23  2016 man
-r--r--r--. 1 root root      159 Sep 23  2016 README.html
-rw-r--r--. 1 root root      526 Sep 23  2016 release
-rw-r--r--. 1 root root 21112816 Sep 23  2016 src.zip
-rwxr-xr-x. 1 root root   110114 Sep 22  2016 THIRDPARTYLICENSEREADME-JAVAFX.txt
-r--r--r--. 1 root root   177094 Sep 23  2016 THIRDPARTYLICENSEREADME.txt&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 12:38:14 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-06-07T12:38:14Z</dc:date>
  </channel>
</rss>

