我试图以伪分布式模式运行配置单元脚本。当我运行交互模式时,脚本中的命令运行得非常好。但是,当我在脚本中添加所有这些命令并运行时,出现错误。以伪分布式模式运行配置单元脚本时出错
脚本:
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运行良好。
有人可以给任何指针?
谢谢。