Hive错误记录
2024-09-04 15:46:08
创建表报错
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导入数据,成功
最新文章
- linux shell脚本使用结构化命令(2)
- mysql memory表性能测试以及使用场景
- dataserver test code
- c++转C#
- python 解析json loads dumps
- 每天一道LeetCode--119.Pascal's Triangle II(杨辉三角)
- Android设计模式—策略模式
- js获得url的参数
- SVG的动态之美-搜狗地铁图重构散记
- CSS选择器权重计算
- 洛谷.2709.小B的询问(莫队)
- 转:jQuery插件开发全解析
- Ubuntu下SSH安装
- Velocity学习笔记
- goldendict
- 利用iWARP/RDMA解决以太网高延迟
- weblogic打补丁,bsu方法
- 软件项目需求调研中的5W+1H定律案例分析
- spring-boot-starter-data-elasticsearch实现es的增删查改
- BZOJ 4873 寿司餐厅(最大权闭合图 网络流)
热门文章
- [ARC083F] Collecting Balls [建二分图+环套树定向+建拓扑图+树的拓扑序计数]
- Lights inside 3D Grid LightOJ - 1284 (概率dp + 推导)
- 洛谷 P2173 [ZJOI2012]网络 解题报告
- vue-cli安装sass
- sql优化 in 和 not in 语句
- Maven项目消除奇怪的红叉
- linux下scp
- classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar问题的解决方法
- Linux的系统级性能剖析工具-perf
- C和C++的关键字区别