You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Gilad Wolff (Created) (JIRA)" <ji...@apache.org> on 2011/12/30 01:51:30 UTC
[jira] [Created] (MAPREDUCE-3609) JobClient does not initialize
conf member in all constructors
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: 0.20.205.0
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 0.20.205.0 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