hive>LOAD DATA INPATH '/hadoop/abc/POC2_Setup/input/warr2_claims_5441F.csv' OVERWRITE INTO TABLE baumuster_pre_analysi_text;
FAILED:SemanticException Line 1:17路径无效 ''/ hadoop/abc/POC2_Setup/input/warr2_claims_5441F.csv'':没有文件 匹配路径 HDFS://本地主机:9000 / hadoop的/ ABC / POC2_Setup /输入/ warr2_claims_5441F.csv
答案 0 :(得分:0)
如果您要从本地加载数据,则必须提及LOCAL
。
hive>LOAD LOCAL DATA INPATH '/hadoop/abc/POC2_Setup/input/warr2_claims_5441F.csv' OVERWRITE INTO TABLE baumuster_pre_analysi_text;
如果您的默认目录未设置为本地,则必须在路径前提及file:/
。
答案 1 :(得分:0)
要从本地计算机加载数据,您可以使用以下命令:
LOAD DATA LOCAL INPATH '/hadoop/abc/POC2_Setup/input/warr2_claims_5441F.csv' OVERWRITE INTO TABLE baumuster_pre_analysi_text;