Skip to content

Commit 7660f8d

Browse files
authored
Fix path to load data file into Hive tables
Following this example failed with: ``` FAILED: SemanticException Line 1:17 Invalid path ''wasb://<container name><storage account name>.blob.core.windows.net/<blob file name>'' ``` On investigating the documentation I found that an "@" symbol needs to be placed between the container name and the storage account name to correctly query the blob data location[1]. After adding an "@" symbol it worked for me. [1]: https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-use-blob-storage#access-files-from-within-cluster
1 parent c72c9d4 commit 7660f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/machine-learning/team-data-science-process/move-hive-tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Here is the Hive query that loads data into a Hive table.
143143

144144
LOAD DATA INPATH '<path to blob data>' INTO TABLE <database name>.<table name>;
145145

146-
* **\<path to blob data\>**: If the blob file to be uploaded to the Hive table is in the default container of the HDInsight Hadoop cluster, the *\<path to blob data\>* should be in the format *'wasb://\<directory in this container>/\<blob file name>'*. The blob file can also be in an additional container of the HDInsight Hadoop cluster. In this case, *\<path to blob data\>* should be in the format *'wasb://\<container name>\<storage account name>.blob.core.windows.net/\<blob file name>'*.
146+
* **\<path to blob data\>**: If the blob file to be uploaded to the Hive table is in the default container of the HDInsight Hadoop cluster, the *\<path to blob data\>* should be in the format *'wasb://\<directory in this container>/\<blob file name>'*. The blob file can also be in an additional container of the HDInsight Hadoop cluster. In this case, *\<path to blob data\>* should be in the format *'wasb://\<container name>@\<storage account name>.blob.core.windows.net/\<blob file name>'*.
147147

148148
> [!NOTE]
149149
> The blob data to be uploaded to Hive table has to be in the default or additional container of the storage account for the Hadoop cluster. Otherwise, the *LOAD DATA* query fails complaining that it cannot access the data.

0 commit comments

Comments
 (0)