Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13024

schematool does not log anywhere

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When testing the new RC for 2.0.0 release, I tried using the schematool to create the initial schema. While doing so encountered the following error

      ./bin/schematool -initSchema -dbType mysql
      ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/work/hive/release/apache-hive-2.0.0-bin/lib/hive-jdbc-2.0.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/work/hive/release/apache-hive-2.0.0-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/work/tez/tez/tez-dist/target/tez-0.8.3-SNAPSHOT/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
      Metastore connection URL:	 jdbc:mysql://localhost/metastore-release?createDatabaseIfNotExist=true
      Metastore Connection Driver :	 com.mysql.jdbc.Driver
      Metastore connection User:	 hive
      org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
      *** schemaTool failed ***
      

      I could not find the reason for this error as the log messages are not logged to the log file. Logging seems to be not initialized properly for schematool.

        Attachments

        1. HIVE-13024.1.patch
          1.0 kB
          Prasanth Jayachandran

          Activity

            People

            • Assignee:
              prasanth_j Prasanth Jayachandran
              Reporter:
              prasanth_j Prasanth Jayachandran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: