日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Hive 1.1.1 启动错误

發布時間:2024/9/30 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Hive 1.1.1 启动错误 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?Hive 下載

[jifeng@feng03~]$ mkdir hive [jifeng@feng03~]$cd hive/ [jifeng@feng03 hive]$ wget http://apache.fayea.com/hive/hive-1.1.1/apache-hive-1.1.1-bin.tar.gz --2015-09-0416:34:22-- http://apache.fayea.com/hive/hive-1.1.1/apache-hive-1.1.1-bin.tar.gz Resolvingapache.fayea.com... 119.6.56.18 Connectingto apache.fayea.com|119.6.56.18|:80... connected. HTTPrequest sent, awaiting response... 200 OK Length:92834839 (89M) [application/x-gzip] Savingto: “apache-hive-1.1.1-bin.tar.gz” 100%[=======================================================================================>]92,834,839 426K/s in 5m 35s 2015-09-0416:39:57 (271 KB/s) - “apache-hive-1.1.1-bin.tar.gz” saved [92834839/92834839] [jifeng@feng02 hive]$ tar zxf apache-hive-1.2.1-bin.tar.gz [jifeng@feng02hive]$ ls apache-hive-1.1.1-bin apache-hive-1.1.1-bin.tar.gz

?Hive 配置

1. 環境變量

~/.bash_profile 最后加2行

[jifeng@feng03 hive]$ vi ~/.bash_profile

exportHIVE_HOME=$HOME/hive/apache-hive-1.1.1-bin

exportPATH=$PATH:$HIVE_HOME/bin?

2 修改conf目錄下的文件

[jifeng@feng02apache-hive-1.1.1-bin]$ cd conf

[jifeng@feng03 conf]$ ls

hive-default.xml.template?hive-env.sh.template?hive-exec-log4j.properties.template?hive-log4j.properties.template

[jifeng@feng02 conf]$ mv hive-env.sh.template?hive-env.sh

[jifeng@feng02conf]$ cp?hive-default.xml.template?hive-site.xml

3.修改bin目錄下的文件

hive-config.sh文件最后加三行

exportJAVA_HOME=$HOME/jdk1.7.0_79

exportHIVE_HOME=$HOME/hive/apache-hive-1.1.1-bin

exportHADOOP_HOME=$HOME/hadoop-2.6.0

[jifeng@feng02 conf]$ cd ..

[jifeng@feng02apache-hive-1.1.1-bin]$ cd bin

[jifeng@feng02 bin]$ vi hive-config.sh

……

#Default to use 256MB

exportHADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-256}

exportJAVA_HOME=$HOME/jdk1.7.0_79

exportHIVE_HOME=$HOME/hive/apache-hive-1.1.1-bin

exportHADOOP_HOME=$HOME/hadoop-2.6.0

"hive-config.sh"73L, 2023C written

?Hive啟動

1.啟動Hadoop

?? 只啟動HDFS

?[jifeng@feng02 hadoop-2.6.0]$? ./sbin/start-dfs.sh

2.啟動Hive



Hive啟動錯誤

[jifeng@feng02bin]$ ./hive

Logginginitialized using configuration injar:file:/home/jifeng/hive/apache-hive-1.1.1-bin/lib/hive-common-1.1.1.jar!/hive-log4j.properties

SLF4J:Class path contains multiple SLF4J bindings.

SLF4J:Found binding in [jar:file:/home/jifeng/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J:Found binding in [jar:file:/home/jifeng/hive/apache-hive-1.1.1-bin/lib/hive-jdbc-1.1.1-standalone.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.slf4j.impl.Log4jLoggerFactory]

[ERROR]Terminal initialization failed; falling back to unsupported

java.lang.IncompatibleClassChangeError: Found classjline.Terminal, but interface was expected

??????? at jline.TerminalFactory.create(TerminalFactory.java:101)

??????? at jline.TerminalFactory.get(TerminalFactory.java:158)

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)

? ? ? ? at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)

??????? at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)

??????? at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)

??????? at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)

??????? atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

??????? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

??????? at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

??????? at java.lang.reflect.Method.invoke(Method.java:606)

??????? at org.apache.hadoop.util.RunJar.run(RunJar.java:221)

??????? at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

Exceptionin thread "main" java.lang.IncompatibleClassChangeError: Found classjline.Terminal, but interface was expected

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:230)

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)

??????? at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)

??????? at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)

? ? ? ?at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)

??????? at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)

??????? at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)

??????? atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

??????? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

??????? at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

??????? at java.lang.reflect.Method.invoke(Method.java:606)

??????? at org.apache.hadoop.util.RunJar.run(RunJar.java:221)

??????? at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

Hadoopjline-*.jar 有三個

/home/jifeng/hadoop-2.6.0/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jline-0.9.94.jar
/home/jifeng/hadoop-2.6.0/share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jline-0.9.94.jar
/home/jifeng/hadoop-2.6.0/share/hadoop/yarn/lib/jline-0.9.94.jar

Hadoopjline-*.jar版本和hivejline-*.jar版本不一致導致,替換Hadoopjline-*.jar,就可解決這個錯誤

rm-rf /home/jifeng/hadoop-2.6.0/share/hadoop/yarn/lib/jline-0.9.94.jar

cp./jline-2.12.jar /home/jifeng/hadoop-2.6.0/share/hadoop/yarn/lib

只是替換 / home/ jifeng /hadoop-2.6.0/share/ hadoop /yarn/lib這一個就好了



與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的Hive 1.1.1 启动错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。