Support Questions
Find answers, ask questions, and share your expertise

Encounter error for ambari-server setup

Explorer

I ran the the command ambari-server setup, after which I select accordingly. I am prompt to select the java and selected custom JDK and enter the JAVA_HOME but I was shown the error below.

109047-error2.png

1 ACCEPTED SOLUTION

Accepted Solutions

Mentor

@Hak Tiong Ong

That for sure is obvious means you yum repo could be a problem can you run this independently on that host?

$ sudo yum install java-1.8.0-openjdk-devel 

You can use this command to locate your JAVA_HOME

$ java -XshowSettings:properties -version

Then use the JAVA_HOME when running your ambari-server setup!!



View solution in original post

3 REPLIES 3

Mentor

@Hak Tiong Ong

That for sure is obvious means you yum repo could be a problem can you run this independently on that host?

$ sudo yum install java-1.8.0-openjdk-devel 

You can use this command to locate your JAVA_HOME

$ java -XshowSettings:properties -version

Then use the JAVA_HOME when running your ambari-server setup!!



View solution in original post

Explorer

Thanks it works, I use ambari-server setup -j JAVA_HOME.

The above was originally posted in the Community Help Track. On Tue Jun 4 03:58 UTC 2019, a member of the HCC moderation staff moved it to the Cloud & Operations track. The Community Help Track is intended for questions about using the HCC site itself.

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.