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 in Big Data Hadoop by akhtar
• 24,570 points
175 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 by MD
• 55,020 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
238 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
396 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
• 10,950 points
5,834 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
36,666 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,320 points
2,185 views
0 votes
1 answer
0 votes
3 answers