
hive> load data local inpath '/root/data/hdata.txt' into table psn3 partition(age=10, sex='boy');
FAILED: SemanticException Line 1:23 Invalid path ''/root/data/hdata.txt'': No files matching path file:/root/data/hdata.txt
试了一下https://*.com/questions/40187956/hive-failed-semanticexception-line-123-invalid-path的解决办法,把local移除,确实把问题解决了。