If the HCatalog daemon is incorrectly configured, the smoke tests fail and you get the following error message on your console:
Metastore startup failed, see /var/log/hcatalog/hcat.err
Solution: You can find the root cause of this exception using the /var/log/hcatalog/hcat.err file on your HCatalog node.
Typically, the root cause is either Unknown Host Exception or Failed Initializing Database Error.
Solution - Unknown Host Exception:
Open
/var/log/hcatalog/hcat.errfile to confirm the root cause:at java.lang.reflect.Method.invoke (Method.java:597) at org.apache.hadoop.util.Runjar.main (runjar.java:156) Caused by: java.net.UnknownHostException:mysql.host.com atjava.net.InetAddress.getAllByName(INetAddress.java:1157)
Open the
master-install-location/gsInstaller/gsInstaller.propertiesfile in edit mode and update the value formysqldbhostproperty.Restart the installation process.
Solution - Failed Initializing Database Error
For this error, you should find a message similar to the one shown below in your
/var/log/hcatalog/hcat.errfile:11/12/29 20:52:04 ERROR DataNucleus.Plugin: Bundle “org.eclipse.jdt.core” required 11/12/29 20:52:04 ERROR DataNucleus.Plugin: Bundle “org.eclipse.jdt.core” required 11/12/29 20:52:04 ERROR DataStore.Schema: Failed initialising databaseOpen the
master-install-location/gsInstaller/gsInstaller.propertiesfile in edit mode and update the value formysqldbuserandmysqldbpswdproperties.![[Important]](../common/images/admon/important.png)
Important Ensure that
$mysqluserhas required privileges on the MySQL database as provided under thedatabasenameproperty in thegsInstaller.propertiesfile.Restart the installation process.

