我有一个脚本来创建配置单元表,该脚本已成功完成,但是我看不到该表,请帮忙。
下面是创建表的脚本#!/bin/bash
hive <<! > hive_out.log
create table GoodRecords(
id int,
name string,
state string,
phone_no int,
gender string) row format delimited fields terminated by ',' stored as
textfile;
exit;
!
生成的日志:
`hive>创建表GoodRecords(
id int, name string, state string, phone_no int, gender string) row format delimited fields terminated by ',' stored as textfile; hive> exit;`
GUI Hadoop显示该表已创建:
/user/hive/warehouse/goodrecords
命令行输出到showtables。
hive> show tables;
OK
Time taken: 0.34 seconds
最佳答案
设置Hive Metastore服务存在一些问题。
只需尝试重新启动您的Metastore服务即可。它应该工作。
关于hadoop - 配置单元表未在命令行界面中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26672505/