<?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: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130263#M92949</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12747/swathidataengineer.html" nodeid="12747"&gt;@swathi thukkaraju&lt;/A&gt;, I see that you are using this solution in another question, so I guess it worked. If so, can you please accept &amp;amp; up-vote my answer to help us manage resolved questions. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 16:06:02 GMT</pubDate>
    <dc:creator>pminovic</dc:creator>
    <dc:date>2016-09-02T16:06:02Z</dc:date>
    <item>
      <title>I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130257#M92943</link>
      <description>&lt;PRE&gt;grunt&amp;gt; aa = foreach avg_rate generate $0, ( case when detik_rating &amp;gt; 0 then 'positive'   when detik_rating &amp;lt; 0 then 'negative'  when detik_rating == 0 then 'neutral' else 'null' end );
2016-09-01 05:11:38,883 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 21 time(s).
grunt&amp;gt; STORE bb INTO 'default.finaluniqlo' using org.apache.hive.hcatalog.pig.HCatStorer();
2016-09-01 05:11:59,047 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 21 time(s).
2016-09-01 05:11:59,339 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 3 time(s).
2016-09-01 05:11:59,390 [main] INFO  hive.metastore - Trying to connect to metastore with URI thrift://sandbox.hortonworks.com:9083
2016-09-01 05:11:59,393 [main] INFO  hive.metastore - Connected to metastore.
2016-09-01 05:11:59,608 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1115: Column name for a field is not specified. Please provide the full schema as an argument to HCatStorer.
Details at logfile: /root/pig_1472704532436.log&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:10:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130257#M92943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-01T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130258#M92944</link>
      <description>&lt;P&gt;2016-09-01 05:11:59,608 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1115: Column name for a field is not specified. Please provide the full schema as an argument to HCatStorer. Details at logfile: /root/pig_1472704532436.log&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;grunt&amp;gt; STORE aa INTO 'default.finaluniqlo' using org.apache.hive.hcatalog.pig.HCatStorer(); 2016-09-01 05:15:41,910 [main] WARN org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 21 time(s). 2016-09-01 05:15:42,063 [main] WARN org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 3 time(s). 2016-09-01 05:15:42,177 [main] INFO hive.metastore - Trying to connect to metastore with URI thrift://sandbox.hortonworks.com:9083 2016-09-01 05:15:42,181 [main] INFO hive.metastore - Connected to metastore. 2016-09-01 05:15:42,428 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1115: Column name for a field is not specified. Please provide the full schema as an argument to HCatStorer. Details at logfile: /root/pig_1472704532436.log &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;grunt&amp;gt; describe aa; 2016-09-01 05:16:07,581 [main] WARN org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 3 time(s).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; aa: {group: (a: chararray,b: chararray,c: chararray,d: chararray,e: chararray,f: chararray,g: chararray,score: int),chararray}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;how to define schemma and how to load into hcatstore&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:20:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130258#M92944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-01T12:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130259#M92945</link>
      <description>&lt;P&gt;Give names to the fields of aa, like for example, ("as var1", "as var2" added):&lt;/P&gt;&lt;PRE&gt;aa = foreach avg_rate generate $0 as var1, (case when detik_rating &amp;gt; 0 then 'positive' when detik_rating &amp;lt; 0 then 'negative' when detik_rating == 0 then 'neutral' else 'null' end) as var2;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2016 14:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130259#M92945</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-09-01T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130260#M92946</link>
      <description>&lt;P&gt;thanks u so much&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 20:30:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130260#M92946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-01T20:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130261#M92947</link>
      <description>&lt;P&gt;grunt&amp;gt; aa = foreach avg_rate generate as var1,( case when starbux_rating &amp;gt; 0 then 'positive'   when starbux_rating &amp;lt; 0 then 'negative' when starbux_rating == 0 then 'neutral' else 'null' end ) as var2; &lt;/P&gt;&lt;P&gt;2016-09-01 13:51:33,113 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: &amp;lt;line 55, column 34&amp;gt;  mismatched input 'var1' expecting LEFT_PAREN
Details at logfile: /root/pig_1472733213934.log &lt;/P&gt;&lt;P&gt;grunt&amp;gt; aa = foreach avg_rate generate $0,( case when starbux_rating &amp;gt; 0 then 'positive'   when starbux_rating &amp;lt; 0 then 'negative' when starbux_rating == 0 then 'neutral' else 'null' end ) as var1;
2016-09-01 13:52:09,677 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 27 time(s). &lt;/P&gt;&lt;P&gt;grunt&amp;gt; describe aa;
2016-09-01 13:52:22,751 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_LONG 3 time(s).
aa: {group: (a: chararray,b: chararray,c: chararray,d: chararray,e: chararray,f: chararray,g: chararray,h: chararray,i: chararray,j: chararray,k: chararray,l: chararray,m: chararray,n: chararray,o: chararray,p: chararray),var1: chararray} &lt;/P&gt;&lt;P&gt;grunt&amp;gt; c = foreach aa generate FLATTEN(aa);&lt;/P&gt;&lt;P&gt;
2016-09-01 13:53:54,997 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse:
&amp;lt;line 56, column 32&amp;gt; Invalid scalar projection: aa : A column needs to be projected from a relation for it to be used as a scalar
Details at logfile: /root/pig_1472733213934.log &lt;/P&gt;&lt;P&gt;grunt&amp;gt; c = foreach aa generate FLATTEN(var1);&lt;/P&gt;&lt;P&gt;2016-09-01 13:53:54,997 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse: &amp;lt;line 56, column 32&amp;gt; Invalid scalar projection: aa : A column needs to be projected from a relation for it to be used as a scalar Details at logfile: /root/pig_1472733213934.log&lt;/P&gt;&lt;P&gt;while am flatten group comma also eliminated in front of var2&lt;/P&gt;&lt;P&gt;how to eliminate?????&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 20:58:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130261#M92947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-01T20:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130262#M92948</link>
      <description>&lt;P&gt;You omitted $0: aa =foreach avg_rate generate $0 as var1,... and then try to store using HCatalog per your original question.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 22:09:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130262#M92948</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-09-01T22:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130263#M92949</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12747/swathidataengineer.html" nodeid="12747"&gt;@swathi thukkaraju&lt;/A&gt;, I see that you are using this solution in another question, so I guess it worked. If so, can you please accept &amp;amp; up-vote my answer to help us manage resolved questions. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:06:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130263#M92949</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-09-02T16:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting this error to load the pig ouput into hive table how i can solve??? plz help me</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130264#M92950</link>
      <description>&lt;P&gt;it is getting type cast error scalar&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 19:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-am-getting-this-error-to-load-the-pig-ouput-into-hive/m-p/130264#M92950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-02T19:16:15Z</dc:date>
    </item>
  </channel>
</rss>

