Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Encounter error for ambari-server setup

Solved Go to solution

Encounter error for ambari-server setup

New Contributor

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

Re: Encounter error for ambari-server setup

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!!



3 REPLIES 3

Re: Encounter error for ambari-server setup

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!!



Re: Encounter error for ambari-server setup

New Contributor

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

Re: Encounter error for ambari-server setup

Community Manager

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 Manager
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.
Don't have an account?
Coming from Hortonworks? Activate your account here