You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2008/01/25 18:17:34 UTC

[jira] Commented: (PIG-69) NullPointerException in setJobtrackerLocation() in PigContext.java:68

    [ https://issues.apache.org/jira/browse/PIG-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562584#action_12562584 ] 

Alan Gates commented on PIG-69:
-------------------------------

One question.  Why did you remove the line:

conf = new JobConf()

at PigContext line 179?  As conf is used in the code subsequent to this it isn't clear to me that it's ok.  Did you test your change in local mode (which is the only codepath that would exercise this change)?

> NullPointerException in setJobtrackerLocation() in PigContext.java:68
> ---------------------------------------------------------------------
>
>                 Key: PIG-69
>                 URL: https://issues.apache.org/jira/browse/PIG-69
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.1.0
>            Reporter: Benjamin Francisoud
>         Attachments: PigContext-PIG-69-v01.patch
>
>
> {noformat}
> java.lang.NullPointerException
>     at org.apache.pig.impl.PigContext.setJobtrackerLocation(PigContext.java:425)
>     ... (the rest of the stacktrace is my own servlet code)
> {noformat}
> The code:
> {code:java}
> final PigContext pigContext = new PigContext(ExecType.MAPREDUCE);
> pigContext.setJobtrackerLocation(configuration.get("mapred.job.tracker"));
> pigContext.setFilesystemLocation(configuration.get("fs.default.name"));
>         
> final PigServer pigServer = new PigServer(pigContext);
> {code}
> Where configuration is a org.apache.hadoop.conf.Configuration object initialized with spring framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.