创建表报错

Error: Error while processing statement: 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.) (state=08S01,code=1)
  • 注意,这里使用的hive链接为:jdbc:mysql://10.1.1.5:3306/hive?createDatabaseIfNotExist=true
  • 如果数据库不存在会自动创建hive数据库,这时的hive数据编码会是默认数据库编码(我这里是UTF-8).修正数据库编码后正常创建表
  • alter database hive character set latin1;

load数据错误

Caused by: MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.reconnect(HiveMetaStoreClient.java:308)
at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:148)
at com.sun.proxy.$Proxy9.appendPartition(Unknown Source)
at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:1849)
... 22 more
  • 还是因为数据库字符集的原因,我这里数据库默认已经是latin,发现库中部分表仍然是UTF8,修改表为latin后导入数据仍然报错
  • 解决办法,备份原有hive数据库并删除,然后新创建hive数据库,指定字符集latin(navicate有可能默认帮你设置UTF-8,创建后需再次查看是否为latin)
  • 重启hive导入数据,成功

最新文章

  1. linux shell脚本使用结构化命令(2)
  2. mysql memory表性能测试以及使用场景
  3. dataserver test code
  4. c++转C#
  5. python 解析json loads dumps
  6. 每天一道LeetCode--119.Pascal's Triangle II(杨辉三角)
  7. Android设计模式—策略模式
  8. js获得url的参数
  9. SVG的动态之美-搜狗地铁图重构散记
  10. CSS选择器权重计算
  11. 洛谷.2709.小B的询问(莫队)
  12. 转:jQuery插件开发全解析
  13. Ubuntu下SSH安装
  14. Velocity学习笔记
  15. goldendict
  16. 利用iWARP/RDMA解决以太网高延迟
  17. weblogic打补丁,bsu方法
  18. 软件项目需求调研中的5W+1H定律案例分析
  19. spring-boot-starter-data-elasticsearch实现es的增删查改
  20. BZOJ 4873 寿司餐厅(最大权闭合图 网络流)

热门文章

  1. [ARC083F] Collecting Balls [建二分图+环套树定向+建拓扑图+树的拓扑序计数]
  2. Lights inside 3D Grid LightOJ - 1284 (概率dp + 推导)
  3. 洛谷 P2173 [ZJOI2012]网络 解题报告
  4. vue-cli安装sass
  5. sql优化 in 和 not in 语句
  6. Maven项目消除奇怪的红叉
  7. linux下scp
  8. classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar问题的解决方法
  9. Linux的系统级性能剖析工具-perf
  10. C和C++的关键字区别