hive1.2.1问题集锦
1.启动hive报错:
Logging initialized using configuration in jar:file:/usr/local/hive-1.2.1/lib/hive-common-1.2.1.jar!/hive-log4j.properties
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.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.setupConsoleReader(CliDriver.java:787)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:721)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
at sun.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:601)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.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.setupConsoleReader(CliDriver.java:787)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:721)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
at sun.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:601)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
解决办法:
在conf/hive-env.sh中 添加
export HADOOP_USER_CLASSPATH_FIRST=true
即可解决.
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnAAAABMCAIAAABiVh0LAAAQQklEQVR4nO2d2YGzOgyF0xa3INrJXw3NUAz3IQFkSUdeMAlkzvc0ASPLCxbyonkshBBCCDnM49sKEEIIIb8ADSohhBDSARpUQgghpAM0qIQQQkgHaFAJIYSQDtCgEkIIIR2gQSWEEEI6QINKWpnGx2N4zt9W43a49TY/h8eKunm0nqfx8Rin1qfn53Dg6RY+3a9Q1QdNUig1rTe+L38Ax6BO42OclmV+Dmx9EsABog2n3ubngKuSBvUzoEYIGyeURoP657AGdX4O47QsyzQWNP40PiTZJ6re7TSx7qDzc1AZKmVEYnEHPSGuHyuU1NORP42JyGncNVX5lrx8x8bKz1Gr513K1YtTy3s3g9qBpiKfbVBP5K+9L9fFGNTVMX37qRFRRxPTJcBc5HtAaFCn8TGOY5J/kn63VMmHofiBrqdyCt4moKcv/1UNIqthGEQNlb8VYX3K2aqsyFe+mzw065VUiSf8rf+u2FYNNe3er1xKVkF6KT5tO1A/Tj/HkrKVqW5GhfU1xbVg2yWsn138+JTvHVLJvR7VW6728/0K1ULUf+L+0MGguvUWl2u729iv6t8XN1+nkG0fEn8caVBt08T1CSt8fg7JqJA6ZF081Je9T1Mo4a+cJ6GLTDWD60ZOXmVXTyR/Gh/jc51Nn8bhOT3bDCp+JKlyo4cvJPnuEQYgkqMzf/cf6Z57f3+sXMsyz2vHKxkckJKofmA/t5MnuXzC+jE3M/J9/b22APWjvy6FYfDqH12H9Vagb0m/CioN3Ir7w2GDCuotLtdmz/Ys6vtV1fsC8vXUo9dbi/JQK/zTZREm2Hxdpb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ZH/EDXqw2qyXjLoM5gqzE2p8NrpC/Z/bNdRvWG9KzSH8pHan1wDVX15wq1Ytz+HH1w7DPi4pu1KYg/IeRrBLt8l/eU7z2C4zvj7poOTaXiTP3r1QY1qAcBug487GksrCKTg5G/umlF9Vamv6mfQD56rJdBdctr0u/1icqVyQYrpboQFrAmHuQ/OViWpSaIPyHk6xw5h9pgYH4Pu9DlD8e/ku+3+GvlJYTcDxpUQgghpAM0qIQQQkgHzowsGJzguA5ykco5z3El/b+lz9Xq4er86ocmelWCV6hQ6qFNZ4RcB8egvndlqlhGDdxgIA53F19NfxrUe/DrBqA2glZeGg0q+RGsQZ2fw3sPb9Nu28+QbFE5MNhf7V39ij6Z3a1nZ32l+u/CBQvVVSUaVEIA/wNTdwVCTP35KQAAAABJRU5ErkJggg==" alt="" />
2. mysql 创建表异常
在安装Hive时,经常报异常。
后来采用输出日志的方式来开启hive:hive -hiveconf hive.root.logger=DEBUG,console
这样在执行命令时,就会输出日志,出现异常可以很快定位。
--------------------------------------------------------------------------------
ERROR DataNucleus.Datastore: Error thrown executing CREATE TABLE `SD_PARAMS`
(
`SD_ID` BIGINT NOT NULL,
`PARAM_KEY` VARCHAR(256) BINARY NOT NULL,
`PARAM_VALUE` VARCHAR(4000) BINARY NULL,
CONSTRAINT `SD_PARAMS_PK` PRIMARY KEY (`SD_ID`,`PARAM_KEY`)
) ENGINE=INNODB : Specified key was too long; max key length is 767 bytes
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes
这是字符集的问题,在数据库上执行 alter database hive character set latin1;来修改字符集,问题解决。
hive1.2.1问题集锦的更多相关文章
- 看完SQL Server 2014 Q/A答疑集锦:想不升级都难!
看完SQL Server 2014 Q/A答疑集锦:想不升级都难! 转载自:http://mp.weixin.qq.com/s/5rZCgnMKmJqeC7hbe4CZ_g 本期嘉宾为微软技术中心技术 ...
- Android之常见问题集锦Ⅱ
Android问题集锦Ⅰ:http://www.cnblogs.com/AndroidJotting/p/4608025.html EditText输入内容改变事件监听 _edit.addTextCh ...
- Visual Studio问题集锦:coloader80.dll未正确安装
问题 今天在修改之前的一个项目的时候报了一个错,大概内容如下: 有一个 Visual Studio 的 DLL 文件(coloader80.dll)未正确安装.请通过"控制面板"中 ...
- Eclipse for Java EE软件操作集锦(二)
看本文章之前请确保已经了解eclipse建立web工程,如果有疑问请查看本系列文章第一篇 eclipse软件操作集锦(一) 1.我们添加一个servlet 配置一下web.xml测试一下是否能正常显示 ...
- Mysql 常用 SQL 语句集锦
Mysql 常用 SQL 语句集锦 基础篇 //查询时间,友好提示 $sql = "select date_format(create_time, '%Y-%m-%d') as day fr ...
- C/C++面试题集锦(一)
C/C++面试题集锦(一) */--> C/C++面试题集锦(一) 在类的头文件中进行声明然后在定义文件中实现有什么意义? 一方面使类的实现只编译一次,提高编译效率:另一方面可以实现类的接口和实 ...
- 通用js函数集锦<来源于网络> 【二】
通用js函数集锦<来源于网络> [二] 1.数组方法集2.cookie方法集3.url方法集4.正则表达式方法集5.字符串方法集6.加密方法集7.日期方法集8.浏览器检测方法集9.json ...
- 通用js函数集锦<来源于网络/自己> 【一】
通用js函数集锦<来源于网络/自己>[一] 1.返回一个全地址2.cookie3.验证用户浏览器是否是微信浏览器4.验证用户浏览器是否是微博内置浏览器5.query string6.验证用 ...
- SQL Server复制出错文章集锦
SQL Server复制出错文章集锦 为了方便大家对数据库复制过程中出错的时候更好地解决问题 本人收集了SQL Server相关复制出错解决的文章 The process could not ex ...
随机推荐
- Errors running builder 'DeploymentBuilder' on project ' 解决方法
此问题一般发生在Myeclipse 保存文件并自动部署时候. Errors occurred during the build. Errors running builder 'DeploymentB ...
- Extjs tree2
本案例中记载了Extjs中一棵树的形成以及各种案例集成,并详解介绍了TreePanel.TreeNode和AsyncTreeNode这三个主要对象.纯属个人业余时间玩玩的,整理出来,方便以后查看. J ...
- supervisor备忘
supervisor是把普通app变成deamon的工具,虽然没有erlang的supervise粒度那么细,但是已经非常方便了 安装 sudo apt-get install supervisor ...
- [转载]树莓派新版系统上使用mjpg-streamer获取USB摄像头和树莓派专用摄像头RaspiCamera图像
树莓派新版系统上使用mjpg-streamer获取USB摄像头和树莓派专用摄像头RaspiCamera图像 网上有很多关于mjpg-stream移植到树莓派的文章,大部分还是使用的sourceforg ...
- C# 中的委托和事件(1)
引言 委托 和 事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易.它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去 ...
- MySQL 5.7 坑爹参数 – log_timestamps
官网原话: This variable was added in MySQL 5.7.2. Before 5.7.2, timestamps in log messages were written ...
- histroy.back和histroy.go的区别
histroy.back(-1):直接返回当前页的上一页,数据全部消失,是个新的页面: histroy.go(-1):直接返回当前页的上一页,不过表单里的数据全部还在: histroy.back(0) ...
- 浅谈OPP
了解Java或C#等面向对象编程语言的的程序员比较熟悉类和对象以及OOP. 一谈起OOP,就会想起教科书式的OOP概念:封装.继承.多态.粗浅的解释封装就是对数据进行隐藏:继承就是子类继承父类(cla ...
- 由于安装Android设备驱动异常,ADB无法识别安卓设备的解决方案
体验更优排版请移步原文:http://blog.kwin.wang/programming/android-driver-exception-solution.html 最近换了台新电脑,在Andro ...
- python 监控windows磁盘空间和备份大小
#!/usr/bin/env python # Version = 3.5.2 # __auth__ = '无名小妖' import os import time import sendmail im ...