hive ALLOW_UNQUOTED_CONTROL_CHARS
生活随笔
收集整理的這篇文章主要介紹了
hive ALLOW_UNQUOTED_CONTROL_CHARS
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
hadoop-0.20.205.0 下 安裝?hive-0.10.0 :
hive 啟動的時候, 報錯如下:
Exception in thread "main" java.lang.NoSuchFieldError: ALLOW_UNQUOTED_CONTROL_CHARSat org.apache.hadoop.hive.ql.udf.generic.GenericUDTFJSONTuple.<clinit>(GenericUDTFJSONTuple.java:59)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:113)at org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerGenericUDTF(FunctionRegistry.java:545)at org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerGenericUDTF(FunctionRegistry.java:539)at org.apache.hadoop.hive.ql.exec.FunctionRegistry.<clinit>(FunctionRegistry.java:472)at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:202)at org.apache.hadoop.hive.cli.CliSessionState.<init>(CliSessionState.java:86)at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:635)at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.hadoop.util.RunJar.main(RunJar.java:156)?
原因:
hive 里的?jackson jar 包 和 hadoop 里的不一致, hadoop 里的用的是老的 1.0.1 的, hive 里的是 1.8.8.
將hadoop 里的jar 替換成和 hive 一樣的就ok了,?
hadoop jackson 文件地址:
$HADOOP_HOME/share/hadoop/lib/$HADOOP_HOME/lib/兩處.
轉(zhuǎn)載于:https://www.cnblogs.com/BennyTian/archive/2013/05/29/3106410.html
總結(jié)
以上是生活随笔為你收集整理的hive ALLOW_UNQUOTED_CONTROL_CHARS的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 实验二:进程的创建与可执行程序的加载
- 下一篇: ObservableCollection