安装hive2.0.1,元数据库为MySQL5.1.7 OS为centos6.7
在hive中建表报错:failed execution error return code 1 from org apache hadoop hive ql exec ddltask
解决方法:
root用户运行如下命令:
root@localhost ~]# schematool -dbType mysql -initSchema
即可
hive> create table tt (iii int);
OK
Time taken: 2.093 seconds
hive> show tables;
OK
tt
Time taken: 0.322 seconds, Fetched: 1 row(s)