<?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 Pig ERROR 1066: Unable to open iterator for alias load_data. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110956#M54734</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I´m trying to run a simple script through VM, but I´m getting the following error. Does anyone know how to fix it?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pig commands:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grunt&amp;gt; load_data = load 'user/root/pig_demo.txt'; 
grunt&amp;gt; dump load_data
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Pig Log errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Pig Stack Trace
---------------
ERROR 1066: Unable to open iterator for alias load_data. Backend error : java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING


org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias load_data. Backend error : java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.pig.PigServer.openIterator(PigServer.java:1009)
        at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:747)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:376)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:231)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:206)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:66)
        at org.apache.pig.Main.run(Main.java:566)
        at org.apache.pig.Main.main(Main.java:178)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 0: java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.getStats(MapReduceLauncher.java:822)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:452)
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:308)
        at org.apache.pig.PigServer.launchPlan(PigServer.java:1474)
        at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1459)
        at org.apache.pig.PigServer.storeEx(PigServer.java:1118)
        at org.apache.pig.PigServer.store(PigServer.java:1081)
        at org.apache.pig.PigServer.openIterator(PigServer.java:994)
        ... 13 more
Caused by: java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.hadoop.mapreduce.Job.ensureState(Job.java:292)
        at org.apache.hadoop.mapreduce.Job.getTaskReports(Job.java:534)
        at org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.getTaskReports(HadoopShims.java:235)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.getStats(MapReduceLauncher.java:801)
        ... 20 more
&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Feb 2017 08:28:32 GMT</pubDate>
    <dc:creator>ejunior76</dc:creator>
    <dc:date>2017-02-17T08:28:32Z</dc:date>
    <item>
      <title>Pig ERROR 1066: Unable to open iterator for alias load_data.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110956#M54734</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I´m trying to run a simple script through VM, but I´m getting the following error. Does anyone know how to fix it?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pig commands:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;grunt&amp;gt; load_data = load 'user/root/pig_demo.txt'; 
grunt&amp;gt; dump load_data
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Pig Log errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Pig Stack Trace
---------------
ERROR 1066: Unable to open iterator for alias load_data. Backend error : java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING


org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias load_data. Backend error : java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.pig.PigServer.openIterator(PigServer.java:1009)
        at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:747)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:376)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:231)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:206)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:66)
        at org.apache.pig.Main.run(Main.java:566)
        at org.apache.pig.Main.main(Main.java:178)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 0: java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.getStats(MapReduceLauncher.java:822)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:452)
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:308)
        at org.apache.pig.PigServer.launchPlan(PigServer.java:1474)
        at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1459)
        at org.apache.pig.PigServer.storeEx(PigServer.java:1118)
        at org.apache.pig.PigServer.store(PigServer.java:1081)
        at org.apache.pig.PigServer.openIterator(PigServer.java:994)
        ... 13 more
Caused by: java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING
        at org.apache.hadoop.mapreduce.Job.ensureState(Job.java:292)
        at org.apache.hadoop.mapreduce.Job.getTaskReports(Job.java:534)
        at org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.getTaskReports(HadoopShims.java:235)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.getStats(MapReduceLauncher.java:801)
        ... 20 more
&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 08:28:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110956#M54734</guid>
      <dc:creator>ejunior76</dc:creator>
      <dc:date>2017-02-17T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pig ERROR 1066: Unable to open iterator for alias load_data.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110957#M54735</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15420/ejunior76.html" nodeid="15420"&gt;@Junior&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Path seems to be incorrect isn't it?&lt;/P&gt;&lt;PRE&gt;'user/root/pig_demo.txt'
OR
'/user/root/pig_demo.txt'&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 08:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110957#M54735</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T08:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pig ERROR 1066: Unable to open iterator for alias load_data.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110958#M54736</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; thank you very much!&lt;/P&gt;&lt;P&gt;The problem is the path.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 08:45:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-ERROR-1066-Unable-to-open-iterator-for-alias-load-data/m-p/110958#M54736</guid>
      <dc:creator>ejunior76</dc:creator>
      <dc:date>2017-02-17T08:45:34Z</dc:date>
    </item>
  </channel>
</rss>

