hive installation startup error summary

Error 1:

Exception in thread "main" java.lang.NoClassDefFoundError: jline/console/completer/ArgumentCompleter$ArgumentDelimiter
        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)
Caused by: java.lang.ClassNotFoundException: jline.console.completer.ArgumentCompleter$ArgumentDelimiter
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 4 more

  This problem is Jline package hadoop version in the hive caused by the inconsistency, the solution is to copy Jline-2.12.jar in the hive / lib to hadoop / share / hadoop / yarn / lib / down to

 

Error 2:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/CommandNeedRetryException

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:274)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.CommandNeedRetryException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 3 more

或者:
  1. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/conf/HiveConf  
  2.         at java.lang.Class.forName0(Native Method)  
  3.         at java.lang.Class.forName(Class.java:274)  
  4.         at org.apache.hadoop.util.RunJar.main(RunJar.java:205)  
  5. Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf  
  6.         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)  
  7.         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)  
  8.         at java.security.AccessController.doPrivileged(Native Method)  
  9.         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)  
  10.         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  11.        at java.lang.Cl  

  This error means that the search for a long hadoop-evn.sh configuration file and set the path there is a problem, the solution is to modify the configuration file,

export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/local/hbase/lib/*:/usr/lib/hbase/*
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HBASE_HOME/hbase-1.1.15.jar:\
export HBASE_HOME=/home/hadoop/hbase-1.1.15

export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HBASE_HOME/hbase-1.1.15.jar:$HBASE_HOME/hbase-it-1.1.15-tests.jar:$HBASE_HOME/conf:$HBASE_HOME/lib/zookeeper-3.4.6.jar

  Check in the configuration file, for HADOOP_CLASSPATH configuration is required on the front with a red section ($ HADOOP_CLASSPATH :) otherwise it will lead to later configuration will cover the above configuration, resulting in the above error.

 

Guess you like

Origin www.cnblogs.com/1gaoyu/p/11804371.html
Recommended