Exception in thread main java lang RuntimeException Hive metastore database is not initialized

0 votes

Hi everyone.

I am tring to enter in hive shell. But I am Getting the below error.

 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

    Exception in thread "main" java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType ...) to create the schema. If needed, don't forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql)

Can anyone tell me, what I am doing wrong?

Thank You

Feb 5, 2020 in Big Data Hadoop by akhtar
• 38,260 points
1,620 views

1 answer to this question.

0 votes

Hi@akhtar,

In this scenario, first you check if the metastore service is running or not and then try the below command.

$ schematool -dbType derby -initSchema

Hope this will solve your error.
Thank You

answered Feb 5, 2020 by MD
• 95,460 points

Related Questions In Big Data Hadoop

0 votes
2 answers

Exception in thread "main" java.lang.UnsupportedClassVersionError

Hi, keep in mind do not forget to ...READ MORE

answered Aug 5, 2019 in Big Data Hadoop by Rashi
1,407 views
+1 vote
2 answers

Hadoop: Error: Exception in thread “main” java.lang.UnsupportedClassVersionError: a

The reason for this error is because ...READ MORE

answered Aug 6, 2019 in Big Data Hadoop by Venkita
• 240 points
1,869 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
11,027 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,828 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,611 views
0 votes
1 answer
0 votes
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP