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.

unable to start amabri service getting java error

Highlighted

unable to start amabri service getting java error

Explorer

Hi team

below error i am getting when i try to start the anbari server , please help

# ambari-server start

Using python /usr/bin/python Starting ambari-server Ambari Server running with administrator privileges. Organizing resource files at /var/lib/ambari-server/resources... Ambari database consistency check started... Server PID at: /var/run/ambari-server/ambari-server.pid Server out at: /var/log/ambari-server/ambari-server.out Server log at: /var/log/ambari-server/ambari-server.log Waiting for server start.........Unable to determine server PID. Retrying... ......Unable to determine server PID. Retrying... ......Unable to determine server PID. Retrying... ERROR: Exiting with exit code -1. REASON: Ambari Server java process died with exitcode 1. Check /var/log/ambari-server/ambari-server.out for more information.

[root@cdhnifidvl ~] # more /var/log/ambari-server/ambari-server.out Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0 Error occurred during initialization of VM java/lang/ClassNotFoundException: error in opening JAR file <Zip file open error> /usr/jdk64/jdk1.8.0_112/jre/lib/rt.jar

1 REPLY 1

Re: unable to start amabri service getting java error

Super Mentor

@Balaji Vemula

We see error:

/var/log/ambari-server/ambari-server.out Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0 Error occurred during initialization of VM 
java/lang/ClassNotFoundException: error in opening JAR file <Zip file open error> /usr/jdk64/jdk1.8.0_112/jre/lib/rt.jar

.

The above error indicates that your JDK installation is not correct or die to some reasons the JAR is not readable / corrupted hence while booting up the JVM is not able to read/parse the file "/usr/jdk64/jdk1.8.0_112/jre/lib/rt.jar"

Try this to validate :

# /usr/jdk64/jdk1.8.0_112/bin/jar -tvf /usr/jdk64/jdk1.8.0_112/jre/lib/rt.jar

So can you please check if you can install (or SCP) the JDK "/usr/jdk64/jdk1.8.0_112" from some other working Node of the cluster and then paste it to ambari server host.

Or you can try installing the JDK again from the following URL and then extract it to the mentioned lcoation:

# wget http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u112-linux-x64.tar.gz

.

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