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

Ambari server failed to start after SSL setup


Ambari server failed to start after SSL setup


I am trying SSL setup with a ambari server (ambari 2.4 version). Here are steps I followed :

[root@hdpsecurity ssl]# ambari-server setup-security

Using python /usr/bin/python

Security setup options...


Choose one of the following options:

[1] Enable HTTPS for Ambari server.

[2] Encrypt passwords stored in file.

[3] Setup Ambari kerberos JAAS configuration.

[4] Setup truststore.

[5] Import certificate to truststore.


Enter choice, (1-5): 1

Do you want to configure HTTPS [y/n] (y)?

SSL port [8443] ?

Enter path to Certificate: /etc/httpd/ssl/wserver.crt

Enter path to Private Key: /etc/httpd/ssl/wserver.key

Please enter password for Private Key:

Generating random password for HTTPS keystore...done.

Importing and saving Certificate...done.

Ambari server URL changed. To make use of the Tez View in Ambari please update the property tez.tez-ui.history-url.base in tez-site

Adjusting ambari-server permissions and ownership...

[root@hdpsecurity ssl]# netstat -tulpn|grep 8443

[root@hdpsecurity ssl]# service ambari-server restart

Using python /usr/bin/python

Restarting ambari-server

Using python /usr/bin/python

Stopping ambari-server

Ambari Server is not running

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

No errors were found.

Ambari database consistency check finished

Server PID at: /var/run/ambari-server/

Server out at: /var/log/ambari-server/ambari-server.out

Server log at: /var/log/ambari-server/ambari-server.log

Waiting for server start....................

ERROR: Exiting with exit code -1.

REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.

Here is the Ambari-server.log:

25 Nov 2016 17:35:07,916 INFO [main] ViewRegistry:1811 - Auto creating instance of view CAPACITY-SCHEDULER for cluster hdpsecurity. 25 Nov 2016 17:35:07,917 ERROR [main] AmbariServer:927 - Failed to run the Ambari Server java.lang.NoSuchMethodError: org.apache.ambari.view.ViewInstanceDefinition.getClusterHandle()Ljava/lang/String; at org.apache.ambari.view.capacityscheduler.PropertyValidator.validateProperty( at org.apache.ambari.server.orm.entities.ViewInstanceEntity.getValidationResult( at org.apache.ambari.server.orm.entities.ViewInstanceEntity.validate( at org.apache.ambari.server.view.ViewRegistry.installViewInstance( at org.apache.ambari.server.view.ViewRegistry.addAutoInstanceDefinition( at org.apache.ambari.server.view.ViewRegistry.readViewArchive( at org.apache.ambari.server.view.ViewRegistry.readViewArchives( at org.apache.ambari.server.view.ViewRegistry.readViewArchives( at at org.apache.ambari.server.controller.AmbariServer.main(

I am using self signed SSL and followed steps mentioned in HDP document.


Re: Ambari server failed to start after SSL setup

@khireswar Kalita

The following error indicatest that you might have multiple version of "ambari-server" JAR file in your filesystem.

  java.lang.NoSuchMethodError: org.apache.ambari.view.ViewInstanceDefinition.getClusterHandle()Ljava/lang/String; 

Please check "/usr/lib/ambari-server" and "/var/lib/ambari-server/resources/views" directory to verify that all the JARs are of the same version.

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