<?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/215686#M177596</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have tried as per your suggestion but here what i got as a result. Still i have not made full ambari-server. I just installed the ambari-server and trying to create the setup for the GUI. &lt;/P&gt;&lt;P&gt;[root@localhost ~]# service ambari-server start
Using python  /usr/bin/python
Starting ambari-server
ERROR: Exiting with exit code -1.
REASON: DB Name property not set in config file.
- If this is a new setup, then run the "ambari-server setup" command to create the user
- If this is an upgrade of an existing setup, run the "ambari-server upgrade" command.
Refer to the Ambari documentation for more information on setup and upgrade.
[root@localhost ~]# ambari-server setup
Using python  /usr/bin/python
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Customize user account for ambari-server daemon [y/n] (n)? n
Adjusting ambari-server permissions and ownership...
Checking firewall status...
Checking JDK...
Do you want to change Oracle JDK [y/n] (n)? n
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? n
Configuring database...
Default properties detected. Using built-in database.
Configuring ambari database...
Checking PostgreSQL...
Running initdb: This may take up to a minute.
Initializing database ... OK
About to start PostgreSQL
Configuring local database...
Configuring PostgreSQL...
Restarting PostgreSQL
Creating schema and user...
done.
Creating tables...
done.
Extracting system views...
Looking for available JDKs at /usr/jdk64
Found: []
ERROR: No JDK found, please run the "setup" command to install a JDK automatically or install any JDK manually to /usr/jdk64
ERROR: Exiting with exit code 1.
REASON: Error while extracting system views. Exiting&lt;/P&gt;&lt;P&gt;Also, please find the properties file input where i have 2 JDK version. &lt;/P&gt;&lt;P&gt;java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.ppc64le/jre/bin/java
java.releases=jdk1.8,jdk1.7
java.releases.ppc64le=
jce.download.supported=true
jdk.download.supported=true
jdk1.7.desc=Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
jdk1.7.dest-file=jdk-7u67-linux-x64.tar.gz
jdk1.7.home=/usr/jdk64/&lt;/P&gt;&lt;P&gt;Please suggest. &lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 12:23:57 GMT</pubDate>
    <dc:creator>khsabarish</dc:creator>
    <dc:date>2018-06-07T12:23:57Z</dc:date>
  </channel>
</rss>

