Troubleshooting Ambari – Resolving General Problems

FREE Online Courses: Click for Success, Learn for Free - Start Now!

Today, in this Ambari article, “Troubleshooting Ambari” we will learn that how to resolve general problems of Apache Ambari in detail.

So, let’s begin Troubleshooting Ambari. 

Troubleshooting Ambari

In order to help to troubleshoot any issues we might have on installing Ambari with an existing Oracle database, we can use following entries:

a. Problem 1

Ambari Server Fails to Start: No Driver
Check /var/log/ambari-server/ambari-server.log for :
ExceptionDescription:Configurationerror.
Class[oracle.jdbc.driver.OracleDriver] not found.
Not able to found the Oracle JDBC .jar file.

  • Solution

Re-run ambari-server setup if you are sure about the file that it is in the appropriate directory on the Ambari server.

b. Problem 2

Ambari Server Fails to Start: No Connection
Check /var/log/ambari-server/ambari-server.log for :
The Network Adapter could not establish the connection
Error Code: 17002
Ambari Server and the database are not connected.

  • Solution

Makes sure that the database correctly configured by reading /etc/ambari-server/conf/ambari.properties and also endure that the host is reachable from the Ambari Server.

server.jdbc.url=jdbc:oracle:thin:
         @oracle.database.hostname:1521/ambaridb
server.jdbc.rca.url=jdbc:oracle:thin:
         @oracle.database.hostname:1521/ambaridb

c. Problem 3

Ambari Server Fails to Start: Bad Username
Check /var/log/ambari-server/ambari-server.log for :
Internal Exception: java.sql.SQLException: ORA­01017:
invalid username/password; logon denied
An invalid username/password is used.

  • Solution

Make sure that the user account has the correct privileges and also it is set up in the database.

d. Problem 4

Ambari Server Fails to Start: No Schema
Check /var/log/ambari-server/ambari-server.log for :
Internal Exception: java.sql.SQLSyntaxErrorException: ORA­00942:
table or view does not exist
Basically, the schema has not been loaded.

  • Solution

Ensure that if you have loaded the database schema.

e. Problem 5

Ambari shows both NameNodes as the standby just after changing NameNode RPC port.
Change the NameNode RPC ports (by customizing the dfs.namenode.servicerpc-address property), if we have enabled NameNode HA, and it will display both NameNodes as standby.

  • Solution

We need to format ZKFC to make sure that the config data in ZooKeeper is refreshed while modifying the NameNode RPC port (dfs.namenode.servicerpc-address) after enabling NameNode HA. Further to format ZKFC znode, run the following command:

su - <hdfs-user> -c 'hdfs zkfc -formatZK'

So, this was all about Troubleshooting Ambari. Hope you like our explanation.

Conclusion: Apache Ambari Troubleshooting

Hence, we have seen the solution to all the general problems of Apache Ambari, in Ambari Troubleshooting article. Still, if you have any query regarding Ambari Troubleshooting ask in the comment tab.

Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *