zoukankan      html  css  js  c++  java
  • 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");


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

  • 相关阅读:
    手机体验细节小动画
    第一次用AngularJS
    鼠标离开方向检测
    回忆之placeholder
    回忆之日历
    大数据学习
    shell 二
    十三:变量、函数、存储过程、循环控制结构
    十二:事务与视图
    十一:约束
  • 原文地址:https://www.cnblogs.com/dyllove98/p/3170209.html
Copyright © 2011-2022 走看看