通过hive-jdcv连接hive server,在应用服务端执行以下命令,报错:Hiver Server节点上找不到data.txt

load data local inpath '/home/dw_hbkas/przhang/data.txt' overwrite into table ind01acom

原因如下:

When using the JDBC driver, the command executes on the HiveServer2 side. The file is evaluated to locally exist on the server, which is not true in your case (it exists on the local client program machine).

Try instead to load the file to HDFS first, and use a HDFS URI in the LOAD DATA statement to make the server find it.

通过JDBC使用load命令时,hive会从hive server节点上找文件,应用服务跟hive server不是一个节点。

解决方法:

load之前文件上传到hdfs上,从hdfs导入

最新文章

  1. KPI:Key Performance Indicator
  2. 兼容好的JS图片上传预览代码
  3. Android SDK Manager无法更新的解决
  4. 初识socket
  5. 【php基础】XML,DTD实例
  6. iOS实例下载:使用腾讯的SDK将新浪微薄嵌入到应用中
  7. (转)CAP理论十二年回顾:"规则"变了
  8. MyEclipse中web服务器的三种配置方式
  9. MySQL 二进制日志过滤
  10. Eclipse Java 关联源码
  11. Regular Expression Matching2015年6月24日
  12. 查询Date时时间查询不出来
  13. AsyncTask机制
  14. 《数据仓库ETL工具箱》读书笔记
  15. springboot读取properties和yml配置文件
  16. windows下安装GIT,使用GIT GUI 上传文件到github
  17. jenkins执行shell提示命令不存在
  18. [CF986F]Oppa Funcan Style Remastered[exgcd+同余最短路]
  19. 使用Robot Framework做接口测试
  20. dbms_random.seed

热门文章

  1. bugkuCTFWEB部分WP
  2. tp5 跨域问题
  3. Route_of_Linux
  4. JUC并发工具包之CountDownLatch
  5. InnoDB 中的缓冲池(Buffer Pool)
  6. JZOJ8月10日提高组T2 Fix
  7. sql server full join拼接表数据,按组加序号
  8. 原创题目 白银之春 Problem and Solution
  9. Docker 本地镜像推送到阿里云(五)
  10. Java面试专题-多线程(3)-原子操作