Metadata.hiveexception prompted to create schema tool.

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Hadoop Metadata.hiveexception prompted to create schema tool.

Viewing 0 reply threads
  • Author
    Posts
    • #4714
      DataFlair TeamDataFlair Team
      Spectator

      Hi,

      I am getting the below exception when try to run bin/hive

      Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message: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))
      at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:226)
      at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:366)
      at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:310)
      at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:290)
      at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:266)
      at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:545)
      … 8 more
      Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message: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))
      at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3593)
      at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:236)
      at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:221)
      … 13 more
      Caused by: MetaException(message: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))
      at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3364)
      at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3336)
      at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3590)
      … 15 more

Viewing 0 reply threads
  • You must be logged in to reply to this topic.