none
loading problem in pig

    Question

  • Hello

    I have a problem in loading data into my pig, Actually I created a container in my storage and upload some text files, but When I wanted to load my data into pig(grunt) it said that can't read data from input. I used asv://container@account.blob.core.windows.net/name.txt but unfortunately it couldn't read from input and give some errors.

    could you tell me what should I do exactly?

    thanks again

    Monday, August 05, 2013 11:54 AM

All replies

  • This article may be helpful: http://www.windowsazure.com/en-us/manage/services/hdinsight/using-pig-with-hdinsight/

    If not, can you share the commands you executed and the errors you received? That will help us in understanding what is happening.

    Thanks.

    -Brian


    This posting is provided "AS IS" with no warranties, and confers no rights. http://blogs.msdn.com/brian_swan

    Monday, August 05, 2013 3:04 PM
  • Hello
    thanks for your response, Actually I created a storage then a HDInsight on that storage then uploaded some text file with azure storage explorer, after that when I wanted to load data like this:
    A = LOAD 'asv://123@faraz.blob.core.windows.net/salam.txt' ;
    DUMP A;
    .
    .
    .
    then it gave me this error:

    Input(s):
    Failed to read data from "asv://123@faraz.blob.core.windows.net/salam.txt "

    Output(s):Failed to produce result in "asv://test@faraz.blob.core.windows.net/tmp/temp-107
    5234199/tmp-1250521031"
    What should I do with this problem?
    thanks


    Monday, August 05, 2013 8:59 PM
  • Can you move salam.txt to your default file system and retry your command?

    Wednesday, August 07, 2013 5:39 PM
  • I moved it into root container and wrote this command:

    a = LOAD 'asv:///salam.txt';

    dump a;

    but unfortunately it doesn't work again

    Thursday, August 08, 2013 5:50 AM