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

remove useless hiveserver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.1.1
    • 2.0.2, 2.1.2
    • CLI
    • None

    Description

      [hadoop@header hive]$ hive --service hiveserver
      Starting Hive Thrift Server
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/opt/apps/apache-hive-2.0.1-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/opt/apps/spark-1.6.2-bin-hadoop2.7/lib/spark-assembly-1.6.2-hadoop2.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/opt/apps/hadoop-2.7.2/share/hadoop/common/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]
      Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hive.service.HiveServer
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:348)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:214)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

      hiveserver does not exist, we should remove hiveserver from cli on branch-2.0

      After removing it, we get useful message

      Service hiveserver not found
      Available Services: beeline cli hbaseimport hbaseschematool help hiveburninclient hiveserver2 hplsql hwi jar lineage llap metastore metatool orcfiledump rcfilecat schemaTool version

      Attachments

        1. HIVE-16239.2-branch-2.1.patch
          0.4 kB
          Hui Fei
        2. HIVE-16239.2-branch-2.0.patch
          4 kB
          Hui Fei
        3. HIVE-16239.1-branch-2.1.patch
          0.4 kB
          Hui Fei
        4. HIVE-16239.1-branch-2.0.patch
          4 kB
          Hui Fei

        Activity

          People

            ferhui Hui Fei
            ferhui Hui Fei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: