我已经安装了hadoop集群和配置单元,但是当我创建一个新表时,它返回了以下错误
hive> create table newtb (a int, b int, c int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
Moved: 'hdfs://hadoop-master:54310/user/hive/warehouse/newtb' to trash at: hdfs://hadoop-master:54310/user/hadoop/.Trash/Current
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
hive>
如何解决,谢谢!
答案 0 :(得分:0)
在MySQL中设置charset
$ mysql -uroot -p
mysql> alter database hivedb character set latin1;
然后,您可以创建表格。