<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can't store in pig in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199837#M161869</link>
    <description>&lt;P&gt;The above is from grunt. Specifically pig -x mapreduce. The output is:&lt;/P&gt;&lt;P&gt;Input(s): Failed to read data from "hdfs://c7001.ambari.apache.org:8020/&lt;STRONG&gt;user/vagrant/&lt;/STRONG&gt;user/admin/Pig_Data/student_data.txt" Output(s): Failed to produce result in "file:///Pig_Output"&lt;/P&gt;&lt;P&gt;see above posting &lt;/P&gt;&lt;P&gt;I will post the entire output in a few minutes ... it is rather long.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 14:05:08 GMT</pubDate>
    <dc:creator>jcleve72</dc:creator>
    <dc:date>2017-06-07T14:05:08Z</dc:date>
    <item>
      <title>Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199835#M161867</link>
      <description>&lt;P&gt;I am roughly following this tutorial. I am using ambari cluster, but I am using it locally.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/apache_pig/apache_pig_storing_data.htm" target="_blank"&gt;https://www.tutorialspoint.com/apache_pig/apache_pig_storing_data.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;  student_data.txt &lt;/STRONG&gt;file is on the above page.&lt;/P&gt;&lt;P&gt;In pig -x mapreduce I get:&lt;/P&gt;&lt;P&gt; 1. student = LOAD 'user/admin/Pig_Data/student_data.txt' 
  USING PigStorage(',')
  as ( id:int, firstname:chararray, lastname:chararray, phone:chararray, 
  city:chararray );

2. STORE student INTO '/Pig_Output/' USING PigStorage (','); &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Input(s):
Failed to read data from "hdfs://c7001.ambari.apache.org:8020/&lt;STRONG&gt;user/vagrant/&lt;/STRONG&gt;user/admin/Pig_Data/student_data.txt"

Output(s):
Failed to produce result in "file:///Pig_Output"&lt;/P&gt;&lt;P&gt;Why is the store command trying to read data from &lt;/P&gt;&lt;P&gt;"hdfs://c7001.ambari.apache.org:8020/&lt;STRONG&gt;user/vagrant/&lt;/STRONG&gt;user/admin/Pig_Data/student_data.txt" &lt;/P&gt;&lt;P&gt;Where is this coming from??? I put the file in HDFS as &lt;/P&gt;&lt;P&gt;hdfs dfs -put &lt;STRONG&gt;student_data.txt  &lt;/STRONG&gt;'user/admin/Pig_Data/student_data.txt' &lt;/P&gt;&lt;P&gt;I am assuming that the cluster is saving my files on the ambari-server node &lt;/P&gt;&lt;P&gt;c7001.ambari.apache.org is the amber-server node/namenode, port 8020 ???? &lt;/P&gt;&lt;P&gt;I am logged on one pig clients as vagrant, but where does the &lt;STRONG&gt;/user/vagrant  &lt;/STRONG&gt;come from?? &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 05:39:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199835#M161867</guid>
      <dc:creator>jcleve72</dc:creator>
      <dc:date>2017-06-07T05:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199836#M161868</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12198/jcleve72.html" nodeid="12198"&gt;@John Cleveland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you execute these commands on grunt and let me know the results? It should load file from the mentioned path as part of your LOAD command.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:23:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199836#M161868</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-07T09:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199837#M161869</link>
      <description>&lt;P&gt;The above is from grunt. Specifically pig -x mapreduce. The output is:&lt;/P&gt;&lt;P&gt;Input(s): Failed to read data from "hdfs://c7001.ambari.apache.org:8020/&lt;STRONG&gt;user/vagrant/&lt;/STRONG&gt;user/admin/Pig_Data/student_data.txt" Output(s): Failed to produce result in "file:///Pig_Output"&lt;/P&gt;&lt;P&gt;see above posting &lt;/P&gt;&lt;P&gt;I will post the entire output in a few minutes ... it is rather long.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199837#M161869</guid>
      <dc:creator>jcleve72</dc:creator>
      <dc:date>2017-06-07T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199838#M161870</link>
      <description>&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16091-pig-output.txt"&gt;pig-output.txt&lt;/A&gt;&lt;P&gt;The above is the entire session.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:20:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199838#M161870</guid>
      <dc:creator>jcleve72</dc:creator>
      <dc:date>2017-06-07T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199839#M161871</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12198/jcleve72.html" nodeid="12198"&gt;@John Cleveland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One thing i noticed in your command is the PATH of the student_data   ... it has  "user/admin" should not it be &lt;STRONG&gt;"/user/admin"&lt;/STRONG&gt;  (A slash is missing) ? &lt;/P&gt;&lt;PRE&gt;LOAD 'user/admin/Pig_Data/student_data.txt'&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Are you running the job using logged in user "&lt;STRONG&gt;vagrant&lt;/STRONG&gt;"  in that case it will try finding the file from the home directory of that user.    Because we are specifying the path as "user/admin......"&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:25:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199839#M161871</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-07T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199840#M161872</link>
      <description>&lt;P&gt;Thanks, I added that&lt;STRONG&gt; /&lt;/STRONG&gt; and it did get rid of the &lt;STRONG&gt;user/vagrant&lt;/STRONG&gt; but  still no mapreduce. &lt;/P&gt;&lt;P&gt;I am going to start a new topic, because this one is essentially answered, but my real underlying problem has not been resolved. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:08:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199840#M161872</guid>
      <dc:creator>jcleve72</dc:creator>
      <dc:date>2017-06-07T15:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't store in pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199841#M161873</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12198/jcleve72.html" nodeid="12198"&gt;@John Cleveland
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good to know that after fixing the path one issue is resolved. It will be really great if you mark this thread as answered by clicking the "Accept" link, this will help other community users to quickly go through the correct answers.
&lt;A rel="user" href="https://community.cloudera.com/users/12198/jcleve72.html" nodeid="12198"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:11:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-store-in-pig/m-p/199841#M161873</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-07T15:11:30Z</dc:date>
    </item>
  </channel>
</rss>

