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