AnsweredAssumed Answered

pig and java.lang.IllegalArgumentException

Question asked by christoph.zimmermann on Feb 17, 2015
Latest reply on Aug 26, 2015 by pukkimonkey
Trying to run a pig script locally (-x local) after setting up pig as described in the ecosystem documentation but I get the following java trace:

java.lang.Exception: java.lang.IllegalArgumentException: The value of property mapr.host must not be null
        at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:463)
        at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:523)
Caused by: java.lang.IllegalArgumentException: The value of property mapr.host must not be null
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:984)
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:966)
        at org.apache.hadoop.mapred.MapRFsOutputFile.getMapRFsPath(MapRFsOutputFile.java:342)
        at org.apache.hadoop.mapred.MapRFsOutputFile.getMapRLocalOutputDir(MapRFsOutputFile.java:347)
        at org.apache.hadoop.mapred.MapRFsOutputFile.setLocalDirs(MapRFsOutputFile.java:114)
        at org.apache.hadoop.mapred.MapRFsOutputFile.setConf(MapRFsOutputFile.java:102)
        at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
        at org.apache.hadoop.mapred.Task.setConf(Task.java:1272)
        at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:240)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Is this a configuration error? Please let me know if you need more details.

Outcomes