<?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: apache pig error in loading in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291814#M215728</link>
    <description>&lt;P&gt;sir myfile.txt contains simply the following trial data-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 2 3&lt;/P&gt;&lt;P&gt;4 5 6&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 06:32:58 GMT</pubDate>
    <dc:creator>somi</dc:creator>
    <dc:date>2020-03-16T06:32:58Z</dc:date>
    <item>
      <title>apache pig error in loading</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291779#M215709</link>
      <description>&lt;P&gt;&lt;FONT&gt;I am facing the following error on the cmd:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;STRONG&gt;command&lt;/STRONG&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;grunt&amp;gt; A =&amp;nbsp; LOAD 'C:\data\myfile.txt';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;or&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;grunt&amp;gt; a = load 'c:\data\myfile.txt' using PigStorage(' ') as (f1:int,f2:int, f3:int); &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;STRONG&gt;error:&lt;/STRONG&gt;&lt;BR /&gt;&amp;lt;line 1, column 14&amp;gt;&amp;nbsp; Unexpected character 'D'&lt;BR /&gt;2020-03-15 20:56:50,153 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: &amp;lt;line 1, column 14&amp;gt;&amp;nbsp; Unexpected character 'D'&lt;BR /&gt;Details at logfile: C:\deploy\logs\pig_1584281243336.log&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;the error trace is as follows-&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT&gt;&lt;STRONG&gt;Pig Stack Trace&lt;/STRONG&gt;&lt;BR /&gt;---------------&lt;BR /&gt;ERROR 1200: &amp;lt;line 1, column 14&amp;gt;&amp;nbsp; Unexpected character 'D'&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;Failed to parse: &amp;lt;line 1, column 14&amp;gt;&amp;nbsp; Unexpected character 'D'&lt;BR /&gt;&amp;nbsp;at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:246)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:182)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1792)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1765)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.PigServer.registerQuery(PigServer.java:708)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:1110)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:512)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:66)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.Main.run(Main.java:564)&lt;BR /&gt;&amp;nbsp;at org.apache.pig.Main.main(Main.java:175)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 Mar 2020 19:37:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291779#M215709</guid>
      <dc:creator>somi</dc:creator>
      <dc:date>2020-03-15T19:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: apache pig error in loading</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291794#M215714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75546"&gt;@somi&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just looking at the error message alone, it seems to me like the problem is with your data file. Can you post the first few lines of the input data file &lt;CODE&gt;myfile.txt&lt;/CODE&gt; in this thread?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 20:19:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291794#M215714</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2020-03-15T20:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: apache pig error in loading</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291814#M215728</link>
      <description>&lt;P&gt;sir myfile.txt contains simply the following trial data-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 2 3&lt;/P&gt;&lt;P&gt;4 5 6&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 06:32:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/291814#M215728</guid>
      <dc:creator>somi</dc:creator>
      <dc:date>2020-03-16T06:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: apache pig error in loading</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/341314#M233488</link>
      <description>&lt;P&gt;You should represent your data in this case:&amp;nbsp;&lt;SPAN&gt;'C:\\data\&lt;/SPAN&gt;&lt;SPAN&gt;\myfile.txt'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I had the same problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 08:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-pig-error-in-loading/m-p/341314#M233488</guid>
      <dc:creator>theKira</dc:creator>
      <dc:date>2022-04-13T08:10:04Z</dc:date>
    </item>
  </channel>
</rss>

