我是hadoop的新手,並且處於學習階段。當我嘗試在配置單元中執行下面的語句時,empl.txt
正被移至垃圾文件夾。無法將數據從HDFS加載到Hadoop中的Hive
load data inpath '/user/trnkimz/empl.txt' into table empl;
另外,數據沒有存儲在empl表中。 在我的表中,我有以下列:e-id int
和e_name String
。
在我empl.txt
文件,我有下面的數據吧:
1,john
2,smith
3,alex
請建議,那爲什麼我無法從HDFS加載數據蜂巢表。 在此先感謝。
- 檢查/user/trnkimz/empl.txt是否在HDFS上,如果它位於本地文件系統上,請使用LOAD LOCAL DATA。 - 另外,請確保表格有正確的'ROW FORMAT DELIMITED',請查看:https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-RowFormat,StorageFormat,andSerDe – 2014-08-28 18:51:08