Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 02-19-2016 05:59 AM
2016-02-19 02:29:21,118 [main] INFO org.apache.pig.Main - Logging error messages to: /hadoop/yarn/local/usercache/admin/appcache/application_1455824286177_0003/container_e03_1455824286177_0003_01_000002/pig_1455848961114.log 2016-02-19 02:29:22,717 [main] ERROR org.apache.pig.Main - ERROR 2997: Encountered IOException. File –useHCatalog does not exist
Created 02-25-2016 01:53 AM
Created 02-24-2016 11:10 PM
I tried running the command:
pig -x tez -useHCatalog Pigscript but there result is the same. It's saying :
2016-02-24 23:04:54,675 [main] ERROR org.apache.pig.Main - ERROR 2997: Encountered IOException. File –useHCatalog does not exist Details at logfile: /hadoop/yarn/local/usercache/ppunj/appcache/application_1456334730705_0001/container_e05_1456334730705_0001_01_000002/pig_1456355093669.log 2016-02-24 23:04:54,722 [main] INFO org.apache.pig.Main - Pig script completed in 1 second and 467 milliseconds (1467 ms)
Created 02-25-2016 02:11 AM
@Prakash Punj try the following
pig -x tez filename -useHCatalog
Created 02-25-2016 01:53 AM
Created on 02-25-2016 01:56 AM - edited 08-18-2019 06:07 AM
See this ..it worked in my env
Created 02-25-2016 02:15 AM
pig -useHCatalog -x tez -f p.pig --> this works
Created 02-25-2016 02:40 AM
@Prakash Punj make sure you have the adapter in the node
[root@phdns01 ~]# find / -name hive-hcatalog-pig-adapter*.jar
/usr/hdp/2.3.4.0-3485/hive-hcatalog/share/hcatalog/hive-hcatalog-pig-adapter.jar
/usr/hdp/2.3.4.0-3485/hive-hcatalog/share/hcatalog/hive-hcatalog-pig-adapter-1.2.1.2.3.4.0-3485.jar
/usr/hdp/2.3.4.0-3485/oozie/share/lib/pig/hive-hcatalog-pig-adapter-1.2.1.2.3.4.0-3485.jar
[root@phdns01 ~]#
Created 02-25-2016 02:21 AM
Same error after using the command below.
pig -x tez Pigscript.pig -useHCatalog; 2016-02-25 02:17:33,158 [main] INFO org.apache.pig.Main - Logging error messages to: /hadoop/yarn/local/usercache/ppunj/appcache/application_1456334730705_0004/container_e05_1456334730705_0004_01_000002/pig_1456366653155.log 2016-02-25 02:17:34,257 [main] ERROR org.apache.pig.Main - ERROR 2997: Encountered IOException. File –useHCatalog does not exist Details at logfile: /hadoop/yarn/local/usercache/ppunj/appcache/application_1456334730705_0004/container_e05_1456334730705_0004_01_000002/pig_1456366653155.log
Created 02-25-2016 02:22 AM
@Prakash Punj Read my reply ..
Created 02-25-2016 02:47 AM
@Neeraj Sabharwal
looks like adapter is there.
[root@hdp-m ~]# find / -name hive-hcatalog-pig-adapter*.jar /usr/hdp/2.3.4.0-3485/hive-hcatalog/share/hcatalog/hive-hcatalog-pig-adapter-1.2.1.2.3.4.0-3485.jar /usr/hdp/2.3.4.0-3485/hive-hcatalog/share/hcatalog/hive-hcatalog-pig-adapter.jar /usr/hdp/2.3.4.0-3485/oozie/share/lib/pig/hive-hcatalog-pig-adapter-1.2.1.2.3.4.0-3485.jar [root@hdp-m ~]#
Created 02-25-2016 02:57 AM
@Prakash Punj See my latest reply...You are giving HDFS location for your pig script...it needs to be local file system