hive load from hdfs出错

使用hive load从hdfs中load data的时候,hiveql如下:

 

load data inpath 'hdfs://192.168.0.131:9000/hive/test.log'

overwrite into table test_log

partition(dt="20130703");


出错:

 

 

FAILED: SemanticException [Error 10028]: Line 1:17 Path is not legal ''hdfs://192.168.0.131:9000/hive/test.log'': Move from: hdfs://192.168.0.131:9000/hive/test.log to: hdfs://namenode:9000/home/hadoop/hive/warehouse/test_log/dt=20130703 is not valid. Please check that values for params "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict.


查找度娘、谷哥没找到相应的解决方案。后来回头一想,之前在做hbase的一些操作的时候,直接使用ip也不行,转换成别名即可。

 


 

load data inpath 'hdfs://namenode:9000/hive/test.log'

overwrite into table test_log

partition(dt="20130703");


 

尝试之下,再次测试,成功执行。

 

你可能感兴趣的:(hive)