<?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: Error with using 'Store' (Pig) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102444#M14921</link>
    <description>&lt;P&gt;Found it&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/how-to-use-hcatalog-basic-pig-hive-commands/#explore-pig-latin-data-transformation" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/how-to-use-hcatalog-basic-pig-hive-commands/#explore-pig-latin-data-transformation&lt;/A&gt;&lt;/P&gt;&lt;H4&gt;5.4 Save the script and execute it&lt;/H4&gt;&lt;P&gt;First you need to add the &lt;CODE&gt;-useHCatalog&lt;/CODE&gt; (Case Sensitive) argument using the box box in the bottom right hand corner&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/225e98d46cf895b46e2716b53ce98dd1637d11c1/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f686f72746f6e776f726b732f7475746f7269616c732f6864702f6173736574732f686361742d7069672d616e642d686976652d636f6d6d616e64732f32315f7573655f686361745f6172672e706e67" alt="" style="margin: 10px 0px; padding: 0px; list-style: none; box-sizing: border-box;" /&gt;&lt;/P&gt;&lt;P&gt;At the top of the screen, make sure the box “Execute on Tez” is checked. Then click &lt;STRONG&gt;Execute&lt;/STRONG&gt; to run the script. This action creates one or more Tez jobs.&lt;/P&gt;&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2030/revlin.html"&gt;Revlin Abbi&lt;/A&gt;  Make sure you add the useHCatalog argument&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 06:31:06 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2016-06-08T06:31:06Z</dc:date>
    <item>
      <title>Error with using 'Store' (Pig)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102441#M14918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hoping someone can advise. I am running a few lines of Pig code where I get an error.&lt;/P&gt;&lt;P&gt;When I run the four lines of code below in Pig it works fine:&lt;/P&gt;&lt;P&gt;allairports = LOAD 'default.airport' USING org.apache.hive.hcatalog.pig.HCatLoader(); &lt;/P&gt;&lt;P&gt;gbairports = filter allairports by iso_country == 'GB'; &lt;/P&gt;&lt;P&gt;gbcols = foreach gbairports generate $13, $3, $6; &lt;/P&gt;&lt;P&gt;dump gbcols;
&lt;/P&gt;&lt;P&gt;However, when I replace the last line (as below) with a store statement, I get an error.&lt;/P&gt;&lt;P&gt;allairports = LOAD 'default.airport' USING org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;gbairports = filter allairports by iso_country == 'GB';&lt;/P&gt;&lt;P&gt;gbcols = foreach gbairports generate $13, $3, $6;&lt;/P&gt;&lt;P&gt;store gbcols into '/user/hue/tutorials' using pigstorage(',');&lt;/P&gt;&lt;P&gt;The error is below. Does anyone know why I am getting this?&lt;/P&gt;&lt;PRE&gt;WARNING: Use "yarn jar" to launch YARN applications.
16/01/13 20:33:06 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
16/01/13 20:33:06 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
16/01/13 20:33:06 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
2016-01-13 20:33:06,502 [main] INFO  org.apache.pig.Main - Apache Pig version 0.15.0.2.3.2.0-2950 (rexported) compiled Sep 30 2015, 19:39:20
2016-01-13 20:33:06,502 [main] INFO  org.apache.pig.Main - Logging error messages to: /hadoop/yarn/local/usercache/hue/appcache/application_1452469761257_0020/container_e03_1452469761257_0020_01_000002/pig_1452717186500.log
2016-01-13 20:33:07,183 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/yarn/.pigbootup not found
2016-01-13 20:33:07,294 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://sandbox.hortonworks.com:8020
2016-01-13 20:33:08,734 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.local does not exist
2016-01-13 20:33:08,770 [main] INFO  hive.metastore - Trying to connect to metastore with URI thrift://sandbox.hortonworks.com:9083
2016-01-13 20:33:08,823 [main] INFO  hive.metastore - Connected to metastore.
2016-01-13 20:33:09,127 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve pigstorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Failed to parse: Pig script failed to parse: 
&amp;lt;file script.pig, line 9, column 46&amp;gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve pigstorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
	at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:199)
	at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1735)
	at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1443)
	at org.apache.pig.PigServer.parseAndBuild(PigServer.java:387)
	at org.apache.pig.PigServer.executeBatch(PigServer.java:412)
	at org.apache.pig.PigServer.executeBatch(PigServer.java:398)
	at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:171)
	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:234)
	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
	at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
	at org.apache.pig.Main.run(Main.java:502)
	at org.apache.pig.Main.main(Main.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: 
&amp;lt;file script.pig, line 9, column 46&amp;gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve pigstorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
	at org.apache.pig.parser.LogicalPlanBuilder.validateFuncSpec(LogicalPlanBuilder.java:1339)
	at org.apache.pig.parser.LogicalPlanBuilder.buildFuncSpec(LogicalPlanBuilder.java:1324)
	at org.apache.pig.parser.LogicalPlanGenerator.func_clause(LogicalPlanGenerator.java:5184)
	at org.apache.pig.parser.LogicalPlanGenerator.store_clause(LogicalPlanGenerator.java:7782)
	at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1669)
	at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)
	at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)
	at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)
	at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:191)
	... 17 more
Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve pigstorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
	at org.apache.pig.impl.PigContext.resolveClassName(PigContext.java:677)
	at org.apache.pig.parser.LogicalPlanBuilder.validateFuncSpec(LogicalPlanBuilder.java:1336)
	... 25 more
