我有一个创建配置单元表的脚本,该脚本正在成功完成,但我无法看到该表,请帮助。
下面是创建表的脚本 #!/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>create table goodrecords( id int,name string,state string,phone\u no int,gender string)行格式分隔字段,以“,”结尾,存储为textfile;Hive>退出
gui hadoop显示表已创建: /user/hive/warehouse/goodrecords
命令行输出到showtables。 hive> show tables; OK Time taken: 0.34 seconds
1条答案
按热度按时间alen0pnh1#
设置配置单元元存储服务时出现一些问题。
请尝试重新启动metastore服务。应该有用。