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.

How to change variable for JPS location?

How to change variable for JPS location?

Nimbus start fails, as it cannot execute Java JPS. The path is incorrect. How do I modify the config for Storm/Nimbus so it uses the correct path?

2016-05-27 09:23:56,265 - Retrying after 10 seconds. Reason: Execution of '/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/jps -l  | grep storm.daemon.nimbus$ && /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/jps -l  | grep storm.daemon.nimbus$ | awk {'print $1'} > /var/run/storm/nimbus.pid' returned 1. -bash: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/jps: No such file or directory
-bash: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/jps: No such file or directory
3 REPLIES 3
Highlighted

Re: How to change variable for JPS location?

@Ed Prout

Update the property to java.home=/usr/lib/jvm/java-1.7.0-openjdk-<version> and saved the ambari.properties file afterwards start up Storm service again.

Highlighted

Re: How to change variable for JPS location?

@Ed Prout

Can you please share after the change what error you are seeing in ambari while restarting?

Highlighted

Re: How to change variable for JPS location?

Hmm, so it looks like Ambari is using /usr/lib/jvm/jre.... and the cluster members are using /usr/lib/jvm/java.... So when I make the change to ambari.properties ambari won't restart. Any other suggestions?

Don't have an account?
Coming from Hortonworks? Activate your account here