title: PIG: ERROR 1000: Error during parsing
body: <p>I have installed Pig 0.12 in my machine. when I run </p>
  
  <pre><code>darwin$ pig
  grunt&gt; ls /data/
  hdfs://Nmame:10001/data/pg20417.txt&lt;r 3&gt;    674570
  hdfs://Nname:10001/data/pg4300.txt&lt;r 3&gt; 1573150
  hdfs:/Nname:10001/data/pg5000.txt&lt;r 3&gt;  1423803
  hdfs://Nname:10001/data/weather &lt;dir&gt;
  </code></pre>
  
  <p>but when I try to create a query, I get the following error:</p>
  
  <pre><code>grunt&gt; book = load '/data/pg4300.txt' as (lines:chararray);
  2014-06-30 17:40:08,939 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " &lt;PATH&gt; "book=load "" at line 2, column 1.
  Was expecting one of:
      &lt;EOF&gt; 
      "cat" ...
      "clear" ...
      "fs" ...
      "sh" ...
      "cd" ...
      "cp" ...
      "copyFromLocal" ...
      "copyToLocal" ...
      "dump" ...
      "\\d" ...
      "describe" ...
      "\\de" ...
      "aliases" ...
      "explain" ...
      "\\e" ...
      "help" ...
      "history" ...
      "kill" ...
      "ls" ...
      "mv" ...
      "mkdir" ...
      "pwd" ...
      "quit" ...
      "\\q" ...
      "register" ...
      "rm" ...
      "rmf" ...
      "set" ...
      "illustrate" ...
      "\\i" ...
      "run" ...
      "exec" ...
      "scriptDone" ...
      "" ...
      "" ...
      &lt;EOL&gt; ...
      ";" ...
  
  Details at logfile: /Users/Documents/pig_1404175088198.log
  </code></pre>
  
  <p>I tried changing<code>load</code> to <code>LOAD</code> and <code>as</code> to <code>AS</code> but nothing worked.</p>