You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jerome Charron (JIRA)" <ji...@apache.org> on 2006/02/09 14:29:57 UTC

[jira] Created: (HADOOP-29) JobConf newInstance() method imposes a default constructor

JobConf newInstance() method imposes a default constructor
----------------------------------------------------------

         Key: HADOOP-29
         URL: http://issues.apache.org/jira/browse/HADOOP-29
     Project: Hadoop
        Type: Improvement
  Components: mapred  
    Reporter: Jerome Charron
    Priority: Minor


The Nutch parse command fails, because the ParseSegment class has no default constructor.
However, ParseSegment extends Configured, so it can be directly instanciated with a Configuration parameter.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-29) JobConf newInstance() method imposes a default constructor

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-29?page=comments#action_12431982 ] 
            
Doug Cutting commented on HADOOP-29:
------------------------------------

Wouldn't it be simpler to just add a default constructor to Configured?

> JobConf newInstance() method imposes a default constructor
> ----------------------------------------------------------
>
>                 Key: HADOOP-29
>                 URL: http://issues.apache.org/jira/browse/HADOOP-29
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: mapred
>            Reporter: Jerome Charron
>            Priority: Minor
>         Attachments: HADOOP-29.patch
>
>
> The Nutch parse command fails, because the ParseSegment class has no default constructor.
> However, ParseSegment extends Configured, so it can be directly instanciated with a Configuration parameter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-29) JobConf newInstance() method imposes a default constructor

Posted by "Jerome Charron (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-29?page=all ]

Jerome Charron updated HADOOP-29:
---------------------------------

    Attachment: HADOOP-29.patch

The attached patch directly uses the constructor with Configuration parameter if the class to instanciate extends Configurable.
(Tested with Nutch).

> JobConf newInstance() method imposes a default constructor
> ----------------------------------------------------------
>
>          Key: HADOOP-29
>          URL: http://issues.apache.org/jira/browse/HADOOP-29
>      Project: Hadoop
>         Type: Improvement
>   Components: mapred
>     Reporter: Jerome Charron
>     Priority: Minor
>  Attachments: HADOOP-29.patch
>
> The Nutch parse command fails, because the ParseSegment class has no default constructor.
> However, ParseSegment extends Configured, so it can be directly instanciated with a Configuration parameter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira