报错1:
hive> CREATE TABLE dummy(value STRING);
FAILED: Error in metadata: javax.jdo.JDOFatalInternalExceptio
NestedThrowables:
java.lang.reflect.InvocationTargetExceptio
FAILED: Execution Error, return code 1 fromorg.apache.hadoop.hive.ql.exec.DDLTask
解决方法:下载mysql的jar包mysql-connector-java-5.1.10-bin.jar,放在hive安装目录的lib下。
报错2:
hive> show tables;
FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreExcepti
NestedThrowables:
java.sql.SQLException: Access denied for user 'hive'@'10.210.74.152' (usingpassword: YES)
FAILED: Execution Error, return code 1 fromorg.apache.hadoop.hive.ql.exec.DDLTask
这是因为mysql不允许远程访问的问题,没有对用户进行授权。
执行 grant all on *.*
报错3:
Exception in thread "Thread-24" java.lang.RuntimeException:Error while reading from task log url
错误原因:没有传递python脚本到mysql上面。