简体   繁体   English

在Azure Hdinsight上将数据从HDFS加载到Hive时出错

[英]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.

相关问题 从hdinsight中的配置单元查询将数据写入文件系统 - writing data to filesystem from hive queries in hdinsight Hive 和 Hdinsight 与 Azure 上的 python 的连接 - Connectivity of Hive and Hdinsight with python on Azure 使用 PySpark 从 Azure HDInsight 检索数据 - Retrieve data from Azure HDInsight with PySpark 带有Tez的Azure HDInsight上的Hive上的重建索引失败 - Rebuild index failed on Hive on Azure HDInsight with Tez Azure数据工厂配置单元中的HDInsight创建外部表…位置:方案的无文件系统:adl - HDInsight in Azure Data Factory Hive CREATE EXTERNAL TABLE…LOCATION: No FileSystem for scheme: adl 在Powershell中运行Hive时出现错误:“在调用此cmdlet之前,请先连接到有效的Azure HDInsight群集” - Getting Error: “Please connect to a valid Azure HDInsight cluster before calling this cmdlet” while running Hive in Powershell 从群集中的其他Azure HDinsight群集访问Hive表 - Accessing Hive tables from other Azure HDinsight cluster from within our cluster 将数据从Azure SQL导入到HDInsight(文本文件) - Import data from Azure SQL to HDInsight (text file) Azure 上的 Horton Sandbox 教程 - 无法从 HDFS 上传到 Hive - Horton Sandbox on Azure Tutorial - Can't upload from HDFS into Hive 如何在HDInsight内部将数据上传到Hive? - How to upload data into Hive inside HDInsight?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM