Support Questions

Find answers, ask questions, and share your expertise

Hive metastore issue in HDp2.3.4.0

Contributor

We have configured HDP 2.3.4.0 with Ambari in CentOS 6.4. Post installation we can see that the Hive Metastore service is getting stopped everytime it is started through Ambari. We had chosen MySQL for Hive metastore but in logs we can see it tries to connect with Derby. Looking for your help.

1 ACCEPTED SOLUTION

@rajdip chaudhuri

Please check hive meta store settings in ambari and make sure that it's MySQL

View solution in original post

12 REPLIES 12

@rajdip chaudhuri

Please check hive meta store settings in ambari and make sure that it's MySQL

Contributor

How to check it? Which file to check?

@rajdip chaudhuri

It's in ambari console

Contributor

Ambari shows MySQL is being used. Attaching the screenshot.

2034-hive-metastore-issue.jpg

Contributor

For OOZIE we have selected New Derby Database. But for Hive we selected New MySQL db.

Contributor

Hi......any suggestions please?

@rajdip chaudhuri

In Hive server

cd /var/log/hive/

and read logs to troubleshoot further

Contributor

Hi Guys...looking for your help. We cannot connect to Hive post set up because of the issue.

Guru

Can you check mysql connectivity and past logs here. Can you also paste output of the following command.

SHOW GRANTS FOR 'hive';

And as Neeraj suggested please grant all privileges to hive user on host like below commend.

GRANT ALL PRIVILEGES ON *.* TO 'hive'@'<hive_host>' IDENTIFIED BY PASSWORD '<password>'

@rajdip chaudhuri

Also, very important

Run following in mysql as root user

grant all privileges on *.* to 'hive'@'host' identified by 'hivepassword' with grant option;

Mentor

@rajdip chaudhuri

Please go through the 2 attached install step by step methods it will help you resolve your problem

Please and let me know if all goes well