2016-01-13 20:33:09,131 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve pigstorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /hadoop/yarn/local/usercache/hue/appcache/application_1452469761257_0020/container_e03_1452469761257_0020_01_000002/pig_1452717186500.log &lt;/PRE&gt;&lt;P&gt;2016-01-13 20:33:09,153 [main] INFO  org.apache.pig.Main - Pig script completed in 2 seconds and 779 milliseconds (2779 ms)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 04:49:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102441#M14918</guid>
      <dc:creator>Rebel</dc:creator>
      <dc:date>2016-01-14T04:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error with using 'Store' (Pig)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102442#M14919</link>
      <description>&lt;P&gt;I believe it is a matter of case-sensitivity.  Please try PigStorage instead of pigstorage.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 04:56:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102442#M14919</guid>
      <dc:creator>daniel_hendrix</dc:creator>
      <dc:date>2016-01-14T04:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error with using 'Store' (Pig)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102443#M14920</link>
      <description>&lt;P&gt;Thanks Daniel, that works!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 05:23:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102443#M14920</guid>
      <dc:creator>Rebel</dc:creator>
      <dc:date>2016-01-14T05:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error with using 'Store' (Pig)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102444#M14921</link>
      <description>&lt;P&gt;Found it&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/how-to-use-hcatalog-basic-pig-hive-commands/#explore-pig-latin-data-transformation" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/how-to-use-hcatalog-basic-pig-hive-commands/#explore-pig-latin-data-transformation&lt;/A&gt;&lt;/P&gt;&lt;H4&gt;5.4 Save the script and execute it&lt;/H4&gt;&lt;P&gt;First you need to add the &lt;CODE&gt;-useHCatalog&lt;/CODE&gt; (Case Sensitive) argument using the box box in the bottom right hand corner&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/225e98d46cf895b46e2716b53ce98dd1637d11c1/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f686f72746f6e776f726b732f7475746f7269616c732f6864702f6173736574732f686361742d7069672d616e642d686976652d636f6d6d616e64732f32315f7573655f686361745f6172672e706e67" alt="" style="margin: 10px 0px; padding: 0px; list-style: none; box-sizing: border-box;" /&gt;&lt;/P&gt;&lt;P&gt;At the top of the screen, make sure the box “Execute on Tez” is checked. Then click &lt;STRONG&gt;Execute&lt;/STRONG&gt; to run the script. This action creates one or more Tez jobs.&lt;/P&gt;&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2030/revlin.html"&gt;Revlin Abbi&lt;/A&gt;  Make sure you add the useHCatalog argument&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 06:31:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-using-Store-Pig/m-p/102444#M14921</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-08T06:31:06Z</dc:date>
    </item>
  </channel>
</rss>

