title: Error while trying to store pig output to the Hive Table
body: <p><strong>I created the Hive Table under database testdb:</strong></p>
  
  <p>create table tbl2 (year string, DeptTime string, ArrTime string) stored as ORC;</p>
  
  <p><strong>after that i created the following Pig Script:</strong></p>
  
  <p>A = LOAD '/test/input/' USING PigStorage(',') AS (year:chararray,ArrTime:chararray,DeptTime:chararray);</p>
  
  <p>describe A;</p>
  
  <p>dump A;</p>
  
  <p><strong>while executing the above script it works fine.</strong></p>
  
  <p><strong>But adding following line to store pig output to hive it will throw an error.</strong></p>
  
  <p>A = LOAD '/test/input/' USING PigStorage(',') AS (year:chararray,ArrTime:chararray,DeptTime:chararray);</p>
  
  <p>describe A;</p>
  
  <p>dump A;</p>
  
  <p>store A into 'testdb.tbl2' using org.apache.hive.hcatalog.pig.HCatStorer();</p>
  
  <p><strong>used PIG Argument -useHCatalog</strong></p>
  
  <p><strong>Error:</strong></p>
  
  <p>ls: cannot access '/mnt/resource/hadoop/yarn/local/usercache/admin/appcache/application_1493274253049_0026/container_1493274253049_0026_01_000002/hive.tar.gz/hive/lib/slf4j-api-*.jar': No such file or directory ls: cannot access '/mnt/resource/hadoop/yarn/local/usercache/admin/appcache/application_1493274253049_0026/container_1493274253049_0026_01_000002/hive.tar.gz/hive/hcatalog/lib/<em>hbase-storage-handler-</em>.jar':</p>