日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Hive 1.1.1 启动错误

發(fā)布時(shí)間:2024/9/30 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Hive 1.1.1 启动错误 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

?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. 環(huán)境變量

~/.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啟動(dòng)

1.啟動(dòng)Hadoop

?? 只啟動(dòng)HDFS

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

2.啟動(dòng)Hive



Hive啟動(dòng)錯(cuò)誤

[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 有三個(gè)

/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版本不一致導(dǎo)致,替換Hadoopjline-*.jar,就可解決這個(gè)錯(cuò)誤

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這一個(gè)就好了



與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。