hive JDOFatalInternalException 解决

环境:

OS: Ubuntu 10.04 LTS

Hadoop: 0.20.203.0

Hive: 0.80


操作步骤:

1. 解压缩hive-0.8.0.tar.gz

2. 设置JAVA_HOME和HIVE_INSTALL环境变量,添加$HIVE_INSTALL/bin目录到PATH

3. 执行hive

4. 执行创建表语句后出现异常

hive> create table tt(id int, name string);
FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask


解决:

将$HADOOP_HOME/build重命名即可,注意,如果有多个节点,除了namenode的build目录要重名外,如果操作在其中之一的datanode节点机器上,则也需要将build目录重命名。

结果如下:

hive> create table tt(id int, name string);
OK
Time taken: 0.239 seconds


posted @ 2012-01-31 22:58  hongweigg  阅读(27)  评论(0)    收藏  举报