CREATE TABLE test1 (Column1 string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
LOAD DATA INPATH 'asv://hivetest@mystorageaccount.blob.core.windows.net/foldername' OVERWRITE INTO TABLE test1 ;
加载数据会产生以下错误:
失败:语义分析错误:第 1:18 行路径不合法“asv://hivetest@mystorageaccount.blob.core.windows.net/foldername”:移动自:asv://hivetest@mystorageaccount.blob。 core.windows.net/foldername 到:asv://hdi1@hdinsightstorageaccount.blob.core.windows.net/hive/warehouse/test1 无效。请检查参数“default.fs.name”和“hive.metastore.warehouse.dir”的值是否不冲突。
该容器hivetest
不是我的默认 HDInsight 容器。它甚至位于不同的存储帐户上。但是,问题可能不在于帐户凭据,因为我已编辑core-site.xml
包含mystorageaccount
.
如何从非默认容器加载数据?