Hive错误记录
错误 记录 hive
2023-09-14 08:57:00 时间
创建表报错
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导入数据,成功
相关文章
- 错误记录 | Android Studio Start Failed com.intellij.ide.plugins.PluginManager
- 【错误记录】Ubuntu 中执行 Java 程序报错 ( Error: Could not find or load main class TCPServer )
- 【错误记录】Flutter 组件报错 ( No Directionality widget found. | RichText widgets require a Directionality )
- 【错误记录】BLE 蓝牙搜索失效 ( 关闭了 GPS 定位导致的问题 | 蓝牙串口工具推荐 )
- 【错误记录】NDK 导入外部 so 动态库报错 ( java.lang.UnsatisfiedLinkError | Android Studio 配置外部 so 动态库两种方法 )
- 【错误记录】Android Studio 导入外部 so 动态库报错 ( java.lang.UnsatisfiedLinkError | 指定 APK 打包动态库的 CPU 架构 )
- 【错误记录】SeeMusic 一直卡在主界面无法使用 ( 删除 C:Users用户名称AppDataLocalLowVisual Music Design 应用信息 )
- 【错误记录】Groovy 运行报错 ( Exception in thread “main“ groovy.lang.MissingMethodException: No signature of )
- 【错误记录】Groovy 闭包使用报错 ( 闭包中不能直接使用外部对象的方法 | 需要先设置 delegate 代理 )
- 【错误记录】VMware 虚拟机报错 ( Ubuntu-Unattended upgrade in progress during shutdown, please don‘t turn off )
- 【错误记录】VMware 虚拟机报错 ( VMWare 中的 Ubuntu 虚拟机网络设置 | 第一次网络设置 )
- 解决Oracle 3113错误的正确方法(oracle错误3113)
- MySQL 1042错误怎么办?(mysql1042)
- Mastering Oracle: Unlocking the Secrets of Error Queries(oracle错误查询)
- Redis 安装遭遇意外错误(redis安装错误)
- 误记录SQL Server中快速删除错误记录(sqlserver删除错)
- 20000错误Oracle数据库出现ora20000让数据库管理者束手无策(oracle出现ora)
- cmd进入MySQL时发生错误(cmd进入mysql报错)
- MySQL三种日志格式全局日志二进制日志和错误日志(mysql三种日志格式)
- 解决AJAX中跨域访问出现'没有权限'的错误
- Mysql本地计算机无法启动mysql服务错误1067:进程意外终止。
- 捕捉并保存ASP运行错误的函数代码