Search code examples
apache-pigazure-hdinsight

Relative path in absolute URI error while using PIG via RDP in HDInsight


I'm trying to run a pig query using RDP in HDInsight..

The query is

LOGS = LOAD 'wasb://[email protected]/' as unparsedString:chararray;

where containerName & storageAccountName are my containerName and storageAccountName where my data exists..

Its throwing an error stating.. ERROR 1200: java.net.URISyntaxException: Relative path in absolute URI: wasb://[email protected]_schema

Failed to parse: java.net.URISyntaxException: Relative path in absolute URI: wasb://[email protected]_schema

Update: I saved the file in HDInsight Default container in a folder 'pigdata' and then the following worked..

LOGS = LOAD 'wasb:///pigdata' as unparsedString:chararray;

But,I would like if it was possible to get this working without saving to the default container. Any help is sincerely appreciated

Thanks


Solution

  • You need to have your log data in a "folder", like pigdata, and not in the root of the container. Try moving your data into a root folder and changing the command.

    EX: LOGS = LOAD 'wasb://[email protected]/pigdata/'