hive的问题
来源:互联网 发布:淘宝店铺联盟开通条件 编辑:程序博客网 时间:2024/06/14 07:07
1.hive> create table t_sz01(id int,name string);
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.)
解决方法:mysql> alter database hive character set latin1;
Query OK, 1 row affected (0.01 sec)
2.
[hadoop@itcast hive]$ bin/hive
Logging initialized using configuration in jar:file:/home/hadoop/app/hive/lib/hive-common-1.2.1.jar!/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Caused by: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3307/hive?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
NestedThrowables:
java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3307/hive?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
描述:这个错误是我在登录hive的时候报的错,弄了好久,是配置文件的问题,是hive-site.xml
解决方案:
[hadoop@itcast conf]$ vi hive-site.xml
<configuration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://itcast:3307/hive?createDatabaseIfNotExist=true</value>
<description>JDBC connect string for a JDBC metastore</description>
</property>
- hive union 的问题
- hive的union问题
- hive union 的问题
- Hive的两个问题
- hive的问题
- [Hive]关于Hive的启动问题
- hive的create table 问题
- Hive安装出现的问题
- hive 终端产生的问题
- Hive 安装出现的问题
- hive登录账号的问题
- hive安装出现的问题
- hive的数据倾斜问题
- hive的一些小问题
- hive sql遇到的问题
- Hive内存溢出的问题
- hive安装遇到的问题
- hive 的执行队列问题
- 欧拉函数
- 51Nod1079中国剩余定理
- hadoop: name node is in safe mode 解决办法
- [POJ] 3311 Hie with the Pie [spfa + 状压]
- 开机自启应用
- hive的问题
- MyBatis的Mapper接口以及Example的实例函数及详解
- Qt布局管理基本实例
- apache rewrite
- 安卓播放音频的方式方法
- TensorFlow学习笔记(二十四)自制TFRecord数据集 读取、显示及代码详解
- 深入理解Python中的__builtin__和__builtins__
- Updating Code Composer Studio
- linux压缩与解压缩