1

I'm using Hive with mysql. Creating database in mysql worked. Somehow could not create database in Hive. The error shows SemanticException like below. Is there anything that I missed? I've tried a few suggested solutions but still couldn't fix it.

enter image description here

1
  • Try hive --service metastore Commented Oct 31, 2018 at 16:10

2 Answers 2

2

It seems, the hive metastore service is not started. After you configure the meta store in hive-site.xml, start the service with below command.

hive --service metastore
Sign up to request clarification or add additional context in comments.

Comments

0

I solved this issue by initialising hive metastore database

$HIVE_HOME/bin/schematool -initSchema -dbType $databaseType

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.