hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilad Wolff (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-3609) JobClient does not initialize conf member in all constructors
Date Fri, 30 Dec 2011 00:51:30 GMT
JobClient does not initialize conf member in all constructors

                 Key: MAPREDUCE-3609
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3609
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions:
            Reporter: Gilad Wolff
            Priority: Minor

The c'tor that takes a socket address does not initialize the configuration member:

public JobClient(InetSocketAddress jobTrackAddr, 
                   Configuration conf) throws IOException {
    this.ugi = UserGroupInformation.getCurrentUser();
    jobSubmitClient = createRPCProxy(jobTrackAddr, conf);

It should call setconf(conf). This leads to an NPE if a caller instantiates a job client using
the c'tor and tries to retrieve a job since the NetworkedJob c'tor tries to access the configuration.

The workaround is simple but "ugly" - the caller can call setconf explicitly.

I only checked on but the problem may also exist upstream.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message