【发布时间】:2021-12-29 15:11:03
【问题描述】:
我是 hadoop 等的新手。 通过直线连接到 hiveserver2。然后我创建表:
create table test02(id int, name string);
表创建,我尝试插入值:
insert into test02(id, name) values (1, "user1");
然后什么也没有发生。 table02 和 values__tmp__table__1 已创建,但它们都是空的。 Hadoop目录“/user/$username/warehouse/test01”为空。
0: jdbc:hive2://localhost:10000> insert into test02 values (1,"user1");
No rows affected (2.284 seconds)
0: jdbc:hive2://localhost:10000> select * from test02;
+------------+--------------+
| test02.id | test02.name |
+------------+--------------+
+------------+--------------+
No rows selected (0.326 seconds)
0: jdbc:hive2://localhost:10000> show tables;
+------------------------+
| tab_name |
+------------------------+
| test02 |
| values__tmp__table__1 |
+------------------------+
2 rows selected (0.137 seconds)
【问题讨论】:
-
这听起来像是权限问题。谁有权写入 Hive 数据仓库?