java.lang.RuntimeException: 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))

Stack Overflow | Imran Hassan | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hive - Issue on starting derby db

    Stack Overflow | 7 months ago | Imran Hassan
    java.lang.RuntimeException: 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))
  2. 0

    Installing hive on ubuntu (trouble with derby ?)

    Stack Overflow | 9 months ago | fmalaussena
    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  3. 0

    Hive shell launch failed with connection refused error

    Stack Overflow | 9 months ago | Basu
    java.lang.RuntimeException: java.net.ConnectException: Call From basu-xxxx/127.0.1.1 to basu-xxxx:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Hive Query Language
      SessionState.beginStart
      1. org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3593)
      2. org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:236)
      3. org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:221)
      4. org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:366)
      5. org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:310)
      6. org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:290)
      7. org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:266)
      8. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:545)
      9. org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:518)
      9 frames
    3. org.apache.hadoop
      CliDriver.main
      1. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705)
      2. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. Hadoop
      RunJar.main
      1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      2 frames