5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-16 17:00:53 +08:00
Commit Graph

715 Commits

Author SHA1 Message Date
Kate Ting
403f0aece2 SQOOP-1027: Incremental import is not properly escaping table name when loading maximal value
(Jarek Jarcec Cecho via Kate Ting)
2013-05-05 03:08:45 -04:00
Kate Ting
aa6813e36d SQOOP-1008: Test TestClassWriter.testNoClassGeneration is failing on JDK7
(Jarek Jarcec Cecho via Kate Ting)
2013-04-23 18:46:47 -04:00
Jarek Jarcec Cecho
7567315de6 SQOOP-988: Validation option should provide some output that validation is being done
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-04-16 09:56:29 -07:00
Jarek Jarcec Cecho
2d3341488f SQOOP-981: The --hadoop-home command line parameter is no longer accepted
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-04-15 10:10:01 -07:00
Jarek Jarcec Cecho
f5006b6005 SQOOP-955: Fix Sqoop unit test failures on Windows
(Ahmed El Baz via Jarek Jarcec Cecho)
2013-04-15 09:57:25 -07:00
Kate Ting
8b3742ad69 SQOOP-912: Add ability to specify --hive-database parameter
(Jarek Jarcec Cecho via Kate Ting)
2013-04-15 12:44:32 -04:00
Jarek Jarcec Cecho
c4b0eac2d0 SQOOP-949: Allow Sqoop to build on Windows OS
(Ahmed El Baz via Jarek Jarcec Cecho)
2013-04-13 11:26:28 -07:00
Kate Ting
00d09b7b25 SQOOP-979: MySQL direct connector is not working correct after moving password to credential cache
(Jarek Jarcec Cecho via Kate Ting)
2013-04-06 17:29:02 -04:00
Jarek Jarcec Cecho
ef093399bf SQOOP-916: Add an abort validation handler
(Venkatesh Seetharam via Jarek Jarcec Cecho)
2013-04-05 11:07:50 -07:00
Jarek Jarcec Cecho
75bc21b164 SQOOP-885: Allow excluding some tables from import-all-tables tools
(Abraham Elmahrek via Jarek Jarcec Cecho)
2013-03-27 17:59:57 -07:00
Jarek Jarcec Cecho
7c830c8186 SQOOP-968: Cannot build when in a directory with spaces
(Abraham Elmahrek via Jarek Jarcec Cecho)
2013-03-25 15:47:59 -07:00
Jarek Jarcec Cecho
7048ca3023 SQOOP-962: Document null string behavior
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-21 20:50:26 -07:00
Jarek Jarcec Cecho
a0a03d7f31 SQOOP-932: Netezza direct manager is ignoring --null-*-string arguments
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-21 20:23:31 -07:00
Kate
e93ec9f39f SQOOP-959: Use CredentialsUtil.fetchPasswordFromFile in BaseSqoopTool
(Jarek Jarcec Cecho via Kathleen Ting)
2013-03-21 04:27:44 -04:00
Jarek Jarcec Cecho
f2ba7eaae2 SQOOP-937: Dont generate ORM files for Direct mode connectors
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-20 14:30:04 -07:00
Jarek Jarcec Cecho
86812b853f SQOOP-914: Securing passwords in sqoop 1.x
(Venkatesh Seetharam via Jarek Jarcec Cecho)
2013-03-20 12:20:38 -07:00
Jarek Jarcec Cecho
b4b9920c4f SQOOP-929: Add more Netezza direct mode tests
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-14 22:01:09 -07:00
Abhijeet Gaikwad
05976e709d SQOOP-933: Properly log SQLExceptions using getNextException() method for chaining exceptions
(Jarek Jarcec Cecho via Abhijeet Gaikwad)
2013-03-11 10:30:41 +05:30
Jarek Jarcec Cecho
1d0ebc2730 SQOOP-936: Classwriter should check if columnNames generated are null before accessing them
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-09 09:26:06 -08:00
Jarek Jarcec Cecho
0d5f73ad8d SQOOP-846: Provide a connector for Netezza appliances
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-04 22:22:46 -08:00
Jarek Jarcec Cecho
34bdf07bc8 SQOOP-928: PostgresqlManager should rollback any pending changes instead of commit when closing connections
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-03-04 19:11:46 -08:00
Cheolsoo Park
f4d5ed5375 SQOOP-907: Print out queries executed by Sqoop on mapreduce job side
(Jarcec Cecho via Cheolsoo Park)
2013-03-01 16:20:10 -08:00
Cheolsoo Park
1d9339d2a4 SQOOP-859: PostgreSQL: Test cases have hard coded username and password
(Jarcec Cecho via Cheolsoo Park)
2013-03-01 16:19:16 -08:00
Jarek Jarcec Cecho
4aa174abee SQOOP-856: PGBulkLoadExportMapper has an infinite waitFor without any logging in the event of Interrupted exceptions
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-02-26 17:24:39 -08:00
Cheolsoo Park
8c3c78b11c SQOOP-901: Allow user to override hardcoded boolean strings in direct PostgreSQL connector
(Jarcec Cecho via Cheolsoo Park)
2013-02-23 19:31:59 -08:00
Jarek Jarcec Cecho
d4d262591c SQOOP-870: Allow Sqoop to import row key column into HBase
(David Robson via Jarek Jarcec Cecho)
2013-02-07 18:48:34 -08:00
Jarek Jarcec Cecho
20b16fd4bd SQOOP-862: Hbase import fails if there is a row where all columns are null
(David Robson via Jarek Jarcec Cecho)
2013-02-07 18:37:50 -08:00
Cheolsoo Park
a220ae4694 SQOOP-654: PostgreSQL direct connector is ignoring --null(-input)string and
--null(-input)-non-string arguments

