我試圖以僞分佈式模式運行配置單元腳本。當我運行交互模式時,腳本中的命令運行得非常好。但是,當我在腳本中添加所有這些命令並運行時,出現錯誤。以僞分佈式模式運行配置單元腳本時出錯
腳本:
add jar /path/to/jar/file;
create table flights(year int, month int,code string) row format serde 'com.bizo.hive.serde.csv.CSVSerde';
load data inpath '/tmp/hive-user/On_Time_On_Time_Performance_2013_1.csv' overwrite into table flights;
的 'On_Time_On_Time_Performance_2013_1.csv' 並不在HDFS存在。我得到的錯誤是:
FAILED: SemanticException Line 3:17 Invalid path ''/tmp/hive-user/On_Time_On_Time_Performance_2013_1.csv'': No files matching path hdfs://localhost:54310/tmp/hive-user/On_Time_On_Time_Performance_2013_1.csv
fs.default.name=hdfs://localhost:54310
我的hadoop運行良好。
有人可以給任何指針?
謝謝。