[
https://issues.apache.org/jira/browse/MAPREDUCE-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron Kimball updated MAPREDUCE-1168:
-------------------------------------
Attachment: MAPREDUCE-1168.2.patch
Thanks for reviewing, Tom.
I agree on the renames of ImportOptions -> SqoopOptions and ExportError ->
ExportException. I had forgotten that exceptions with names ending in "Error"
have an implied semantic meaning. For consistency, I've also renamed
ImportError to ImportException.
You'll need to do the following in the subversion tree after applying this
patch:
{code}
svn mv --force
src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/ImportOptions.java
src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/SqoopOptions.java
svn mv --force
src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/util/ImportError.java
src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/util/ImportException.java
svn mv --force
src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestImportOptions.java
src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestSqoopOptions.java
{code}
AutoInputFormat is currently based on the old API; until this is ported, it's
incompatible with the new API (which Sqoop tries to use as much as possible).
Definitely worth keeping in mind for the future though, once streaming is moved
to the new API. I've copied the magic-number test from AutoInputFormat into
{{isSequenceFiles()}}. Note that this means that any text file beginning with
the characters "SEQ" is going to be misinterpreted as a SequenceFile now. This
case is hopefully rare.. we can address it when it comes up in practice?
This patch is also resync'd to trunk.
> Export data to databases via Sqoop
> ----------------------------------
>
> Key: MAPREDUCE-1168
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1168
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Components: contrib/sqoop
> Reporter: Aaron Kimball
> Assignee: Aaron Kimball
> Attachments: MAPREDUCE-1168.2.patch, MAPREDUCE-1168.patch
>
>
> Sqoop can import from a database into HDFS. It's high time it works in
> reverse too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.