[英]Error when loading data from HDFS to Hive on Azure Hdinsight
I am using Hadoop on Azure HDinsight. 我在Azure HDinsight上使用Hadoop。
On my Hadoop cluster storage container, I have created a file share called "tempdata" and upload the file "his2.csv". 在Hadoop集群存储容器上,我创建了一个名为“ tempdata”的文件共享,并上传了文件“ his2.csv”。
On hive , I created a table "temps_his" to hold data of "his2.csv" into.I ran the following query : 在hive上,我创建了一个表“ temps_his”来保存“ his2.csv”的数据。我运行了以下查询:
LOAD DATA INPATH '/user/admin/tempdata/his2.csv' OVERWRITE INTO TABLE temp_his;
( admin is my username) (管理员是我的用户名)
I got the following error: 我收到以下错误:
Error while compiling statement: FAILED: SemanticException Line 1:17 Invalid path ''/user/admin/tempdata/his2.csv'': No files matching path wasb://saadcluster@saadcluster.blob.core.windows.net/user/admin/tempdata/his2.csv [ERROR_STATUS]
How can I fix this and get the exact path of the file? 如何解决此问题并获取文件的确切路径?
either put file in hdfs or add "local " in command . 将文件放在hdfs中或在命令中添加“ local”。 LOAD DATA local INPATH '/user/admin/tempdata/his2.csv' OVERWRITE INTO TABLE temp_his;
LOAD DATA local INPATH'/user/admin/tempdata/his2.csv'覆盖到表中temp_his;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.