[ 
https://issues.apache.org/jira/browse/SQOOP-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166568#comment-13166568
 ] 

Eric Wadsworth commented on SQOOP-384:
--------------------------------------

So, before I go too much farther, I just submitted the patch above. Took a 
couple of tries before I got to this solution.

Basically, I just made a wrapper around the Configuration class that comes from 
the (older) hadoop code. The wrapper has one extra method on it, that missing 
getInstances(). See the JavaDoc in ConfigurationHolder for details, but 
basically it tries to maintain backwards compatibility with the older APIs (in 
the com.cloudera packages), and be compatible with anything external, while 
still allowing use of that missing method.

The tests all pass, but I don't have a very good environment to actually run 
this code (hence my work to make sqoop compatible with my cluster!), so it 
could use some exercise.

Anyone want to take a look at this? Shoot arrows at it, maybe? :)

--- wad
                
> Sqoop is incompatible with Hadoop prior to 0.21
> -----------------------------------------------
>
>                 Key: SQOOP-384
>                 URL: https://issues.apache.org/jira/browse/SQOOP-384
>             Project: Sqoop
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3.0
>            Reporter: Roman Shaposhnik
>              Labels: hadoop, patch
>             Fix For: 1.4.1-incubating
>
>
> The following are the APIs Sqoop relies upon, which are not available in 
> Hadoop prior to 0.21:
>    org.apache.hadoop.conf.Configuration.getInstances
>    org.apache.hadoop.mapreduce.lib.db.DBWritable 
>    org.apache.hadoop.mapreduce.lib.input.CombineFileSplit 
>    org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat 
>    org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader 

--
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

        

Reply via email to