title: How to store pig output to the hive table?
body: <p>I have HDInsight cluster on Azure and <code>.csv</code> files in hdfs (Azure storage). </p>
  
  <p>Using apache-pig I want to process these files and store the output in a hive table. To achieve this I have written following script:</p>
  
  <pre><code>A = LOAD '/test/input/t12007.csv' USING PigStorage(',') AS (year:chararray,ArrTime:chararray,DeptTime:chararray);
  describe A;
  dump A;
  store A into 'testdb.tbl3' using org.apache.hive.hcatalog.pig.HCatStorer();
  </code></pre>
  
  <p>This script loads the file successfully, describe the structure and it also displays the data using dump but while store command executes it throws the following error:</p>
  
  <pre><code>2017-05-02 06:18:41,476 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve org.apache.hive.hcatalog.pig.HCatStorer using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
  Failed to parse: Pig script failed to parse: &lt;file script.pig, line 4, column 33&gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve org.apache.hive.hcatalog.pig.HCatStorer using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] 
  Caused by: &lt;file script.pig, line 4, column 33&gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve org.apache.hive.hcatalog.pig.HCatStorer using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] 
  Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve org.apache.hive.hcatalog.pig.HCatStorer using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] 
  2017-05-02 06:18:41,484 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve org.apache.hive.hcatalog.pig.HCatStorer using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] 
  </code></pre>