我有一個腳本來創建一個配置單元表,腳本成功完成,但我無法看到表,請幫助。配置單元表沒有顯示在命令行界面
下面是腳本來創建表生成 #!/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; !
日誌: `蜂房>創建表GoodRecords(
ID INT, 名稱字符串, 狀態串, phone_no INT, 性別字符串)以''結尾的格式分隔字段 存儲爲文本文件; 蜂房>出口;`
GUI Hadoop的顯示,該表已經建立: /user/hive/warehouse/goodrecords
命令行輸出到showtables。 hive> show tables; OK Time taken: 0.34 seconds
嘗試打印表值。 select * from GoodRecords – Kumar 2014-10-31 10:36:41
我已經執行了上面的命令,但下面是輸出.. 'hive> select * from GoodRecords; 失敗:SemanticException [錯誤10001]:行1:14表未找到'GoodRecords'' – Dinesh 2014-10-31 11:35:48
創建表GoodRecords(id int,名稱字符串,狀態字符串,phone_no int,性別字符串)以''結尾的行格式分隔字段存儲作爲文本文件;從終端嘗試這個命令。然後運行顯示錶; – Kumar 2014-10-31 11:42:59