(Jarek Jarcec Cecho via Cheolsoo Park)
2013-02-06 14:18:23 -08:00
Cheolsoo Park
666d5499a2 SQOOP-860: NullPointerException when running procedure export against old database
(Jarek Jarcec Cecho via Cheolsoo Park)
2013-02-06 14:13:31 -08:00
Jarek Jarcec Cecho
bae5604a3c SQOOP-853: sqoop list-tables isn't returning the tables that have custom schemas'
(Vasanth kumar RJ via Jarek Jarcec Cecho)
2013-02-02 15:09:02 -08:00
Jarek Jarcec Cecho
7c5b46fb28 SQOOP-830: HBase import formatting BigDecimal inconsistently
(David Robson via Jarek Jarcec Cecho)
2013-01-31 09:26:42 -08:00
Cheolsoo Park
0488503a3a SQOOP-855: pg_bulkload: NullPointerException will be thrown if user specified invalid path the binary
(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-30 17:10:28 -08:00
Cheolsoo Park
144d31e62a SQOOP-854: Return value of pg_bulkload utility is being ignored
(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-30 15:55:26 -08:00
Jarek Jarcec Cecho
9de589e83c SQOOP-840: Inconsistent java generics declaration for exportwriter classes
(Venkat Ranganathan via Jarek Jarcec Cecho)
2013-01-23 09:45:09 -08:00
Jarek Jarcec Cecho
20af67ef60 SQOOP-749: Exports Using Stored Procedures (Functions)
(Nick White via Jarek Jarcec Cecho)
2013-01-22 12:24:40 -08:00
Abhijeet Gaikwad
9a3fd1484f SQOOP-824: Sqoop code generation in 'update' export mode incompatible with '--columns' option
(Jarek Jarcec Cecho via Abhijeet Gaikwad)
2013-01-20 20:56:44 +05:30
Jarek Jarcec Cecho
2b0456d6ce SQOOP-829: Error Messages For --map-column-java Should Be More Useful
(Nick White via Jarek Jarcec Cecho)
2013-01-15 04:15:30 -08:00
Jarek Jarcec Cecho
79f941b7e1 SQOOP-796: Unable to use new Hadoop environment variables
(Sean Mackrory via Jarek Jarcec Cecho)
2013-01-10 09:01:06 -08:00
Cheolsoo Park
fd0143b5ae SQOOP-825: Warning for incorrect usage of hive parameters is not
checking HIVE_HOME correctly

(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-10 08:06:44 -08:00
Cheolsoo Park
fea72de6e6 SQOOP-821: Hadoop has changed logic for job id in LocalJobRunner that
breaks Lob* tests

(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-09 11:36:51 -08:00
Cheolsoo Park
82c117c4f1 SQOOP-818: Missing method setConnManager(Lcom/cloudera/sqoop/manager/ConnManager;)V in
ExportJobContContext breaks MS SQL Connector

(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-08 10:15:35 -08:00
Cheolsoo Park
b02ddc3975 SQOOP-820: Escape table name in export job only if it's required by connector
(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-08 10:06:56 -08:00
Jarek Jarcec Cecho
7573450e18 SQOOP-808: SQLExceptions From Batched Exports Aren't Very Helpful
(Nick White via Jarek Jarcec Cecho)
2013-01-06 02:30:15 -08:00
Cheolsoo Park
8029ed0cfc SQOOP-804: Warn if hive special arguments will be used without --hive-import
(Jarek Jarcec Cecho via Cheolsoo Park)
2013-01-04 02:27:27 -08:00
Jarek Jarcec Cecho
0e8a7dc73e SQOOP-652: Improve error message generated in DataDrivenDBInputFormat when no splitter is available
(Linden Hillenbrand via Jarek Jarcec Cecho)
2012-12-18 20:31:42 -08:00
Cheolsoo Park
52a631f361 SQOOP-731 Move HBase tests to manual tests as they depend on unreleased
artifacts

(Jarek Jarcec Cecho via Cheolsoo Park)
2012-12-08 19:59:57 -08:00
Cheolsoo Park
0c3cd62fca SQOOP-730 User Guide Update: Section 3 - Sqoop Releases
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-12-08 19:48:12 -08:00
Jarek Jarcec Cecho
05774d49be SQOOP-741: The OracleConnect getTables() implementation needs to restrict tables to current user
(Venkat Ranganathan via Jarek Jarcec Cecho)
2012-12-06 08:51:41 -08:00
Jarek Jarcec Cecho
0b465594d2 SQOOP-638: Add an optional, simple and extensible validation framework for sqoop
(Venkatesh Seetharam via Jarek Jarcec Cecho)
2012-12-01 13:00:47 -08:00
Cheolsoo Park
0f0066f525 SQOOP-726: Put debugging information into generated SqoopRecord class
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-30 16:24:44 -08:00
Cheolsoo Park
528f7a8bb5 SQOOP-720: Improve error handling when exporting malformed text data
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-30 16:13:44 -08:00
Cheolsoo Park
a840f41fc7 SQOOP-721 Duplicating rows on export when exporting from compressed files.
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-29 20:40:25 -08:00
Jarek Jarcec Cecho
33a7a81412 SQOOP-725: Enable HBase tests in sqoop 1
(Hari Shreedharan via Jarek Jarcec Cecho)
2012-11-29 08:29:44 -08:00
Cheolsoo Park
dc4a82102c SQOOP-724 Support Table hints in Microsoft SQL Server
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-28 14:15:08 -08:00
Cheolsoo Park
b666fe1bb6 SQOOP-706 Sqoop won't compile on Java 7 due to new methods in ResultSet
interface

(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-28 13:11:51 -08:00
Jarek Jarcec Cecho
817195ebb0 SQOOP-382: Connection parameters should be used on the mapper
(David Robson via Jarek Jarcec Cecho)
2012-11-26 16:26:18 -08:00
Jarek Jarcec Cecho
95098af0e0 SQOOP-657: ant checkstyle results in errors
(Alexander Alten-Lorenz via Jarek Jarcec Cecho)
2012-11-11 15:30:29 -08:00
Jarek Jarcec Cecho
c0a370d57f SQOOP-687: org.apache.sqoop.tool.ExportTool.applyOptions invokes applyOutputFormatOptions(..) twice in succession
(Venkatesh Seetharam via Jarek Jarcec Cecho)
2012-11-10 08:59:56 -08:00
Jarek Jarcec Cecho
da16aa5dc0 SQOOP-683: Documenting sqoop.mysql.export.sleep.ms - easy throttling feature for direct MySQL exports
(Zoltan Toth-Czifra via Jarek Jarcec Cecho)
2012-11-09 09:07:12 -08:00
Cheolsoo Park
ebeb933513 SQOOP-650 Add ability to name mapreduce job generated by Sqoop
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-11-06 16:28:57 -08:00
Abhijeet Gaikwad
c499f49097 SQOOP-604: Easy throttling feature for MySQL exports
(Zoltan Toth-Czifra via Abhijeet Gaikwad)
2012-11-03 10:48:49 +05:30
Jarek Jarcec Cecho
5eb987a785 SQOOP-467: Add support for Oracle BINARY_FLOAT and BINARY_DOUBLE data types
(Cheolsoo Park via Jarek Jarcec Cecho)
2012-11-02 12:16:17 -07:00
Cheolsoo Park
0a30ae174c SQOOP-635 Explaining why it's important to specify weird urandom path in
Troubleshooting guide
2012-10-30 12:12:27 -07:00
Jarek Jarcec Cecho
695666acdb SQOOP-636: ExportJobTestCase.runExport method does not reuse the existing Configuration and SqoopOptions
(Venkatesh Seetharam via Jarek Jarcec Cecho)
2012-10-21 18:22:26 -07:00
Cheolsoo Park
2750df90f9 SQOOP-621 Requesting support for upsert export with MySQL 2012-10-17 20:52:24 -07:00
Jarek Jarcec Cecho
3aed031676 SQOOP-628: Postgres direct import fails on non-lowercase column names
(Paul Butler via Jarek Jarcec Cecho)
2012-10-12 11:01:08 -07:00
Cheolsoo Park
e57ae6aa9e SQOOP-617 User guide is missing argument --fetch-size
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-10-01 18:20:55 -07:00
Cheolsoo Park
4a26d0905c SQOOP-540 Microsoft SQL Connector doesn't support custom schemas
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-10-01 18:17:38 -07:00
Jarek Jarcec Cecho
d4767e9f61 SQOOP-615: Error in Avro generation
(Giovanni Ruggiero via Jarek Jarcec Cecho)
2012-09-27 12:58:35 +02:00
Cheolsoo Park
465c2751f7 SQOOP-616 HBase import/export is not working on non secure cluster where
security is available

(Jarek Jarcec Cecho via Cheolsoo Park)
2012-09-26 14:17:37 -07:00
Cheolsoo Park
5616152ac4 SQOOP-603 Support small intervals in IntegerSplitter implementation
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-09-20 12:14:15 -07:00
Jarek Jarcec Cecho
75f2b707b6 SQOOP-607: In-process Hive CLI driver does not work
(David Robson via Jarek Jarcec Cecho)
2012-09-19 11:02:09 +02:00
Cheolsoo Park
f11c3091c2 SQOOP-601 Support custom schemas in PostgreSQL Connector
(Jarek Jarcec Cecho via Cheolsoo Park)
2012-09-17 11:04:18 -07:00
Abhijeet Gaikwad
0b2a688d36 SQOOP 600: HBase table family presence is not working correctly on new HBase versions
(Jarek Jarcec Cecho via Abhijeet Gaikwad)
2012-09-13 22:46:25 +05:30
Bilung Lee
3fee25eb8f SQOOP-599: Import to HBase is not working on secure cluster 2012-09-11 17:56:56 -07:00
Abhijeet Gaikwad
2a2596b7d5 SQOOP-598. Document NULL substitution string changes for HIVE import.
(Jarek Jarcec Cecho via Abhijeet Gaikwad)
2012-09-10 19:18:58 +05:30
olivier lamy
2c16a25296 [SQOOP-595] Change repository location in source code
Submitted by Jarek Jarcec Cecho.
2012-09-06 10:45:08 +02:00
Jarek Jarcec Cecho
da0b7921a9 SQOOP-437. Preparing release requires manual changes to LICENSE.txt file.
(Abhijeet Gaikwad via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1378831 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 07:30:34 +00:00
Jarek Jarcec Cecho
0d65247f2a SQOOP-586. ant checkstyle has 2 errors.
(Abhijeet Gaikwad via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1376836 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 06:33:00 +00:00
Jarek Jarcec Cecho
1b896f3e46 SQOOP-579. Simple refactoring of org.apache.sqoop.manager.DefaultManagerFactory - extract methods for reuse.
(Seetharam Venkatesh via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1375401 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 07:06:47 +00:00
Jarek Jarcec Cecho
0c396d575b SQOOP-580. Add Open-ended "teardown" routine that is called after the job execution for cleanup.
(Seetharam Venkatesh via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1375399 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 06:56:19 +00:00
Jarek Jarcec Cecho
ec75e134cf SQOOP-582. Create a template method for job submission in Export/Import JobBase.
(Seetharam Venkatesh via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1375395 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 06:43:50 +00:00
Jarek Jarcec Cecho
29b29a52f3 SQOOP-390. PostgreSQL connector for direct export with pg_bulkload.
(Masatake Iwasaki via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1374923 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 06:21:34 +00:00
Jarek Jarcec Cecho
7d775935b6 SQOOP-571. Revert SQOOP-519 and SQOOP-524.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1372828 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 10:23:33 +00:00
Jarek Jarcec Cecho
317562642f Reverting back accidentally committed file.
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1372804 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 09:32:50 +00:00
Jarek Jarcec Cecho
cd0b181fa7 SQOOP-574. Create a Hadoop-2.0.0 build profile.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1372798 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 09:28:59 +00:00
Jarek Jarcec Cecho
7e2df74795 Reverting accidentally commmited file from last commit.
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1371048 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 06:44:48 +00:00
Jarek Jarcec Cecho
9d513408be Preparing for release 1.4.3 development
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1371046 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 06:36:48 +00:00
Jarek Jarcec Cecho
0cef53257f SQOOP-539. getPrimaryKeyQuery is very slow in mysql 5.0.77.
(Jhovanny via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1370124 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 06:12:50 +00:00
Kathleen Ting
be36da3928 SQOOP-410. Direct modes can't import views
(Jarek Jarcec Cecho via Kathlen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1369390 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:21:44 +00:00
Jarek Jarcec Cecho
02f45c4161 SQOOP-536. Blob import doesn't work with avro 1.7.1.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1369193 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 20:20:01 +00:00
Bilung Lee
1df2fb6bdf SQOOP-529: Enforce usage of --driver and --connection-manager parameters
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1368748 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 23:05:22 +00:00
Bilung Lee
90d15511d5 SQOOP-528: Remove references to incubator from sources
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1368628 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 18:06:49 +00:00
Jarek Jarcec Cecho
8e0be7cc59 SQOOP-521. Import fails on tables with names containing hyphens ( - ).
(Abhijeet Gaikwad via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1366886 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 18:27:45 +00:00
Jarek Jarcec Cecho
9eebfb48be SQOOP-519. Update the version of hsqldb decadency to 2.X.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1365691 13f79535-47bb-0310-9956-ffa450edef68
2012-07-25 18:33:11 +00:00
Kathleen Ting
a3e578b0cb SQOOP-522. Move printing error "ERROR orm.CompilationManager: Could not rename" to DEBUG
(Jarek Jarcec Cecho via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1365320 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 22:01:03 +00:00
Bilung Lee
90e64cd5ea SQOOP-510 Improve the error message for bad connector files
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1354705 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 20:12:33 +00:00
Bilung Lee
f6761e6d74 SQOOP-460 Verbose logging does not turn the level for correct logger
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1353677 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 17:32:32 +00:00
Bilung Lee
6f92225b84 SQOOP-505 Handle trailing space in managers.d/connectors
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1352359 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 22:41:37 +00:00
Bilung Lee
cf8602eb77 SQOOP-436 Enable verbose logging for MapReduce jobs
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1351503 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 21:49:42 +00:00
Jarek Jarcec Cecho
78d107f171 SQOOP-503: --columns argument support for export.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1351062 13f79535-47bb-0310-9956-ffa450edef68
2012-06-17 06:49:06 +00:00
Bilung Lee
5f6dd35e8e SQOOP-480 MS SQL server connector is incompatible with Sqoop-1.4
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1347112 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 20:49:36 +00:00
Bilung Lee
0c406e7830 SQOOP-487 Log InformationSchemaManager.getPrimaryKeyQuery invocation
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1345313 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 18:51:58 +00:00
Bilung Lee
67847bd071 SQOOP-476 If table name is a qualified name, Sqoop import fails in DB2
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1345282 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 17:34:27 +00:00
Jarek Jarcec Cecho
5f888fefdd SQOOP-481. Sqoop import with --hive-import using wrong column names in --columns throws a NPE.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1345225 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 15:12:25 +00:00
Jarek Jarcec Cecho
4505205588 SQOOP-489. Cannot define partition keys for Hive tables created through Sqoop.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1344429 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 19:30:10 +00:00
Jarek Jarcec Cecho
b0de5ca47c SQOOP-490. Style error in the trunk.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1344409 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 18:46:08 +00:00
Kathleen Ting
e0590385e3 SQOOP-488. Parameter for extended verbose is not working due to migrated code to different module
(Jarek Jarcec Cecho via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1343147 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 06:41:35 +00:00
Jarek Jarcec Cecho
06b636aac6 SQOOP-483. Allow target dir to be set to a different name than table name for hive import.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1342998 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 06:18:02 +00:00
Kathleen Ting
35365d5e21 SQOOP-484. Update troubleshooting guide section about MySQL and TINYINT(1) columns
(Jarek Jarcec Cecho via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1338034 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 04:42:54 +00:00
Kathleen Ting
32a9d56ead SQOOP-482. Import tool for mysql direct mode reports wrong
record number
(Nemon Lou via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1336434 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 22:38:55 +00:00
Kathleen Ting
c9c5e98153 SQOOP-443. Calling sqoop with hive import is not working multiple times due
to kept output directory
(Jarek Jarcec Cecho via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1334328 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 07:25:46 +00:00
Bilung Lee
199d5eb37e SQOOP-445 Wrong query for getListColumnsQuery in PostgresqlManager
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1331245 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 06:42:42 +00:00
Jarek Jarcec Cecho
d3ef140fe8 SQOOP-453. Oozie does not work with Sqoop metastore.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1330263 13f79535-47bb-0310-9956-ffa450edef68
2012-04-25 13:13:58 +00:00
Bilung Lee
8a1052cf9c SQOOP-470 Create tests for blob support for Avro import
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1310554 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 19:10:18 +00:00
Bilung Lee
9c539163ca SQOOP-474 Split-by specification incorrectly triggers bounding value query
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1310129 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 23:22:51 +00:00
Jarek Jarcec Cecho
4373a338ba SQOOP-468. Oracle free form queries fail.
(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1309268 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 06:58:52 +00:00
Bilung Lee
2a27bf28fb SQOOP-473 Sqoop import-all-tables fails with MySQL connector
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1309163 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 21:47:15 +00:00
Bilung Lee
f13e3c7f8b SQOOP-465 BLOB support for Avro import
git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1307132 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 21:57:06 +00:00
Arvind Prabhakar
885248536a SQOOP-464. Warn when user is importing data into /user/hive/warehouse with flag --hive-import.
(Jarek Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1304026 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 20:20:27 +00:00
Jarek Jarcec Cecho
84a25b206a SQOOP-463. Sqoop User Guide's troubleshooting section should explain how to override the column mapping when importing a table from MySQL into Hive.
(Kathleen Ting via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1303911 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 17:35:56 +00:00
Bilung Lee
7975308820 SQOOP-448 boolean fields get nullified during postgres direct import into hive.
(fix a problem in previous patch)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1301118 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 17:50:39 +00:00
Bilung Lee
8fd98dbe1f SQOOP-448 boolean fields get nullified during postgres direct import into hive.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1300345 13f79535-47bb-0310-9956-ffa450edef68
2012-03-13 20:36:32 +00:00
Arvind Prabhakar
b6707bed9f SQOOP-461. Adding Oracle error to troubleshooting section of user guide.
(Kathleen Ting via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1299784 13f79535-47bb-0310-9956-ffa450edef68
2012-03-12 18:56:12 +00:00
Bilung Lee
8b39345360 SQOOP-459 Remove redundant steps in compatibility tests: verifyReadback() method
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1299056 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 21:30:23 +00:00
Arvind Prabhakar
166b12965d SQOOP-352. Export of avro data fails on year values.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1297782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 23:01:02 +00:00
Bilung Lee
6bac9903d7 SQOOP-416 Allow code-generation arguments with Avro imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1297199 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 19:44:00 +00:00
Kathleen Ting
ae8d1c7674 SQOOP-450. Direct MySQL import can fail when using mysqldump version 5.1.14 or above.
(Arvind Prabhakar via Kathleen Ting)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1295750 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 19:07:51 +00:00
Bilung Lee
d9ff716ee6 SQOOP-444 Support incremental import for free form queries
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1294802 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 19:56:29 +00:00
Bilung Lee
24aa26915c SQOOP-425 Sqoop invokes ResultSet.isLast() which causes Sybase JDBC driver to hang
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1294396 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 23:42:45 +00:00
Jarek Jarcec Cecho
40856655c3 SQOOP-428. AvroOutputFormat doesn't support compression even though documentation claims it does
(Lars Francke via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1240613 13f79535-47bb-0310-9956-ffa450edef68
2012-02-04 21:37:08 +00:00
Bilung Lee
4f490b47a3 SQOOP-422. Throw an exception when --direct and hbase* options are used together
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1236903 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 22:01:34 +00:00
Bilung Lee
541bbc8fcf SQOOP-432. Enforce writing space after if statement
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1236496 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 02:38:58 +00:00
Bilung Lee
78e2c2e297 SQOOP-430 Duplicate Column problem with reserved words
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1235970 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 22:13:34 +00:00
Bilung Lee
688f6169fa SQOOP-409 hive-drop-import-delims doesn't work with MySQL direct import
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1232653 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 23:52:22 +00:00
Bilung Lee
334632e929 SQOOP-395 Incorrect or missing SVN property settings
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1230747 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 20:10:26 +00:00
Alex Newman
666fc48609 SQOOP-421. User guide should state that when using --direct, hbase params get ignored
(Jarek Jarcec Cecho via Alex Newman)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1229399 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 22:25:24 +00:00
Jarek Jarcec Cecho
dcf9a82599 SQOOP-411. Precompile Pattern for replacement of Hive delimiters
(Lars Francke via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1226881 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 17:22:22 +00:00
Jarek Jarcec Cecho
1b50342612 SQOOP-418. MySQLAuthTest hangs when run against MySQL 5.5.3 or higher version
(Arvind Prabhakar via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1225123 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 07:20:55 +00:00
Arvind Prabhakar
dd57ed2e7f SQOOP-413. Port files into Sqoop that are not found in prior versions of Hadoop.
(Jarek Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1221843 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 19:25:52 +00:00
Jarek Jarcec Cecho
57a20d745c SQOOP-412. Create our own implementation of org.apache.hadoop.conf.Configuration.getInstances
(Eric Wadsworth via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1221127 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 07:27:12 +00:00
Arvind Prabhakar
075efe50a0 SQOOP-414. Column name ordering guarantee for OracleManager.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1220973 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 22:12:52 +00:00
Arvind Prabhakar
5cc64097ae SQOOP-405. Enable TestDataDrivenDBInputFormat for Hadoop 0.23
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1213964 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 22:34:32 +00:00
Arvind Prabhakar
6c1ddf5f7c SQOOP-397. Make Sqoop work with Hadoop 0.23
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1211583 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 18:33:08 +00:00
Arvind Prabhakar
c6eca91af0 SQOOP-400. Merge 1.4.0 release changes back to trunk.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1209344 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 03:02:10 +00:00
Jarek Jarcec Cecho
9bde3ec5df SQOOP-392. Build using maven is broken due to missing class generated by script write-version-info.sh
(Arvind Prabhakar via Jarek Jarcec Cecho)



git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1206698 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 11:12:37 +00:00
Arvind Prabhakar
1bf7cbf81a SQOOP-362. Allow user to override type mapping when doing Avro import.
(Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1205233 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 23:30:10 +00:00
Arvind Prabhakar
f31f577f08 SQOOP-393. Class SqoopOptions was not properly moved.
(Jarek Jarcec via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1203759 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 17:37:03 +00:00
Bilung Lee
b8de0e5026 SQOOP-354 SQOOP needs to be made compatible with Hadoop .23 release
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1199149 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 08:05:02 +00:00
Bilung Lee
5bbc924c81 SQOOP-383 Version tool is not working
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1197390 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 02:15:45 +00:00
Bilung Lee
fc656273d4 SQOOP-373 Can only write to default file system on direct import
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1196980 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 07:10:50 +00:00
Bilung Lee
22ed175b76 SQOOP-385 Typo in PostgresqlTest.java regarding configuring postgresql.conf
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1196933 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 04:01:18 +00:00
Bilung Lee
d8a8c43009 SQOOP-367 Codegen support for free-form query
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1196921 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 02:27:58 +00:00
Arvind Prabhakar
1598c5a481 SQOOP-386. Namespace migration cleanup.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1196486 13f79535-47bb-0310-9956-ffa450edef68
2011-11-02 07:48:56 +00:00
Bilung Lee
fd844db769 SQOOP-378: Migrate manager package to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1196272 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 21:01:09 +00:00
Bilung Lee
fb1c2c94c4 SQOOP-381: Migrate cli and config packages to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1195865 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 08:20:12 +00:00
Bilung Lee
916983e137 SQOOP-364: Default getCurTimestampQuery() in SqlManager is not working for PostgreSQL
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1195859 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 07:47:23 +00:00
Bilung Lee
3fcd6c8768 SQOOP-375: Migrate metastore and metastore.hsqldb packages to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1195857 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 07:39:43 +00:00
Bilung Lee
d91085714f SQOOP-374: Migrate tool and orm packages to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1195852 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 07:10:13 +00:00
Arvind Prabhakar
b0b9e69c2f SQOOP-380. Migrate hive and hbase packages to new namespace.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1195674 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 21:15:29 +00:00
Arvind Prabhakar
37831c6125 SQOOP-376. Migrate mapreduce package to new namespace.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1190489 13f79535-47bb-0310-9956-ffa450edef68
2011-10-28 18:22:16 +00:00
Bilung Lee
37c9642e7d SQOOP-377 Migrate mapreduce.db package to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1190441 13f79535-47bb-0310-9956-ffa450edef68
2011-10-28 16:50:39 +00:00
Bilung Lee
315fff82b9 SQOOP-379 Migrate lib and io packages to new name space
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1190430 13f79535-47bb-0310-9956-ffa450edef68
2011-10-28 16:32:43 +00:00
Arvind Prabhakar
a8cdad50d2 SQOOP-371. Migrate util package to new namespace.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1188921 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 21:19:35 +00:00
Olivier Lamy
90797042ae fix some references Sqoop is now an Apache product :-)
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1187776 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 20:52:54 +00:00
Olivier Lamy
a0296b9b29 remove cloudera google analytics tracker
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1187774 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 20:50:11 +00:00
Olivier Lamy
4a2e8e86e5 source code base is now at ASF
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1187773 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 20:49:58 +00:00
Bilung Lee
0028a8aebf SQOOP-353 Cleanup the if/else statement in HiveTypes
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1186537 13f79535-47bb-0310-9956-ffa450edef68
2011-10-19 22:18:32 +00:00
Bilung Lee
94b5182efe SQOOP-366 Sqoop User Guide's troubleshooting section should include MySQL setup instructions
(Kate Ting via Bilung Lee)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1185776 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 18:17:46 +00:00
Bilung Lee
5cf46c24cd SQOOP-361 [Docs] $CONDITIONS must be escaped to not allow shells to replace it.
(Harsh J via Bilung Lee)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1185449 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 01:28:03 +00:00
Arvind Prabhakar
c39bf2a14e SQOOP-342. Allow user to override Sqoop type mapping.
(Jarek Jarcec Checho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1182523 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 18:54:31 +00:00
Bilung Lee
8e0ce98551 SQOOP-358 Sqoop import fails on netezza nvarchar datatype with --as-avrodatafile
(Chris Tierney via Bilung Lee)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1182150 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 00:24:07 +00:00
Bilung Lee
8711e293bd SQOOP-359 Import fails with Unknown SQL datatype exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1180279 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 23:42:00 +00:00
Arvind Prabhakar
d6eec1f2d5 SQOOP-357. Debug logs should include chained exception trace.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1180162 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 19:12:01 +00:00
Arvind Prabhakar
fd3634dc3c SQOOP-341. Support for unsigned integers with MySQL.
(Alex Newman via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1178661 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 01:12:13 +00:00
Arvind Prabhakar
7c6b8b3e7d SQOOP-355. Improve Sqoop Documentation for Avro data file support.
(Doug Cutting via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1178574 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 20:55:13 +00:00
Bilung Lee
f4a4fbb304 SQOOP-313: Support for multiple column names for update keys
(Arvind Prabhakar via Bilung Lee)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1177481 13f79535-47bb-0310-9956-ffa450edef68
2011-09-30 01:57:59 +00:00
Arvind Prabhakar
6a7144a496 SQOOP-331. Support for boundary query.
(Jarek Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1176981 13f79535-47bb-0310-9956-ffa450edef68
2011-09-28 17:43:11 +00:00
Arvind Prabhakar
028464dd7e SQOOP-351. Notes for troubleshooting section of user guide.
(Kate Ting via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1176952 13f79535-47bb-0310-9956-ffa450edef68
2011-09-28 16:44:45 +00:00
Arvind Prabhakar
21040519b0 SQOOP-339. Error handling for mknod failure.
(Joey Echeverria via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1173919 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 00:32:51 +00:00
Bilung Lee
230c687d88 SQOOP-329: SQOOP doesn't work with the DB2 JCC driver
(Arvind Prabhakar via Bilung Lee)

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1173471 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 02:58:31 +00:00
Arvind Prabhakar
cad898768b SQOOP-340. Explicit error message for invalid options.
(Jarek Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1173304 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 18:53:10 +00:00
Arvind Prabhakar
c2c4e24a1f SQOOP-310. Update copyright and License headers.
(Alex Newman via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1171668 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 17:00:22 +00:00
Arvind Prabhakar
d01117f7b9 SQOOP-336. Avro import does not support varbinary types.
(Tom White via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1170979 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 07:05:25 +00:00
Arvind Prabhakar
4992ce7515 SQOOP-332. Cannot use --as-avrodatafile with --query.
(Joseph Boyd via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1170977 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:55:33 +00:00
Arvind Prabhakar
e1e6e5c009 SQOOP-327. Mixed update/insert export for Oracle.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1166930 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 22:25:39 +00:00
Arvind Prabhakar
7d2939b3a1 SQOOP-323. Support for NVARCHAR datatype.
(Jarek Jarcec Cecho via Bilung Lee)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1165981 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 02:57:56 +00:00
Arvind Prabhakar
0ef6974ce6 SQOOP-330. Descriptive error message when column name cannot be determined.
(Jarek Jarcec Cecho via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1165969 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 02:46:12 +00:00
Arvind Prabhakar
892610c5b7 SQOOP-321. Support date/time for incremental append imports.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1161404 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 06:27:05 +00:00
Arvind Prabhakar
ce5d285397 SQOOP-319. Support for replacing Hive delimiters.
(Joey Echeverria via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1161382 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 04:52:09 +00:00
Arvind Prabhakar
5258c2855f SQOOP-318. Support splittable LZO files with Hive.
(Joey Echeverria via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1160815 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 17:17:08 +00:00
Arvind Prabhakar
d0d057a7cd SQOOP-320. Use Information Schema for SQLServer.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1159949 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 07:33:42 +00:00
Arvind Prabhakar
7dfa96268b SQOOP-314. Support for batch insert.
(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1159773 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 20:27:11 +00:00
Arvind Prabhakar
01a029949a SQOOP-317. Allow working with tables owned by other users in Oracle.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1159491 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 03:14:38 +00:00
Arvind Prabhakar
6c6d37214f SQOOP-316. Added troubleshooting section to user guide.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1158959 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 22:51:29 +00:00
Arvind Prabhakar
fe9f6c723a SQOOP-309. Update Sqoop dependency versions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1158378 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 17:07:57 +00:00
Arvind Prabhakar
8d8bcfc53f SQOOP-305. Support export from Avro Data Files.
(Tom White via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1156405 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 23:58:07 +00:00
Olivier Lamy
dfc6fa4e7c SQOOP-310 Review license headers
start working on build/configuration files

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1155235 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 07:10:53 +00:00
Jonathan Hsieh
1ba97009f2 SQOOP-303/150. Use catalog views for PostgressqlManager (Bilung Lee)
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1154386 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 21:36:38 +00:00
Aaron Kimball
1014f4b54a SQOOP-308. Generated Avro Schema cannot handle nullable fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1154059 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 01:01:30 +00:00
Olivier Lamy
1c6ea534b7 mark thoses classes as abstract are they are not intended to be executed as unit test
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1153532 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 15:11:36 +00:00
Olivier Lamy
4353f6b8d7 configure surefire plugin to avoid creating temp file on .
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1153054 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:32:03 +00:00
Olivier Lamy
8a9d85391c start working on a maven build : some tests failed due to missing oracle jdbc driver
git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1152974 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 00:01:38 +00:00
Arvind Prabhakar
e53beb7fbb SQOOP-149. Use catalog views for MySQLManager.
This change enables the use of Information Schema for
MySQLManager.

(Bilung Lee via Arvind Prabhakar)


git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150184 13f79535-47bb-0310-9956-ffa450edef68
2011-07-23 18:51:21 +00:00
Andrew Bayer
76cfa0d7e3 SQOOP-172. Allow passing of connection parameters.
This change introduces a new option that can be used to pass custom
connection parameters while creating JDBC connections. If no connection
parameters are specified, the system defaults to the old behavior.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150051 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:41 +00:00
Andrew Bayer
c640823653 SQOOP-231. Typo in sqoop-import man page.
The Sqoop man page for sqoop-import and sqoop-import-all-tables incorrectly
specified the option for Avro datafile format as ----as-avrodatafile. Instead
it should be --as-avrodatafile. Also included in this change is whitespace
fix for build.xml and an addition to .gitignore.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150050 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:41 +00:00
Andrew Bayer
588d20f949 SQOOP-221. Sqoop Export fails for SQLServer 2005.
This change introduces a new Connection Manager for SQL Server along
with basic test case to exercise part of the functionality. It also
addresses the problem noted in SQOOP-229 by overriding the
getCurTimestampQuery method as suggested.

(Patrick Angeles via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150049 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:41 +00:00
Andrew Bayer
44ffd1e75b SQOOP-207. Support import as Avro Data Files.
(Tom White via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150047 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:40 +00:00
Andrew Bayer
5eaafd3243 SQOOP-225. Checkstyle module for detecting trailing white spaces.
This patch adds a checkstyle module to detect trailing white
spaces. It also removed various current instances of trailing
white spaces in the code.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150046 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:39 +00:00
Andrew Bayer
fe9c0666b9 SQOOP-91. Empty "columns" clause leads to null pointer exception
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150045 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:38 +00:00
Andrew Bayer
bccae3464a SQOOP-224. Table name issue with PostgreSQL.
Recently the PostgresqlManager was updated to escape all identifier
names. This change addresses a couple of places where the identifier
was either not being escaped, or was being lower-case converted as
per the previous logic.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150044 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:38 +00:00
Andrew Bayer
eac50d0e24 SQOOP-212. Hive import for existing table does not work.
This patch fixes a bug that prevents importing data into
an existing hive table with the 'hive-overwrite' argument set.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150043 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:38 +00:00
Andrew Bayer
cb911f34b4 SQOOP-67. NPE when column name list contains spaces
- e.g. sqoop -import --columns "col1, col2"

From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150042 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:37 +00:00
Andrew Bayer
c0ca0c100b SQOOP-219. Duplicate columns arguments results in code generation compilation error
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150041 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:37 +00:00
Andrew Bayer
913034315b SQOOP-48: Import bug when splitting over unsigned bigint column
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150040 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:37 +00:00
Andrew Bayer
b84aaf3ab0 SQOOP-215. Support for codec aliases.
(Tom White via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150039 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:37 +00:00
Andrew Bayer
fe4f54a413 SQOOP-195. Documentation tip on specifying MR job name.
Documentation change to highlight how to use hadoop generic
options to set the MR job name.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150038 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:36 +00:00
Andrew Bayer
0870f9499a SQOOP-158. Additional methods for generated classes.
Adding setter-methods and a field-based equals-implementation to
the generated classes. These new methods enhance the usage of the
generated classes.

(Michael Häusler via ahmed)

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150037 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:36 +00:00
Andrew Bayer
dfd9021662 SQOOP-201. Support for arbitrary compression codec.
(Tom White via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150036 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:36 +00:00
Andrew Bayer
7fa8b68fab SQOOP-206. HBase import to use plugin InputFormat.
(Peter Hall via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150035 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:35 +00:00
Andrew Bayer
6acded9bb9 SQOOP-204. Allow connector specific bounds query.
This change introduces a new method in ConnManager that allows the
various implementations to optionally override it and specify
custom bounds query used for calculating splits during free form
query based imports.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150033 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:35 +00:00
Andrew Bayer
f9f45cf55d SQOOP-205. Add getJob() to JobBase
(Garrett Wu via Aaron Kimball)

From: Aaron Kimball <akimball83@gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150032 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:34 +00:00
Andrew Bayer
0efc5a4d55 SQOOP-100. Sqoop to support populating Hive table partitions.
Initial patch by Frank Maritato.

From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150031 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:34 +00:00
Andrew Bayer
0a795d32e4 SQOOP-193. Update Docs to describe --hive-drop-import-delims argument
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150030 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:34 +00:00
Andrew Bayer
34b7c72165 SQOOP-118. Sqoop should work without HBase where possible.
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150029 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:33 +00:00
Andrew Bayer
f38e40e760 SQOOP-129. Newlines in RDBMS fields break Hive
From: Jonathan Hsieh <jon@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150028 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:33 +00:00
Andrew Bayer
79fd6b4d84 SQOOP-191. Supplying programmatic configuration.
(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150027 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:33 +00:00
Andrew Bayer
aa41d0635e SQOOP-192. Limit HSQLDB export to single inserts.
(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150026 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:32 +00:00
Andrew Bayer
7677d39b79 SQOOP-187. Allow skipping end-of-record delimiter.
The SqoopRecord.toString() and SqoopRecord.toString(DelimiterSet) methods
always append an end-of-record delimiter. Sqoop uses its own OutputFormat
when rendering these to text files, so that the user's delimiters are
preserved.

Other users could use this OutputFormat when working with SqoopRecord
instances in their own MapReduce code, but it would also be nice to "play
nice" with TextOutputFormat in the event that the intent is
newline-terminated records.

This patch allows users to suppress end-of-record delimiter generation when
formatting records with toString.

(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150025 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:32 +00:00
Andrew Bayer
3bbb4a6314 SQOOP-170. Capturing causal exception for logging.
From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150024 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:32 +00:00
Andrew Bayer
67dce5cc36 SQOOP-185. Tool plugins should not reuse names.
(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150023 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:31 +00:00
Andrew Bayer
a8dd09ddbe SQOOP-183. File rename fails for generated files.
(Angus He via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150022 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:31 +00:00
Andrew Bayer
cf117e6500 SQOOP-179. Adding setField() method to SqoopRecord
This change introduces a setField(fieldName, fieldVal) method for
SqoopRecord instances which would allow an arbitrary programmatic
"setter" function without requiring reflection.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150021 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:31 +00:00
Andrew Bayer
5ee493ee0c SQOOP-178. Support for tool plugins.
The change will look for ToolPlugin definitions in the
sqoop.tool.plugins configuration entry, or conf/tools.d. Each
ToolPlugin returns a list of ToolDesc entries, which are then
registered with SqoopTool.register() before the user's arguments
are parsed. The user can then run 'sqoop <custom-tool> args...'
as if it were part of the natural Sqoop system.

(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150020 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:30 +00:00
Andrew Bayer
9db0f3b4a9 SQOOP-181. Improve formatting of help messages.
(Aaron Kimball via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150018 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:30 +00:00
Andrew Bayer
9219504fd8 SQOOP-166. Postgresql identifiers should be quoted
(James Grant via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150017 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:30 +00:00
Andrew Bayer
9b10f9b2c4 SQOOP-168. NPE due to null binary columns.
(Scott Foster via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150016 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:29 +00:00
Andrew Bayer
5774ddd6db SQOOP-165. Improved log message for unknown types.
(Lars Francke via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150015 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:29 +00:00
Andrew Bayer
6f2e5c683a SQOOP-162. Changes for vendor-specific subclasses.
Minor changes to AsyncSqlExecThread to use execute instead of executeUpdate
and to DBRecordReader to allow subclasses to access the configuration object.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150014 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:29 +00:00
Andrew Bayer
a00a320bfa SQOOP-153. Enable tests against real cluster.
From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150013 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:28 +00:00
Andrew Bayer
0b1f47c459 SQOOP-152. Support for test against cluster.
This change allows Sqoop unit tests to be run against a real cluster.

(Konstantin Boudnik via arvind)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150012 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:28 +00:00
Andrew Bayer
d920b8a0e8 SQOOP-140. Control max. number of fetched records.
This change adds the ability of specifying the max. number of fetched records
from the database. This will solve problems that may arise when importing
large tables.

(Michael Häusler via ahmed)

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150011 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:28 +00:00
Andrew Bayer
de2fc6c2b3 SQOOP-164. Allow unit tests to use external dbs.
Modified the thirdparty tests to pick host URL from system properties.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150010 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:27 +00:00
Andrew Bayer
3f8252a28c SQOOP-154. Fix connection leak in OracleManager.
From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150009 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:27 +00:00
Andrew Bayer
49613bb5b7 SQOOP-159. Fixing HBase test failures.
Changes include explicitly setting the Zookeeper client port and increasing
the memory limit from 256m to 512m in build.xml.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150008 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:27 +00:00
Andrew Bayer
4e6351f372 SQOOP-148. Use catalog views for OracleManager.
This change updates the OracleManager to use catalog views for resolving
the necessary metadata.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150006 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:26 +00:00
Andrew Bayer
70caf779b0 SQOOP-142. Document requirements for direct import
Updated the documentation with details on direct mode execution
requirements.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150005 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:26 +00:00
Andrew Bayer
e33bdbced1 SQOOP-111. Documentation fix.
Sqoop user guide inaccurately claims that Hive does not support escaping
of characters. This change updates the user guide to fix this and make the
claim based on the current capabilities of Hive.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150004 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:25 +00:00
Andrew Bayer
fbb283f54d SQOOP-143. Simplify test configuration.
This change removes the test that asserts the presence of a non-default hosts
file configuration. It also adds the necessary comments to the PostgresqlTest
to allow configuring the server for default hosts file configuration.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150003 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:25 +00:00
Andrew Bayer
1d5b7011a9 SQOOP-124. Improve error handling during export.
This change introduces the ability to use a staging table for intermediate
storage during execution for regular export jobs in insert mode. This allows
all of exported data to first be populated in the staging table and then
inserted into the destination table in a single transaction. Thus if a failure
were to occur during export, it is less likely to corrupt the destination
table data. Moreover, the staging table is emptied before the export
job starts populating it, which ensures that re-running the job does not
require any special clean up.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150002 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:25 +00:00
Andrew Bayer
23cebe14ba SQOOP-139. Doc update for SQOOP-125 changes.
This fix mainly corrects a minor option naming inconsistency in the
documentation.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150001 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:24 +00:00
Andrew Bayer
2de36d7aab SQOOP-141. BlobRef accessor returns incorrect data.
This change fixes the BlobRef implementation to return the appropriate stream
source or byte array from the BytesWritable instance by taking into
consideration the actual data length.

(Peter Hall via arvind)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150000 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:24 +00:00
Andrew Bayer
cc288b6784 SQOOP-126. Support for loading options from file.
This change allows Sqoop to load options from an options file. An
options file is specified using --options-file. All options that
are otherwise specified on the command line should be specified
in this file in the order they would otherwise appear on the command
line. Options files can contain empty lines and comments for
readability. More than one options file may be used for a single
tool invocation if so preferred. Leading and trailing spaces are
ignored unless they appear within single or double quotes. Quoted
options extending into multiple lines are not supported.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149999 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:24 +00:00
Andrew Bayer
ae66d60c56 SQOOP-101. Sqoop build to use IVY for dependencies.
This change modifies Sqoop build to use IVY for retrieving HBase and
Zookeeper dependencies. Along with this update, the version number
for HBase and Hadoop have been incremented to match the CDH3 Beta 3
versions. Due to this, a couple of tests had to be modified in order
to accommodate the changed behavior of the Hadoop classes.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149997 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:23 +00:00
Andrew Bayer
2eaa878ff0 SQOOP-12. Alternate NULL formats.
This fix allows the user to optionally specify different null
representations. It addresses both the import and export use
cases, in addition to both string and non-string column types.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149996 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:23 +00:00
Andrew Bayer
55cce082c2 SQOOP-135. Update documentation for query imports.
Documentation updated to explicitly state the limitations of the
free-form query based import facility. Also, fixed a documentation
example that was missing the 'WHERE $CONDITIONS' clause.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149995 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:22 +00:00
Andrew Bayer
b22904cbfe SQOOP-133. Removing shim layer mechanism.
This change removes the ShimLoader and various Shim classes such as CDH3Shim
etc. It introduces a couple of new classes - ConfigurationConstants and
ConfigurationHelper - that provide a unique place for articulating interface
related details such as configuration keys that can likely change from version
to version of Hadoop.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149994 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:22 +00:00
Andrew Bayer
df738df6c1 SQOOP-125. Allow user to specify database type.
This fix allows the user to optionally specify the connection
manager class to be used, instead of inferring it from the
connection string.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149993 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:21 +00:00
Andrew Bayer
b794959457 SQOOP-131. Hive import using free form query.
This change fixes a problem that prevented users from importing into Hive
data extracted using a free form query.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149992 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:21 +00:00
Andrew Bayer
bf0deb178e SQOOP-128. Allow custom export writers to cleanup.
This change allows customized ExportRecordWriters the opportunity to execute
code after the last commit is performed and before the database connection
is closed.

(Guy le Mar via Arvind Prabhakar)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149991 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:21 +00:00
Andrew Bayer
5dd36c62da SQOOP-114. Fix for NPE.
This is a fix for a case of malformed command line arguments,
where the tool name is correct, the option is also correct,
but the value of the option is missing.

From: Ahmed Radwan <ahmed@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149990 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:20 +00:00
Andrew Bayer
e3638e8ce0 SQOOP-37. Escape table and column names for Hive.
Hive allows the use of keywords as column and table names as long as they are
escaped using back-ticks. This change makes Sqoop always escape table and
column names using back-ticks thereby allowing Sqoop to work with Hive tables
that use keywords for either the table name or column names.

(Lars Francke via arvind)

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149989 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:20 +00:00
Andrew Bayer
00821910b3 SQOOP-119. TextSplitter creates incorrect bounds.
The TextSplitter implementation used when creating splits on top
of String based columns, has a bug in its logic which causes
the bounds for splits to be created incorrectly. This results
in the import of duplicate data. This change fixes the TextSplitter
in order to ensure that the bound checks are created correctly.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149988 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:20 +00:00
Andrew Bayer
574835eb5a SQOOP-97. Remove mysql-connector-j from Sqoop.
This change removes the MySQL JDBC driver distribution that was
bundled with Sqoop previously. This is done to make sure that the
Sqoop distribution is completely Apache 2.0 compliant.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149987 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:19 +00:00
Andrew Bayer
683c04d10d SQOOP-108. Automatically obtain HBase and ZK deps.
Users currently need to specify hbase.home and zk.home in build.properties.
This change helps automatically resolve these dependencies by downloading
release tarballs. Would be best to do this via SQOOP-101 but the hbase and
zk maven layout currently has some issues that are painful to workaround
in ivy.

Reason: Improvement
Author: Eli Collins via Arvind Prabhakar

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149986 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:19 +00:00
Andrew Bayer
81608e42b6 SQOOP-110. Allow empty strings to represent NULL.
This change modifies the ClassWriter implementation to provide
support for interpeting empty strings as NULL values for datatypes
other than String. For String datatype, an explicit string 'null'
is interpreted as NULL value and empty string is not. This is
because certain databases distinguish between NULL and empty
strings.

The clone implementation generated by ClassWriter has also been
modified to make it more defensive against the presence of NULL
values.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149985 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:19 +00:00
Andrew Bayer
6da167490e SQOOP-99. CDH3Shim mapped to Hadoop 0.20.3.
Current CDH3 build includes version 0.20.3 of Hadoop which is now
mapped to CDH3Shim loader. Apart from that, this change includes
a change in build.xml and OracleUtils test class that allows the
ability to override connect string for Oracle tests.

From: Arvind Prabhakar <arvind@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149984 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:18 +00:00
Andrew Bayer
118bad1424 SQOOP-62. Fix failing Oracle compatibility tests.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149982 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:18 +00:00
Andrew Bayer
3509b7941e SQOOP-90. Tool to merge datasets imported via incremental import.
Adds 'merge' tool.
Adds MergeJob, Merge*Mapper, MergeReducer.
Merge-specific arguments added to SqoopOptions, BaseSqoopTool.
Add TestMerge to test that this tool functions as expected.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149980 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:17 +00:00
Andrew Bayer
ea716f5426 SQOOP-89. Support multiple output files in ManagerCompatTestCase.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149979 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:17 +00:00
Andrew Bayer
c7b1ddb708 SQOOP-88. Parameterize pre-table-import validity checks in SqlManager.
Adds SqlManager.checkTableImportOptions() method called by importTable().

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149978 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:17 +00:00
Andrew Bayer
1a63734c0d SQOOP-86. Release note generation requires python 2.5.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149977 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:16 +00:00
Andrew Bayer
09c6fe1ef8 SQOOP-85. Additional documentation build adjustments.
Disable XML validation under CentOS for more targets.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149976 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:16 +00:00
Andrew Bayer
56e3553f40 SQOOP-81. Creation of /tmp/sqoop/compile is not multi-user friendly.
Create nonce dirs as /tmp/sqoop-${user.name}/compile.
Remove unused compilation directories at end of execution.
Do not memoize nonce compilation directory names in metastore.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149975 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:16 +00:00
Andrew Bayer
899216e175 SQOOP-84. Fix documentation build error under CentOS.
Disable xmlto validation on CentOS.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149974 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:16 +00:00
Andrew Bayer
f4f0197174 SQOOP-78. Consolidate web-based documentation and tarball documentation.
Eliminates "webdocs" target from build, merged with "docs" target.
Web-based format for document delivery is used for local documentation as well.
Links to release notes, API documentation added to documentation homepage.
Release notes are generated for non-SNAPSHOT builds as part of "package" step.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149971 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:15 +00:00
Andrew Bayer
f88bfe27a2 SQOOP-60. Include SIP-6 document in source repository.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149970 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:15 +00:00
Andrew Bayer
5cc48f3051 SQOOP-51. Document driver jar installation process.
Updated the "supported databases" section of the user guide to reflect the
current driver installation process.
Updated "support" section of the user guide to mention current issue tracker.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149969 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:14 +00:00
Andrew Bayer
d656663a14 SQOOP-42. Document saved jobs, metastore, and incremental imports.
Added manual pages and user guide sections for sqoop-job and sqoop-metastore.
Updated sqoop-import documentation to describe incremental imports.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149968 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:14 +00:00
Andrew Bayer
36f93eac1d SQOOP-77. Rename saved sessions to saved jobs.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149967 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:13 +00:00
Andrew Bayer
e825dc560c SQOOP-75. Allow configuration of ManagerFactories through a configuration subdirectory.
Files in conf/managers.d/ are treated as configuration files that specify
classes for sqoop.connection.factories. If this property is unset, these
files are processed in order.
ClassLoaderStack no longer attempts to load a jar if the test class is
already available with the current set of ClassLoaders.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149966 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:13 +00:00
Andrew Bayer
4abb414829 SQOOP-76. Add automated release note generation script.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149965 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:13 +00:00
Andrew Bayer
beb0b2e1c2 SQOOP-47. NPE if --append is specified with HBase import target.
AppendUtils checks for missing append source and exits gracefully.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149964 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:13 +00:00
Andrew Bayer
66c753c2e7 SQOOP-72. sqoop-eval should use PreparedStatement.execute().
Modify sqoop-eval to use generic execute() instead of
executeQuery()/executeUpdate().
The --update argument to sqoop-eval is unnecessary and has been removed.
Modify ResultSetPrinter to properly display left border on output.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149963 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:12 +00:00
Andrew Bayer
57141e1fc7 SQOOP-38. Direct PostgreSQL import only works when providing a port.
From: Lars Francke <lars.francke@gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149962 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:12 +00:00
Andrew Bayer
5c088f32ec SQOOP-73. Generated records should handle more boolean value formats.
Add BooleanParser to parse more strings than Boolean.valueOf() does.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149960 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:11 +00:00
Andrew Bayer
11124da4ba SQOOP-40. SqoopOptions should use annotations to bind fields to properties.
Added @StoredAsProperty annotation.
Modified SqoopOptions to use this for all scalar fields.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149959 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:11 +00:00
Andrew Bayer
7f53d52f4f SQOOP-69. Improve data accessible to ManagerFactory.accept().
Added ManagerFactory.accept(SessionData) API to allow ManagerFactory
to inspect the chosen SqoopTool.
Deprecated ManagerFactory.accept(SqoopOptions).

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149958 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:11 +00:00
Andrew Bayer
402a2cd61a SQOOP-68. Delimiters in strings are not escaped properly.
Use escape character to protect delimiters if enclosing character is
unavailable.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149957 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:10 +00:00
Andrew Bayer
16a4d0f002 SQOOP-66. Jar for ConnManager class is not included in job payload.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149956 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:10 +00:00
Andrew Bayer
ac43ae8d76 SQOOP-65. Refactor some utilities out of MySQLExportMapper.
getLocalWorkPath() moved into c.c.s.util.TaskId.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149955 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:10 +00:00
Andrew Bayer
1749a84f68 SQOOP-64. Refactor named FIFO creation into standalone utility.
Add com.cloudera.sqoop.io.NamedFifo class to represent named FIFO objects.
Added TestNamedFifo as unit test.
MySQLExportMapper now uses this utility.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149954 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:10 +00:00
Andrew Bayer
6a9eef446b SQOOP-63. JobBase classes unnecessarily create ConnManagers.
ImportJobContext and ExportJobContext now contain references to the
already-instantiated ConnManager. JobBase subclasses should no
longer use a ConnFactory, but should use the existing ConnManager.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149953 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:09 +00:00
Andrew Bayer
692ee04f14 SQOOP-59. 'sqoop eval' should support DDL/DML operations.
Added --update argument to sqoop-eval tool, which runs
the user's statement in update mode rather than select mode.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149952 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:09 +00:00
Andrew Bayer
e3fb49775d SQOOP-56. Improve parameterization of ManagerCompatTestCase.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149951 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:09 +00:00
Andrew Bayer
87d0dab003 SQOOP-52. Stop TestHBaseImport from timing out.
Restart MiniHBaseCluster between each test to prevent triggering
livelock at end of test battery.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149950 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:08 +00:00
Andrew Bayer
bf92ba41dd SQOOP-55. BaseSqoopTestCase.createTableWithColTypes() calls close() twice.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149949 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:08 +00:00
Andrew Bayer
7b6163851d SQOOP-54. Allow per-manager configuration of isolation level for metadata queries.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149948 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:08 +00:00
Andrew Bayer
777fef13e7 SQOOP-45. If compilation dir is unspecified, use a nonce directory.
.class and .jar generation occurs in a per-process anonymous
directory. Generation of .java files now occurs in the bin directory;
.java files are moved to the src directory after compilation.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149947 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:08 +00:00
Andrew Bayer
15c1ba7241 SQOOP-53. Build test jar and publish to maven.
Sqoop now builds a sqoop-test-(version).jar file.
Added "jar-all" target to build.xml to build all artifacts.
Default ant target switched to "jar-all".
mvn-install, mvn-deploy updated deploy to deploy all main, test, and shim jars.
Added source jar artifacts to maven installation/deploy process.
Fixed build dependency bugs in generated poms.
Added Sqoop pom template; generating from ivy.xml was over-broad.
write-version-info.sh generates correct directory hierarchy in build/src/.
bin/sqoop and bin/configure-sqoop tweaked to account for multiple sqoop-* jars
in the $SQOOP_HOME directory.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149946 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:07 +00:00
Andrew Bayer
a7358e3585 SQOOP-6. Job completion percentage is inaccurate.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149945 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:07 +00:00
Andrew Bayer
6efcec0da2 SQOOP-41. Add support for incremental imports.
Modify ImportTool, SessionTool, to support incremental imports.
Add TestIncrementalImport to unit test incremental imports.
SqoopOptions now implements Cloneable.
SQOOP-44. Bugfix in ClassWriter: fix NPE if the case of column names specified
with --columns do not match the case reported by the database.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149944 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:07 +00:00
Andrew Bayer
41cee93c40 SQOOP-35. Bundle job dependencies via DistributedCache.
Sqoop, shim, JDBC driver, and $SQOOP_HOME/lib/*.jar are now all
placed in the DistributedCache for each job.
Removes generation of the 'lib/' subdir in generated jar files.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149943 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:06 +00:00
Andrew Bayer
09d4d46d34 SQOOP-46. Sqoop 'verbose' mode shows too much IPC chatter.
Adds a parent logger for the 'com.cloudera.sqoop' package.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149942 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:06 +00:00
Andrew Bayer
1a5f52f063 SQOOP-24. Copy o.a.h.mapreduce.lib.db classes into Sqoop.
Copy DataDrivenDBInputFormat, its dependencies, and tests into Sqoop
in the com.cloudera.sqoop.mapreduce.db package.
Reformatted code to match Sqoop style guide and eliminate findbugs warnings.
Changed existing Sqoop code to use this implementation rather than Hadoop's.
Modified TestDataDrivenDBInputFormat to use mem-only hsqldb to prevent
Hudson race condition.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149941 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:05 +00:00
Andrew Bayer
06b94587af SQOOP-39. (SIP-6) Session Management API.
Added SessionStorage API.
Added SessonData API.
Added SessionStorageFactory.
Added SessionTool for create/delete/execute/show/list operations on sessions.
SqoopOptions can read and write all "sticky" state to a Properties instance.
Added HsqldbSessionStorage to implement SessionStorage API.
Added AutoHsqldbStorage to auto-instantiate a local metastore for the user.
Added client metastore connection parameters to sqoop-site.xml.
Added metastore tool (MetastoreTool).
Added HsqldbMetaStore for standalone metastore instance.
Added metastore properties to sqoop-default.xml.
Added TestSessions unit tests of session API.
Renamed conf/sqoop-default.xml to conf/sqoop-site-template.xml.
Added conf/.gitignore for sqoop-site.xml.

Tests run:

Tested all metastore operations on an import session.
Tested that ~/.sqoop/-based storage will be auto-created by the metastore.
Tested that 'sqoop metastore'-based metastores can be connected to
by external clients.
Tested that 'sqoop metastore --shutdown' will gracefully shut down a running
metastore instance.
Tested that passwords are not stored in the metastore by default, and the
user is prompted for the password when executing that saved session.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149940 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:05 +00:00
Andrew Bayer
0f35d54f21 SQOOP-15. Do not assume that Job.getCounters() returns non-null.
If jobs are already retired, display a useful message on how to
enable the completed job store and suppress performance counter
usage, rather than crashing with a NullPointerException.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149939 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:05 +00:00
Andrew Bayer
0fcbcd759a SQOOP-10. Provide a useful error message when a Java compiler cannot be found.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149938 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:04 +00:00
Andrew Bayer
f56de22b7a SQOOP-23. Add accepted SIPs to the repository.
Existing accepted SIP documents added to the src/docs/sip/ directory.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149937 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:04 +00:00
Andrew Bayer
f4eba3dd8c SQOOP-32. sqoop-export documentation in SqoopUserGuide refers to 'import-args'.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149936 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:04 +00:00
Andrew Bayer
7e0ccb4008 SQOOP-14. Allow Sqoop to import data into HBase.
Added FieldMappable and FieldMapProcessor interfaces.
Added ProcessingException class.
Added NullOutputCommitter class.
SqoopRecord now has delegate() method which calls a FieldMapProcessor.
ClassWriter now generates getFieldMap() method for SqoopRecords.
Added HBasePutProcessor to transform SqoopRecords into Put commands,
implementing FieldMapProcessor.
Added PutTransformer interface class and ToStringPutTransformer implementation.
Added DelegatingOutputFormat that uses a FieldMapProcessor.
Added HBase deps to build.xml via hbase.home property.
Added HBase, ZooKeeper to the dependency net added by configure-sqoop.
Added HBaseImportJob, HBaseImportMapper.
ImportJobBase now has jobSetup() step executed just before job submission.
ImportJobContext now holds a reference to the ConnManager.
DataDrivenImportJob retrieves ConnManager from ImportJobContext, it no longer
creates a new one.
Added HBase table import configuration parameters to SqoopOptions, ImportTool.
SqlManager.importQuery() needs to set ConnManager in ImportJobContext.
Added HBase import user documentation.
Described PutTransformer API in developer docs.
Added HBase unit tests.
Added ANT_ARGUMENTS env variable to Hudson test scripts to allow freeform parameters.
Added HBASE_HOME and ZOOKEEPER_HOME variables to hudson scripts.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149935 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:03 +00:00
Andrew Bayer
7e473cafa0 SQOOP-22. Sqoop date tests are too permissive.
Ensure that tests involving dates/times use proper ANSI SQL Date/Time escape
formatting (yyyy-mm-dd or hh:mm:ss). After Java 1.6u17, dates of the form
yyyy-m-dd or hhⓂ️ss are not parsed by java.sql.Date/Time and throw
IllegalArgumentException.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149934 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:03 +00:00
Andrew Bayer
6ea1665716 SQOOP-4. Add update-mode export process.
Add --update-key argument to sqoop-export tool.
Refactor ExportOutputFormat into AsyncSqlOutputFormat.
Added UpdateOutputFormat.
ClassWriter now allows alternate serialization order in database write() method.
SqoopOptions holds column list for alternate db serialization order.
Added TestExportUpdate unit test battery.
AsyncSqlRecordWriter now allows "batch" execution mode.
Updated documentation for export updates.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149933 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:02 +00:00
Andrew Bayer
b0cd632b58 SQOOP-3. Add ability to import arbitrary queries.
Add ConnManager.importQuery() API.
Change BaseSqoopTool.DEBUG_SQL_CMD_ARG to SQL_QUERY_ARG to reflect
the broader applicability of the argument.
Change 'debugSqlCmd' member of SqoopOptions to 'sqlQuery'.
CompilationManager now sets jar name based on specified class name.
Add tests for query support.
Add documentation for query-based import.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149932 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:02 +00:00
Andrew Bayer
d215cbac6e SQOOP-2. MySQLExportMapper does not send username.
If specified, pass --user argument to mysqlimport in MySQLExportMapper.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149930 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:01 +00:00
Andrew Bayer
c838d29b79 SequenceFile detection should ignore directories.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149928 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:00 +00:00
Andrew Bayer
572dc05009 OracleManager should limit getColNamesQuery() results.
http://github.com/cloudera/sqoop/issues#issue/6

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149927 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:00 +00:00
Andrew Bayer
2308b6ec4e Allow explicitly-set git hash in version info.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149926 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:00 +00:00
Andrew Bayer
f1faa0e375 Provide maven install/deploy tasks.
Maven pushes sqoop jar and shim jars.
Renamed shim jar files to conform to maven artifact-version naming.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149925 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:04:00 +00:00
Andrew Bayer
e75b1fe94f Add release audit capability.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149923 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:59 +00:00
Andrew Bayer
3edcf20d33 Add webdocs target to build release docs website.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149922 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:59 +00:00
Andrew Bayer
359d424475 'conf' directory added to classpath
bin/configure-sqoop now puts the 'conf' directory on the classpath.
Users can override this by setting $SQOOP_CONF_DIR.
Added src/perftest/ExtConnFactoryTest and ExtFactory, that demonstrates
the configuration is being correctly read.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149921 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:58 +00:00
Andrew Bayer
ca0dec83e7 Adjust regex used to recognize CDH3 in ShimLoader.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149920 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:58 +00:00
Andrew Bayer
b3023e2bf9 Hive import can use in-process Hive instance.
If the Hive CliDriver is present on the classpath, Sqoop will
call it directly in the same JVM, rather than invoke a separate
JVM instance for Hive.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149916 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:57 +00:00
Andrew Bayer
1d80c4ded7 Minor manpage fixes.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149915 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:57 +00:00
Andrew Bayer
1f9ca86a2f Add documentation for --append and --target-dir.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149914 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:57 +00:00
Andrew Bayer
568a827a1c Append mode import and target-dir output
Signed-off-by: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149913 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:56 +00:00
Andrew Bayer
7ecb3ee286 Remove dependency on installed Hadoop for script generation.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149912 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:56 +00:00
Andrew Bayer
7b37789b4f Use portable shell code to follow symlinks.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149911 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:56 +00:00
Andrew Bayer
74d034cf36 Fix documentation format for use with asciidoc 8.5.
Comment blocks (for the license header) must appear at the end
of a man page asciidoc file; they cannot appear near the top.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149910 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:55 +00:00
Andrew Bayer
383e46201c Eliminate checkstyle warnings.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149909 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:55 +00:00
Andrew Bayer
3ab9ebd354 SIP-4. Refactor classes for public API 1.0.0.
Moves TaskId to com.cloudera.sqoop.util.
Add com.cloudera.sqoop.lib.DelimiterSet.
Rewrite FieldFormatter, RecordParser, to use DelimiterSet.
Add generated class version id to SqoopRecord.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149907 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:54 +00:00
Andrew Bayer
42875119dd Move org.apache.hadoop.sqoop to com.cloudera.sqoop
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149906 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:52 +00:00
Andrew Bayer
9f2d744a24 Add Hudson test scripts.
Add Hadoop 0.21 build support. -Dhadoop.dist now accepts 'apache21'.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149905 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:51 +00:00
Andrew Bayer
0abcdb0af9 Add new manual pages for all Sqoop tools.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149903 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:50 +00:00
Andrew Bayer
faabc51a90 Rewrite documentation for updated Sqoop API
Add documentation for all SqoopTool implementations.
Add database compatibility notes.
Separate user guide from the develpment guide.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149902 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:50 +00:00
Andrew Bayer
15f5375d76 Add "version" tool.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149901 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:49 +00:00
Andrew Bayer
20cd34e90c Fix additional checkstyle issues.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149900 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:49 +00:00
Andrew Bayer
0b96b5f1c3 Add checkstyle to build process.
Fix the overwhelming majority of existing violations.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149899 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:47 +00:00
Andrew Bayer
e926bf1fe0 New ExportOutputFormat with improved JDBC performance.
Added ExportOutputFormat.
JdbcExportJob uses ExportOutputFormat instead of DBOutputFormat.
SqoopRecord now supports write() to multi-row INSERT statement, clone().
ClassWriter generates methods to fulfill expanded SqoopRecord contract.
Added Jdbc MySQL tests to test multi-row statements.
BlobRef, ClobRef classes now support Cloneable interface.
Added ExportStressTest.
Added Oracle-specific ExportOutputFormat subclass.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149898 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:46 +00:00
Andrew Bayer
1eb4226230 SIP-3. File format for large object (LOB) storage.
Introduce LobFile format for storing large objects.
Implemented LobFile.Reader, LobFile.Writer classes.
Added a performance test of LobFile reading/writing speed.
Build system: fix cobertura build deps.
Remove unused utility classes from o.a.h.s.io.
Use LobFile for external storage in {B,C}lobRef.
Added LobReaderCache.
Converted BlobRef to read from LobFiles (through LobReaderCache).
LargeObjectLoader writes to LobFiles.
Common code from BlobRef and ClobRef factored out into LobRef abstract
base class.
Updated Test{B,C}lobRef and TestLargeObjectLoader for new external LOB storage.
Updated *ImportMappers to close LargeObjectLoaders when they're done.
Added performance tests to build.
Added script to run perf tests; factored out common logic into config script.
Fixed ivy dependency resolution to use multiple configuration inheritance.
Added LobFileStressTest.
Added readme with instructions to src/perftest directory.
Added CodecMap that abstracts compression codec classes to names.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149897 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:46 +00:00
Andrew Bayer
04fb6ee44f ShimLoader accepts 0.22.0-SNAPSHOT signature.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149896 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:46 +00:00
Andrew Bayer
b4d59da671 Fix dead store in SqoopOptions.setTmpDir().
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149895 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:46 +00:00
Andrew Bayer
b7a3f47222 SIP-1. Refactor operations into distinct tools.
Introduced SqoopTool interface.
Added cli package for option parsing:
includes RelatedOptions, ToolOptions, SqoopParser.
'Sqoop' is now a wrapper that invokes a SqoopTool.
Added setter methods for all fields of SqoopOptions.
Added commons-cli 1.2 build dependency.
Argument parsing is removed from SqoopOptions and pushed into individual tools.
Added HelpTool to display basic usage information for Sqoop and
usage for subcommands.
Added ImportTool to perform imports.
Added EvalSqlTool.
Added ExportTool.
Added ImportAllTablesTool.
Added ListDatabasesTool, ListTablesTool.
Added CodeGenTool.
Added CreateHiveTableTool.
Small changes to orm.ClassWriter.
Auto-generate bin scripts for all tools; include in release package.
Allow user to provide build properties in a file.
Shim use of GenericOptionsParser to allow cross-compilation.
Fix Hive testcases to pass under CDH.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149894 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:45 +00:00
Andrew Bayer
c37e2d0568 Set Oracle session timezone based on property.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149893 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:45 +00:00
Andrew Bayer
acba9c1aea Set default Oracle tz to GMT (safe default).
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149892 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:44 +00:00
Andrew Bayer
7be68f8418 Oracle connection pool caches closed connections
OracleConnManager now nullifies references to connection instances
after returning them to the connection cache or closing them.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149891 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:44 +00:00
Andrew Bayer
6ea36a07ad Support multiple MySQL export tasks per job/node
MySQLExportMapper now uses a task attempt-specific local directory to
store its FIFO objects.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149890 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:44 +00:00
Andrew Bayer
13e32e71cf Add better exception logging to BaseSqoopTestCase
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149889 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:44 +00:00
Andrew Bayer
466c921b15 Export jobs should display progress.
From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149887 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:43 +00:00