AnsweredAssumed Answered

Pig Script throwing error in yarn mode.

Question asked by sumit_gupta on Aug 20, 2015
Latest reply on Aug 17, 2016 by rahmat
Hi All,

I am trying to run basic pig script in mapr 5.0 yarn node....resource manager and node manager running file but pig throwing error.

Pig Source file:
CCL = LOAD '/user/mapr/in/pigtt.csv' USING PigStorage('|') AS ( recorddate : chararray, mdn : chararray, contactmdn : chararray, contactcorpid : int );

15/08/20 21:44:36 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
15/08/20 21:44:36 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
15/08/20 21:44:36 INFO pig.ExecTypeProvider: Trying ExecType : TEZ_LOCAL
15/08/20 21:44:36 INFO pig.ExecTypeProvider: Trying ExecType : TEZ
15/08/20 21:44:36 ERROR pig.Main: ERROR 2040: Unknown exec type: /root/test_corp_contact.pig
15/08/20 21:44:36 WARN pig.Main: There is no log file to write to.
15/08/20 21:44:36 ERROR pig.Main: org.apache.pig.PigException: ERROR 2040: Unknown exec type: /root/test_corp_contact.pig
        at org.apache.pig.ExecTypeProvider.selectExecType(ExecTypeProvider.java:49)
        at org.apache.pig.impl.PigContext.<init>(PigContext.java:257)
        at org.apache.pig.Main.run(Main.java:384)
        at org.apache.pig.Main.main(Main.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

15/08/20 21:44:36 INFO pig.Main: Pig script completed in 95 milliseconds (95 ms)

Thanks,
Sumit

Outcomes