├── CHANGELOG.txt ├── COMPILING.txt ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── README.txt ├── bin ├── .gitignore ├── configure-sqoop ├── configure-sqoop.cmd ├── sqoop ├── sqoop.cmd ├── start-metastore.sh └── stop-metastore.sh ├── build.xml ├── cdh.build.properties ├── cloudera-pom.xml ├── cloudera ├── CHANGES.cloudera.txt ├── apply-patches ├── build.properties ├── cdh_version.properties ├── maven-packaging │ ├── pom.xml │ ├── sqoop │ │ └── pom.xml │ └── templates │ │ ├── build.template │ │ └── libraries.template └── patches │ ├── 0001-CLOUDERA-BUILD.-Backports-for-CDH-build.patch │ ├── 0002-CLOUDERA-BUILD.-Not-removing-cdh.build.properties-fi.patch │ ├── 0003-CLOUDERA-BUILD.-Switching-to-target-JDK-1.7.patch │ ├── 0004-CLOUDERA-BUILD.-Setting-JDK-target-to-1.6.patch │ ├── 0005-CLODUERA-BUILD.-Changing-maven-repository-URL.patch │ ├── 0006-CLOUDERA-BUILD.-Moving-hcatalog-group-ID.patch │ ├── 0007-CLOUDERA-BUILD.-Fix-hcatalog-dependency-detection.patch │ ├── 0008-CLOUDERA-BUILD.-Fix-hive-catalog-core-artifactId-in-.patch │ ├── 0009-CLOUDERA-BUILD.-Changing-default-value-of-sqoop.jobb.patch │ ├── 0010-Preparing-for-CDH5.2.0-development.patch │ ├── 0011-CLOUDERA-BUILD.-Sqoop-1.4.5-rebase.patch │ ├── 0012-Preparing-for-release-1.4.6-development.patch │ ├── 0013-SQOOP-1400-Failed-to-import-data-using-mysql-connect.patch │ ├── 0014-SQOOP-1368-the-configuration-properties-are-reset-in.patch │ ├── 0015-SQOOP-1401-Fix-checkstyle-violations-for-ClassWriter.patch │ ├── 0016-SQOOP-1408-Document-SQL-Server-s-non-resilient-arg.patch │ ├── 0017-SQOOP-1412-Text-splitter-should-also-consider-NCHAR-.patch │ ├── 0018-SQOOP-1405-Add-arg-to-enable-SQL-Server-identity-ins.patch │ ├── 0019-SQOOP-1423-hcatalog-export-with-map-column-java-fail.patch │ ├── 0020-SQOOP-1411-The-number-of-tasks-is-not-set-properly-i.patch │ ├── 0021-SQOOP-1422-Integration-tests-for-Oracle-connector-fa.patch │ ├── 0022-SQOOP-1421-Automated-patch-script.patch │ ├── 0023-SQOOP-1429-Fix-native-characters-usage-for-SqlServer.patch │ ├── 0024-SQOOP-1390-Import-data-to-HDFS-as-a-set-of-Parquet-f.patch │ ├── 0025-SQOOP-1393-Import-data-from-database-to-Hive-as-Parq.patch │ ├── 0026-SQOOP-1330-Ignore-blank-newlines-in-managers.d-prope.patch │ ├── 0027-SQOOP-1474-Fix-usage-of-StringUtils.repeat-method.patch │ ├── 0028-SQOOP-1309-Expand-the-Sqoop-to-support-CUBRID-databa.patch │ ├── 0029-SQOOP-1392-Create-the-temporary-directory-inside-tas.patch │ ├── 0030-SQOOP-1489-Propagate-cubrid-properties-to-the-test-V.patch │ ├── 0031-SQOOP-1433-Oracle-direct-connector-fails-with-Oracle.patch │ ├── 0032-SQOOP-1395-Potential-naming-conflict-in-Avro-schema.patch │ ├── 0033-SQOOP-1491-Remove-SqoopAvroRecord.patch │ ├── 0034-SQOOP-1494-Fix-generateArvoSchema-in-DataDrivenImpor.patch │ ├── 0035-SQOOP-1492-Move-Avro-and-GenericRecord-related-commo.patch │ ├── 0036-SQOOP-1490-Connectors-documentation-doesn-t-build-on.patch │ ├── 0037-SQOOP-1394-Export-data-from-HDFS-back-to-an-RDMS.patch │ ├── 0038-SQOOP-1272-Support-importing-mainframe-sequential-da.patch │ ├── 0039-SQOOP-1508-Add-warning-when-using-unsupported-compre.patch │ ├── 0040-SQOOP-1519-Enable-HCat-HBase-Accumulo-operations-wit.patch │ ├── 0041-SQOOP-1387-Incorrect-permissions-on-manager.d-direct.patch │ ├── 0042-SQOOP-1520-The-table-is-null-when-using-import-into-.patch │ ├── 0043-SQOOP-1524-Error-to-import-into-hive-as-textfile-on-.patch │ ├── 0044-CLOUDERA-BUILD.-Add-kite-CDH-version.patch │ ├── 0045-Preparing-for-CDH5.3.0-development.patch │ ├── 0046-Preparing-for-CDH5.4.0-development.patch │ ├── 0047-SQOOP-1539-Empty-partition-keys-and-values-in-multip.patch │ ├── 0048-SQOOP-1540-Accumulo-unit-tests-fail-with-Accumulo-1..patch │ ├── 0049-SQOOP-1437-Text-reserved-word-in-compliation.patch │ ├── 0050-SQOOP-1471-Use-Hadoop-CredentialProvider-API-to-ency.patch │ ├── 0051-SQOOP-1472-Use-Properties.load-method-to-load-proper.patch │ ├── 0052-SQOOP-1403-Upsert-export-for-SQL-Server.patch │ ├── 0053-SQOOP-1617-MySQL-fetch-size-behavior-changed-with-SQ.patch │ ├── 0054-SQOOP-1663-OraOop-test-cases-are-not-logging-any-out.patch │ ├── 0055-SQOOP-1682-Test-cases-LobAvroImportTest-are-failing.patch │ ├── 0056-SQOOP-1685-HCatalog-integration-is-not-working-on-JD.patch │ ├── 0057-SQOOP-1632-Add-support-for-index-organized-tables-to.patch │ ├── 0058-SQOOP-1684-Use-pre-existing-HBase-delegation-token.patch │ ├── 0059-SQOOP-1693-Upgrade-Kite-SDK-to-0.17.patch │ ├── 0060-CLOUDERA-BUILD.-CDH-20842-Partial-hadoop-installatio.patch │ ├── 0061-SQOOP-1391-Compression-codec-handling.patch │ ├── 0062-SQOOP-1764-Numeric-Overflow-when-getting-extent-map.patch │ ├── 0063-SQOOP-1759-TestIncrementalImport-fails-with-NPE-on-W.patch │ ├── 0064-SQOOP-1567-Auto-Configure-JTDS-Driver-From-JDBCUrl.patch │ ├── 0065-SQOOP-1125-Out-of-memory-errors-when-number-of-recor.patch │ ├── 0066-SQOOP-1622-Copying-from-staging-table-should-be-in-s.patch │ ├── 0067-SQOOP-1779-Add-support-for-hive-database-when-import.patch │ ├── 0068-SQOOP-1627-Fix-Hadoop100-and-Hadoop20-profile.patch │ ├── 0069-SQOOP-1631-Drop-confusing-use-of-clean-staging-table.patch │ ├── 0070-SQOOP-1890-Properly-escape-table-name-in-generated-q.patch │ ├── 0071-SQOOP-1970-Add-warning-about-trailing-whitespace-cha.patch │ ├── 0072-SQOOP-1826-NPE-in-ImportTool.lastModifiedMerge-durin.patch │ ├── 0073-SQOOP-2017-Print-out-loaded-columns-and-their-type-i.patch │ ├── 0074-SQOOP-2024-Hive-import-doesn-t-remove-target-directo.patch │ ├── 0075-SQOOP-2055-Run-only-one-map-task-attempt-during-expo.patch │ ├── 0076-CLOUDERA-BUILD.-Adding-repositories-for-calcite-depe.patch │ ├── 0077-SQOOP-2057-Skip-delegation-token-generation-flag-dur.patch │ ├── 0078-CLOUDERA-BUILD.-Switching-source-target-to-JDK7.patch │ ├── 0079-SQOOP-2128-HBaseImportJob-should-close-connection-fr.patch │ ├── 0080-SQOOP-2130-BaseSqoopTestCase-should-use-manager.esca.patch │ ├── 0081-CLOUDERA-BUILD.-Moving-Accumulo-to-1.6.2.patch │ ├── 0082-SQOOP-2132-Sqoop2-Upgrade-configs-with-name-conflict.patch │ ├── 0083-SQOOP-2132-Remove-test-TestMainframeImportTool.testP.patch │ ├── 0084-SQOOP-2136-Test-case-SqlServerUpsertOutputFormatTest.patch │ ├── 0085-SQOOP-2137-Sqoop-tests-and-documentation-refer-to-as.patch │ ├── 0086-SQOOP-2145-Default-Hive-home-is-not-being-set-proper.patch │ ├── 0087-SQOOP-2170-MySQL-specific-tests-are-not-properly-cle.patch │ ├── 0088-CLOUDERA-BUILD.-Adding-conjars-repository-for-some-o.patch │ ├── 0089-CLOUDERA-BUILD.-Adding-conjars-repository-for-some-o.patch │ ├── 0090-Preparing-for-CDH5.4.1.patch │ ├── 0091-CLOUDERA-BUILD-simplifying-ivy.patch │ ├── 0092-SQOOP-2257-Parquet-target-for-imports-with-Hive-over.patch │ ├── 0093-SQOOP-2282-Add-validation-check-for-hive-import-and-.patch │ ├── 0094-SQOOP-2281-Set-overwrite-on-kite-dataset.patch │ ├── 0095-SQOOP-2283-Support-usage-of-exec-and-password-alias.patch │ ├── 0096-SQOOP-2286-Ensure-Sqoop-generates-valid-avro-column-.patch │ ├── 0097-SQOOP-2343-AsyncSqlRecordWriter-stucks-if-any-except.patch │ ├── 0098-Updating-Maven-version-to-5.4.2-SNAPSHOT.patch │ ├── 0099-Updating-Maven-version-to-5.4.3-SNAPSHOT.patch │ ├── 0100-Branch-for-CDH5.4.3.patch │ └── 0101-Branch-for-CDH5.4.4.patch ├── conf ├── .gitignore ├── DKsqoop使用说明.txt ├── es-site.xml ├── oraoop-site-template.xml ├── sqoop-env-template.cmd ├── sqoop-env-template.sh ├── sqoop-env.sh └── sqoop-site-template.xml ├── ivy.xml ├── ivy ├── ivysettings.xml ├── libraries.properties ├── sqoop-test.xml └── sqoop.xml ├── lib ├── .gitignore ├── ant-contrib-1.0b3.jar ├── ant-eclipse-1.0-jvm1.2.jar ├── elasticsearch-hadoop-5.6.8.jar ├── gson-2.8.0.jar ├── mysql-connector-java.jar ├── oracle-connector-java.jar └── sqljdbc4.jar ├── pom-old.xml ├── sqoop-patch-review.py ├── src ├── .DS_Store ├── docs │ ├── .gitignore │ ├── Makefile │ ├── dev │ │ ├── SqoopDevGuide.txt │ │ ├── api-reference.txt │ │ ├── compiling.txt │ │ ├── intro.txt │ │ └── preface.txt │ ├── man │ │ ├── codegen-args.txt │ │ ├── common-args.txt │ │ ├── database-independent-args.txt │ │ ├── hbase-args.txt │ │ ├── hive-args.txt │ │ ├── import-args.txt │ │ ├── import-common-args.txt │ │ ├── input-args.txt │ │ ├── mainframe-connection-args.txt │ │ ├── output-args.txt │ │ ├── sqoop-codegen.txt │ │ ├── sqoop-codegen.xml │ │ ├── sqoop-create-hive-table.txt │ │ ├── sqoop-eval.txt │ │ ├── sqoop-export.txt │ │ ├── sqoop-help.txt │ │ ├── sqoop-import-all-tables.txt │ │ ├── sqoop-import-mainframe.txt │ │ ├── sqoop-import.txt │ │ ├── sqoop-job.txt │ │ ├── sqoop-list-databases.txt │ │ ├── sqoop-list-tables.txt │ │ ├── sqoop-merge.txt │ │ ├── sqoop-metastore.txt │ │ ├── sqoop-version.txt │ │ └── sqoop.txt │ ├── sip │ │ ├── INDEX.txt │ │ ├── README.txt │ │ ├── sip-1.txt │ │ ├── sip-2.txt │ │ ├── sip-3.txt │ │ ├── sip-4.txt │ │ └── sip-6.txt │ ├── user │ │ ├── SqoopUserGuide.txt │ │ ├── accumulo-args.txt │ │ ├── accumulo.txt │ │ ├── basics.txt │ │ ├── codegen-args.txt │ │ ├── codegen-purpose.txt │ │ ├── codegen.txt │ │ ├── common-args.txt │ │ ├── compatibility.txt │ │ ├── connecting-to-mainframe.txt │ │ ├── connecting.txt │ │ ├── connectors.txt │ │ ├── controlling-input-format.txt │ │ ├── controlling-output-format.txt │ │ ├── create-hive-table-purpose.txt │ │ ├── create-hive-table.txt │ │ ├── distributed-cache.txt │ │ ├── eval-purpose.txt │ │ ├── eval.txt │ │ ├── export-purpose.txt │ │ ├── export.txt │ │ ├── hbase-args.txt │ │ ├── hbase.txt │ │ ├── hcatalog.txt │ │ ├── help.txt │ │ ├── hive-args.txt │ │ ├── hive-notes.txt │ │ ├── hive.txt │ │ ├── import-all-tables-purpose.txt │ │ ├── import-all-tables.txt │ │ ├── import-mainframe-purpose.txt │ │ ├── import-mainframe.txt │ │ ├── import-purpose.txt │ │ ├── import.txt │ │ ├── input-args.txt │ │ ├── input-formatting-args.txt │ │ ├── input-formatting.txt │ │ ├── intro.txt │ │ ├── job-purpose.txt │ │ ├── list-databases.txt │ │ ├── list-tables.txt │ │ ├── mainframe-common-args.txt │ │ ├── merge-purpose.txt │ │ ├── metastore-purpose.txt │ │ ├── output-args.txt │ │ ├── output-formatting-args.txt │ │ ├── output-formatting.txt │ │ ├── preface.txt │ │ ├── saved-jobs.txt │ │ ├── support.txt │ │ ├── tools.txt │ │ ├── troubleshooting.txt │ │ ├── validation-args.txt │ │ ├── validation.txt │ │ └── version.txt │ └── web │ │ ├── breadcrumbs.xsl │ │ ├── docbook.css │ │ ├── footer.xsl │ │ ├── header.xsl │ │ ├── html.xsl │ │ ├── images │ │ ├── README │ │ ├── callouts │ │ │ ├── 1.png │ │ │ ├── 10.png │ │ │ ├── 11.png │ │ │ ├── 12.png │ │ │ ├── 13.png │ │ │ ├── 14.png │ │ │ ├── 15.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ ├── 4.png │ │ │ ├── 5.png │ │ │ ├── 6.png │ │ │ ├── 7.png │ │ │ ├── 8.png │ │ │ └── 9.png │ │ ├── caution.png │ │ ├── example.png │ │ ├── home.png │ │ ├── important.png │ │ ├── next.png │ │ ├── note.png │ │ ├── prev.png │ │ ├── tip.png │ │ ├── up.png │ │ └── warning.png │ │ └── index.txt ├── java │ ├── .DS_Store │ ├── com │ │ └── cloudera │ │ │ └── sqoop │ │ │ ├── ConnFactory.java │ │ │ ├── Sqoop.java │ │ │ ├── SqoopOptions.java │ │ │ ├── cli │ │ │ ├── RelatedOptions.java │ │ │ ├── SqoopParser.java │ │ │ └── ToolOptions.java │ │ │ ├── config │ │ │ ├── ConfigurationConstants.java │ │ │ └── ConfigurationHelper.java │ │ │ ├── hbase │ │ │ ├── HBasePutProcessor.java │ │ │ ├── HBaseUtil.java │ │ │ ├── PutTransformer.java │ │ │ └── ToStringPutTransformer.java │ │ │ ├── hive │ │ │ ├── HiveImport.java │ │ │ ├── HiveTypes.java │ │ │ └── TableDefWriter.java │ │ │ ├── io │ │ │ ├── CodecMap.java │ │ │ ├── FixedLengthInputStream.java │ │ │ ├── LobFile.java │ │ │ ├── LobReaderCache.java │ │ │ ├── NamedFifo.java │ │ │ ├── SplittableBufferedWriter.java │ │ │ ├── SplittingOutputStream.java │ │ │ └── UnsupportedCodecException.java │ │ │ ├── lib │ │ │ ├── BigDecimalSerializer.java │ │ │ ├── BlobRef.java │ │ │ ├── BooleanParser.java │ │ │ ├── ClobRef.java │ │ │ ├── DelimiterSet.java │ │ │ ├── FieldFormatter.java │ │ │ ├── FieldMapProcessor.java │ │ │ ├── FieldMappable.java │ │ │ ├── JdbcWritableBridge.java │ │ │ ├── LargeObjectLoader.java │ │ │ ├── LobRef.java │ │ │ ├── LobSerializer.java │ │ │ ├── ProcessingException.java │ │ │ ├── RecordParser.java │ │ │ └── SqoopRecord.java │ │ │ ├── manager │ │ │ ├── CatalogQueryManager.java │ │ │ ├── ConnManager.java │ │ │ ├── Db2Manager.java │ │ │ ├── DefaultManagerFactory.java │ │ │ ├── DirectMySQLManager.java │ │ │ ├── DirectPostgresqlManager.java │ │ │ ├── ExportJobContext.java │ │ │ ├── GenericJdbcManager.java │ │ │ ├── HsqldbManager.java │ │ │ ├── ImportJobContext.java │ │ │ ├── InformationSchemaManager.java │ │ │ ├── ManagerFactory.java │ │ │ ├── MySQLManager.java │ │ │ ├── MySQLUtils.java │ │ │ ├── OracleManager.java │ │ │ ├── PostgresqlManager.java │ │ │ ├── SQLServerManager.java │ │ │ └── SqlManager.java │ │ │ ├── mapreduce │ │ │ ├── AsyncSqlOutputFormat.java │ │ │ ├── AsyncSqlRecordWriter.java │ │ │ ├── AutoProgressMapper.java │ │ │ ├── AvroExportMapper.java │ │ │ ├── AvroImportMapper.java │ │ │ ├── AvroInputFormat.java │ │ │ ├── AvroJob.java │ │ │ ├── AvroOutputFormat.java │ │ │ ├── AvroRecordReader.java │ │ │ ├── CombineShimRecordReader.java │ │ │ ├── DataDrivenImportJob.java │ │ │ ├── DelegatingOutputFormat.java │ │ │ ├── ExportBatchOutputFormat.java │ │ │ ├── ExportInputFormat.java │ │ │ ├── ExportJobBase.java │ │ │ ├── ExportOutputFormat.java │ │ │ ├── HBaseImportJob.java │ │ │ ├── HBaseImportMapper.java │ │ │ ├── ImportJobBase.java │ │ │ ├── JdbcExportJob.java │ │ │ ├── JdbcUpdateExportJob.java │ │ │ ├── JdbcUpsertExportJob.java │ │ │ ├── JobBase.java │ │ │ ├── MergeJob.java │ │ │ ├── MergeMapperBase.java │ │ │ ├── MergeRecord.java │ │ │ ├── MergeRecordMapper.java │ │ │ ├── MergeReducer.java │ │ │ ├── MergeTextMapper.java │ │ │ ├── MySQLDumpImportJob.java │ │ │ ├── MySQLDumpInputFormat.java │ │ │ ├── MySQLDumpMapper.java │ │ │ ├── MySQLExportJob.java │ │ │ ├── MySQLExportMapper.java │ │ │ ├── MySQLRecordExportMapper.java │ │ │ ├── MySQLTextExportMapper.java │ │ │ ├── NullOutputCommitter.java │ │ │ ├── OracleExportOutputFormat.java │ │ │ ├── OracleUpsertOutputFormat.java │ │ │ ├── RawKeyTextOutputFormat.java │ │ │ ├── SQLServerExportOutputFormat.java │ │ │ ├── SequenceFileExportMapper.java │ │ │ ├── SequenceFileImportMapper.java │ │ │ ├── TextExportMapper.java │ │ │ ├── TextImportMapper.java │ │ │ ├── UpdateOutputFormat.java │ │ │ └── db │ │ │ │ ├── BigDecimalSplitter.java │ │ │ │ ├── BooleanSplitter.java │ │ │ │ ├── DBConfiguration.java │ │ │ │ ├── DBInputFormat.java │ │ │ │ ├── DBOutputFormat.java │ │ │ │ ├── DBRecordReader.java │ │ │ │ ├── DBSplitter.java │ │ │ │ ├── DataDrivenDBInputFormat.java │ │ │ │ ├── DataDrivenDBRecordReader.java │ │ │ │ ├── DateSplitter.java │ │ │ │ ├── FloatSplitter.java │ │ │ │ ├── IntegerSplitter.java │ │ │ │ ├── OracleDBRecordReader.java │ │ │ │ ├── OracleDataDrivenDBInputFormat.java │ │ │ │ ├── OracleDataDrivenDBRecordReader.java │ │ │ │ ├── OracleDateSplitter.java │ │ │ │ └── TextSplitter.java │ │ │ ├── metastore │ │ │ ├── JobData.java │ │ │ ├── JobStorage.java │ │ │ ├── JobStorageFactory.java │ │ │ └── hsqldb │ │ │ │ ├── AutoHsqldbStorage.java │ │ │ │ ├── HsqldbJobStorage.java │ │ │ │ └── HsqldbMetaStore.java │ │ │ ├── orm │ │ │ ├── AvroSchemaGenerator.java │ │ │ ├── ClassWriter.java │ │ │ ├── CompilationManager.java │ │ │ └── TableClassName.java │ │ │ ├── tool │ │ │ ├── BaseSqoopTool.java │ │ │ ├── CodeGenTool.java │ │ │ ├── CreateHiveTableTool.java │ │ │ ├── EvalSqlTool.java │ │ │ ├── ExportTool.java │ │ │ ├── HelpTool.java │ │ │ ├── ImportAllTablesTool.java │ │ │ ├── ImportTool.java │ │ │ ├── JobTool.java │ │ │ ├── ListDatabasesTool.java │ │ │ ├── ListTablesTool.java │ │ │ ├── MergeTool.java │ │ │ ├── MetastoreTool.java │ │ │ ├── SqoopTool.java │ │ │ ├── ToolDesc.java │ │ │ ├── ToolPlugin.java │ │ │ └── VersionTool.java │ │ │ └── util │ │ │ ├── AppendUtils.java │ │ │ ├── AsyncSink.java │ │ │ ├── ClassLoaderStack.java │ │ │ ├── DirectImportUtils.java │ │ │ ├── ErrorableAsyncSink.java │ │ │ ├── ErrorableThread.java │ │ │ ├── Executor.java │ │ │ ├── ExitSecurityException.java │ │ │ ├── ExportException.java │ │ │ ├── FileListing.java │ │ │ ├── ImportException.java │ │ │ ├── Jars.java │ │ │ ├── JdbcUrl.java │ │ │ ├── LoggingAsyncSink.java │ │ │ ├── LoggingUtils.java │ │ │ ├── NullAsyncSink.java │ │ │ ├── OptionsFileUtil.java │ │ │ ├── PerfCounters.java │ │ │ ├── RandomHash.java │ │ │ ├── ResultSetPrinter.java │ │ │ ├── StoredAsProperty.java │ │ │ ├── SubprocessSecurityManager.java │ │ │ └── TaskId.java │ └── org │ │ ├── .DS_Store │ │ └── apache │ │ ├── .DS_Store │ │ └── sqoop │ │ ├── .DS_Store │ │ ├── ConnFactory.java │ │ ├── Sqoop.java │ │ ├── SqoopOptions.java │ │ ├── accumulo │ │ ├── AccumuloConstants.java │ │ ├── AccumuloMutationProcessor.java │ │ ├── AccumuloUtil.java │ │ ├── MutationTransformer.java │ │ └── ToStringMutationTransformer.java │ │ ├── avro │ │ └── AvroUtil.java │ │ ├── cli │ │ ├── RelatedOptions.java │ │ ├── SqoopParser.java │ │ └── ToolOptions.java │ │ ├── config │ │ ├── ConfigurationConstants.java │ │ └── ConfigurationHelper.java │ │ ├── hbase │ │ ├── HBasePutProcessor.java │ │ ├── HBaseUtil.java │ │ ├── PutTransformer.java │ │ └── ToStringPutTransformer.java │ │ ├── hive │ │ ├── HiveImport.java │ │ ├── HiveTypes.java │ │ └── TableDefWriter.java │ │ ├── io │ │ ├── CodecMap.java │ │ ├── FixedLengthInputStream.java │ │ ├── LobFile.java │ │ ├── LobReaderCache.java │ │ ├── NamedFifo.java │ │ ├── SplittableBufferedWriter.java │ │ ├── SplittingOutputStream.java │ │ └── UnsupportedCodecException.java │ │ ├── lib │ │ ├── BigDecimalSerializer.java │ │ ├── BlobRef.java │ │ ├── BooleanParser.java │ │ ├── ClobRef.java │ │ ├── DelimiterSet.java │ │ ├── FieldFormatter.java │ │ ├── FieldMapProcessor.java │ │ ├── FieldMappable.java │ │ ├── JdbcWritableBridge.java │ │ ├── LargeObjectLoader.java │ │ ├── LobRef.java │ │ ├── LobSerializer.java │ │ ├── ProcessingException.java │ │ ├── RecordParser.java │ │ └── SqoopRecord.java │ │ ├── manager │ │ ├── CatalogQueryManager.java │ │ ├── ConnManager.java │ │ ├── CubridManager.java │ │ ├── Db2Manager.java │ │ ├── DefaultManagerFactory.java │ │ ├── DirectMySQLManager.java │ │ ├── DirectNetezzaManager.java │ │ ├── DirectPostgresqlManager.java │ │ ├── ESManager.java │ │ ├── ExportJobContext.java │ │ ├── GenericJdbcManager.java │ │ ├── HsqldbManager.java │ │ ├── ImportJobContext.java │ │ ├── InformationSchemaManager.java │ │ ├── MainframeManager.java │ │ ├── ManagerFactory.java │ │ ├── MySQLManager.java │ │ ├── MySQLUtils.java │ │ ├── NetezzaManager.java │ │ ├── OracleManager.java │ │ ├── PGBulkloadManager.java │ │ ├── PostgresqlManager.java │ │ ├── SQLServerManager.java │ │ ├── SqlManager.java │ │ └── oracle │ │ │ ├── OraOopConnManager.java │ │ │ ├── OraOopConstants.java │ │ │ ├── OraOopDBInputSplit.java │ │ │ ├── OraOopDBRecordReader.java │ │ │ ├── OraOopDataDrivenDBInputFormat.java │ │ │ ├── OraOopGenerics.java │ │ │ ├── OraOopJdbcUrl.java │ │ │ ├── OraOopLog.java │ │ │ ├── OraOopLogFactory.java │ │ │ ├── OraOopLogMessage.java │ │ │ ├── OraOopManagerFactory.java │ │ │ ├── OraOopOracleDataChunk.java │ │ │ ├── OraOopOracleDataChunkExtent.java │ │ │ ├── OraOopOracleDataChunkPartition.java │ │ │ ├── OraOopOracleQueries.java │ │ │ ├── OraOopOutputFormatBase.java │ │ │ ├── OraOopOutputFormatInsert.java │ │ │ ├── OraOopOutputFormatUpdate.java │ │ │ ├── OraOopUtilities.java │ │ │ ├── OracleActiveInstance.java │ │ │ ├── OracleConnectionFactory.java │ │ │ ├── OracleTable.java │ │ │ ├── OracleTableColumn.java │ │ │ ├── OracleTableColumns.java │ │ │ ├── OracleTablePartition.java │ │ │ ├── OracleTablePartitions.java │ │ │ └── OracleVersion.java │ │ ├── mapreduce │ │ ├── AccumuloImportJob.java │ │ ├── AccumuloImportMapper.java │ │ ├── AsyncSqlOutputFormat.java │ │ ├── AsyncSqlRecordWriter.java │ │ ├── AutoProgressMapper.java │ │ ├── AutoProgressReducer.java │ │ ├── AvroExportMapper.java │ │ ├── AvroImportMapper.java │ │ ├── AvroInputFormat.java │ │ ├── AvroJob.java │ │ ├── AvroOutputFormat.java │ │ ├── AvroRecordReader.java │ │ ├── CombineFileInputFormat.java │ │ ├── CombineFileRecordReader.java │ │ ├── CombineFileSplit.java │ │ ├── CombineShimRecordReader.java │ │ ├── DBWritable.java │ │ ├── DataDrivenImportJob.java │ │ ├── DelegatingOutputFormat.java │ │ ├── ESExportJob.java │ │ ├── ESExportMapper.java │ │ ├── ESImportMapper.java │ │ ├── ExportBatchOutputFormat.java │ │ ├── ExportCallOutputFormat.java │ │ ├── ExportInputFormat.java │ │ ├── ExportJobBase.java │ │ ├── ExportOutputFormat.java │ │ ├── GenericRecordExportMapper.java │ │ ├── HBaseBulkImportJob.java │ │ ├── HBaseBulkImportMapper.java │ │ ├── HBaseImportJob.java │ │ ├── HBaseImportMapper.java │ │ ├── ImportJobBase.java │ │ ├── JdbcCallExportJob.java │ │ ├── JdbcExportJob.java │ │ ├── JdbcUpdateExportJob.java │ │ ├── JdbcUpsertExportJob.java │ │ ├── JobBase.java │ │ ├── MergeJob.java │ │ ├── MergeMapperBase.java │ │ ├── MergeRecord.java │ │ ├── MergeRecordMapper.java │ │ ├── MergeReducer.java │ │ ├── MergeTextMapper.java │ │ ├── MySQLDumpImportJob.java │ │ ├── MySQLDumpInputFormat.java │ │ ├── MySQLDumpMapper.java │ │ ├── MySQLExportJob.java │ │ ├── MySQLExportMapper.java │ │ ├── MySQLRecordExportMapper.java │ │ ├── MySQLTextExportMapper.java │ │ ├── NullOutputCommitter.java │ │ ├── OracleExportOutputFormat.java │ │ ├── OracleUpsertOutputFormat.java │ │ ├── ParquetExportMapper.java │ │ ├── ParquetImportMapper.java │ │ ├── ParquetJob.java │ │ ├── ProgressThread.java │ │ ├── RawKeyTextOutputFormat.java │ │ ├── SQLServerAsyncDBExecThread.java │ │ ├── SQLServerExportDBExecThread.java │ │ ├── SQLServerExportOutputFormat.java │ │ ├── SQLServerResilientExportOutputFormat.java │ │ ├── SQLServerResilientUpdateOutputFormat.java │ │ ├── SQLServerUpdateDBExecThread.java │ │ ├── SequenceFileExportMapper.java │ │ ├── SequenceFileImportMapper.java │ │ ├── SqoopMapper.java │ │ ├── SqoopReducer.java │ │ ├── TextExportMapper.java │ │ ├── TextImportMapper.java │ │ ├── UpdateOutputFormat.java │ │ ├── cubrid │ │ │ └── CubridUpsertOutputFormat.java │ │ ├── db │ │ │ ├── BasicRetrySQLFailureHandler.java │ │ │ ├── BigDecimalSplitter.java │ │ │ ├── BooleanSplitter.java │ │ │ ├── DBConfiguration.java │ │ │ ├── DBInputFormat.java │ │ │ ├── DBOutputFormat.java │ │ │ ├── DBRecordReader.java │ │ │ ├── DBSplitter.java │ │ │ ├── DataDrivenDBInputFormat.java │ │ │ ├── DataDrivenDBRecordReader.java │ │ │ ├── DateSplitter.java │ │ │ ├── Db2DBRecordReader.java │ │ │ ├── Db2DataDrivenDBInputFormat.java │ │ │ ├── Db2DataDrivenDBRecordReader.java │ │ │ ├── FloatSplitter.java │ │ │ ├── IntegerSplitter.java │ │ │ ├── NTextSplitter.java │ │ │ ├── OracleDBRecordReader.java │ │ │ ├── OracleDataDrivenDBInputFormat.java │ │ │ ├── OracleDataDrivenDBRecordReader.java │ │ │ ├── OracleDateSplitter.java │ │ │ ├── SQLFailureHandler.java │ │ │ ├── SQLServerConnectionFailureHandler.java │ │ │ ├── SQLServerDBInputFormat.java │ │ │ ├── SQLServerDBRecordReader.java │ │ │ ├── TextSplitter.java │ │ │ └── netezza │ │ │ │ ├── NetezzaDBDataSliceSplitter.java │ │ │ │ ├── NetezzaExternalTableExportMapper.java │ │ │ │ ├── NetezzaExternalTableHCatExportMapper.java │ │ │ │ ├── NetezzaExternalTableHCatImportMapper.java │ │ │ │ ├── NetezzaExternalTableImportMapper.java │ │ │ │ ├── NetezzaExternalTableRecordExportMapper.java │ │ │ │ ├── NetezzaExternalTableTextExportMapper.java │ │ │ │ ├── NetezzaExternalTableTextImportMapper.java │ │ │ │ └── NetezzaJDBCStatementRunner.java │ │ ├── hcat │ │ │ ├── SqoopHCatExportFormat.java │ │ │ ├── SqoopHCatExportHelper.java │ │ │ ├── SqoopHCatExportMapper.java │ │ │ ├── SqoopHCatImportHelper.java │ │ │ ├── SqoopHCatImportMapper.java │ │ │ ├── SqoopHCatInputSplit.java │ │ │ ├── SqoopHCatRecordReader.java │ │ │ └── SqoopHCatUtilities.java │ │ ├── mainframe │ │ │ ├── MainframeConfiguration.java │ │ │ ├── MainframeDatasetFTPRecordReader.java │ │ │ ├── MainframeDatasetImportMapper.java │ │ │ ├── MainframeDatasetInputFormat.java │ │ │ ├── MainframeDatasetInputSplit.java │ │ │ ├── MainframeDatasetRecordReader.java │ │ │ └── MainframeImportJob.java │ │ ├── mysql │ │ │ └── MySQLUpsertOutputFormat.java │ │ ├── netezza │ │ │ ├── NetezzaDataDrivenDBInputFormat.java │ │ │ ├── NetezzaExternalTableExportJob.java │ │ │ ├── NetezzaExternalTableImportJob.java │ │ │ ├── NetezzaExternalTableInputFormat.java │ │ │ └── NetezzaExternalTableInputSplit.java │ │ ├── postgresql │ │ │ ├── PGBulkloadExportJob.java │ │ │ ├── PGBulkloadExportMapper.java │ │ │ ├── PGBulkloadExportReducer.java │ │ │ ├── PostgreSQLCopyExportJob.java │ │ │ └── PostgreSQLCopyExportMapper.java │ │ └── sqlserver │ │ │ ├── SqlServerExportBatchOutputFormat.java │ │ │ ├── SqlServerInputFormat.java │ │ │ ├── SqlServerRecordReader.java │ │ │ └── SqlServerUpsertOutputFormat.java │ │ ├── metastore │ │ ├── JobData.java │ │ ├── JobStorage.java │ │ ├── JobStorageFactory.java │ │ └── hsqldb │ │ │ ├── AutoHsqldbStorage.java │ │ │ ├── HsqldbJobStorage.java │ │ │ └── HsqldbMetaStore.java │ │ ├── orm │ │ ├── AvroSchemaGenerator.java │ │ ├── ClassWriter.java │ │ ├── CompilationManager.java │ │ └── TableClassName.java │ │ ├── tool │ │ ├── BaseSqoopTool.java │ │ ├── CodeGenTool.java │ │ ├── CreateHiveTableTool.java │ │ ├── EvalSqlTool.java │ │ ├── ExportTool.java │ │ ├── HelpTool.java │ │ ├── ImportAllTablesTool.java │ │ ├── ImportTool.java │ │ ├── JobTool.java │ │ ├── ListDatabasesTool.java │ │ ├── ListTablesTool.java │ │ ├── MainframeImportTool.java │ │ ├── MergeTool.java │ │ ├── MetastoreTool.java │ │ ├── SqoopTool.java │ │ ├── ToolDesc.java │ │ ├── ToolPlugin.java │ │ └── VersionTool.java │ │ ├── util │ │ ├── AppendUtils.java │ │ ├── AsyncSink.java │ │ ├── Base64UtilsEN.java │ │ ├── ClassLoaderStack.java │ │ ├── CredentialsUtil.java │ │ ├── DirectImportUtils.java │ │ ├── ErrorableAsyncSink.java │ │ ├── ErrorableThread.java │ │ ├── Executor.java │ │ ├── ExitSecurityException.java │ │ ├── ExportException.java │ │ ├── FileListing.java │ │ ├── HttpClientConsumer.java │ │ ├── ImportException.java │ │ ├── Jars.java │ │ ├── JdbcUrl.java │ │ ├── LoggingAsyncSink.java │ │ ├── LoggingUtils.java │ │ ├── MainframeFTPClientUtils.java │ │ ├── NullAsyncSink.java │ │ ├── OptionsFileUtil.java │ │ ├── PerfCounters.java │ │ ├── PostgreSQLUtils.java │ │ ├── RSAUtilsEN.java │ │ ├── RandomHash.java │ │ ├── ResultSetPrinter.java │ │ ├── SqlTypeMap.java │ │ ├── StoredAsProperty.java │ │ ├── SubprocessSecurityManager.java │ │ ├── SubstitutionUtils.java │ │ ├── TaskId.java │ │ └── password │ │ │ ├── CredentialProviderHelper.java │ │ │ ├── CredentialProviderPasswordLoader.java │ │ │ ├── CryptoFileLoader.java │ │ │ ├── FilePasswordLoader.java │ │ │ └── PasswordLoader.java │ │ └── validation │ │ ├── AbortOnFailureHandler.java │ │ ├── AbsoluteValidationThreshold.java │ │ ├── LogOnFailureHandler.java │ │ ├── RowCountValidator.java │ │ ├── ValidationContext.java │ │ ├── ValidationException.java │ │ ├── ValidationFailureHandler.java │ │ ├── ValidationThreshold.java │ │ └── Validator.java ├── licenses │ └── LICENSE-BIN.txt ├── perftest │ ├── ExportStressTest.java │ ├── ExtConnFactoryTest.java │ ├── ExtFactory.java │ ├── LobFilePerfTest.java │ ├── LobFileStressTest.java │ └── README-perftest.txt ├── scripts │ ├── create-tool-scripts.cmd │ ├── create-tool-scripts.sh │ ├── hudson │ │ ├── run-code-quality.sh │ │ ├── run-tests.sh │ │ └── test-config.sh │ ├── rat-violations.sh │ ├── relnotes.py │ ├── run-perftest.sh │ ├── tool-script.cmd.template │ ├── tool-script.sh.template │ ├── write-version-info.cmd │ └── write-version-info.sh └── test │ ├── aop │ ├── build │ │ └── aop.xml │ └── org │ │ └── apache │ │ └── sqoop │ │ ├── fi │ │ ├── FiConfig.java │ │ └── ProbabilityModel.java │ │ └── mapreduce │ │ ├── SqlServerExportAspect.aj │ │ └── db │ │ └── SqlServerImportAspect.aj │ ├── checkstyle-java-header.txt │ ├── checkstyle-noframes.xsl │ ├── checkstyle.xml │ ├── com │ └── cloudera │ │ └── sqoop │ │ ├── AllTests.java │ │ ├── SmokeTests.java │ │ ├── TestAllTables.java │ │ ├── TestAppendUtils.java │ │ ├── TestAvroExport.java │ │ ├── TestAvroImport.java │ │ ├── TestAvroImportExportRoundtrip.java │ │ ├── TestBoundaryQuery.java │ │ ├── TestColumnTypes.java │ │ ├── TestCompression.java │ │ ├── TestConnFactory.java │ │ ├── TestExport.java │ │ ├── TestExportUpdate.java │ │ ├── TestFreeFormQueryImport.java │ │ ├── TestIncrementalImport.java │ │ ├── TestMerge.java │ │ ├── TestMultiCols.java │ │ ├── TestMultiMaps.java │ │ ├── TestParquetExport.java │ │ ├── TestParquetImport.java │ │ ├── TestQuery.java │ │ ├── TestSplitBy.java │ │ ├── TestSqoopOptions.java │ │ ├── TestTargetDir.java │ │ ├── TestWhere.java │ │ ├── ThirdPartyTests.java │ │ ├── hbase │ │ ├── HBaseImportAddRowKeyTest.java │ │ ├── HBaseImportNullTest.java │ │ ├── HBaseImportTest.java │ │ ├── HBaseImportTypesTest.java │ │ ├── HBaseQueryImportTest.java │ │ ├── HBaseTestCase.java │ │ └── HBaseUtilTest.java │ │ ├── hive │ │ ├── TestHiveImport.java │ │ └── TestTableDefWriter.java │ │ ├── io │ │ ├── TestCodecMap.java │ │ ├── TestLobFile.java │ │ ├── TestNamedFifo.java │ │ └── TestSplittableBufferedWriter.java │ │ ├── lib │ │ ├── TestBlobRef.java │ │ ├── TestBooleanParser.java │ │ ├── TestClobRef.java │ │ ├── TestFieldFormatter.java │ │ ├── TestLargeObjectLoader.java │ │ └── TestRecordParser.java │ │ ├── manager │ │ ├── CubridManagerExportTest.java │ │ ├── CubridManagerImportTest.java │ │ ├── DB2ManagerImportManualTest.java │ │ ├── DirectMySQLExportTest.java │ │ ├── DirectMySQLTest.java │ │ ├── DirectPostgreSQLExportManualTest.java │ │ ├── JdbcMySQLExportTest.java │ │ ├── ManualMySQLTests.java │ │ ├── MySQLAllTablesTest.java │ │ ├── MySQLAuthTest.java │ │ ├── MySQLCompatTest.java │ │ ├── MySQLFreeFormQueryTest.java │ │ ├── MySQLLobAvroImportTest.java │ │ ├── MySQLTestUtils.java │ │ ├── OracleCompatTest.java │ │ ├── OracleExportTest.java │ │ ├── OracleFreeFormQueryTest.java │ │ ├── OracleLobAvroImportTest.java │ │ ├── OracleManagerTest.java │ │ ├── OracleUtils.java │ │ ├── PGBulkloadManagerManualTest.java │ │ ├── PostgresqlExportTest.java │ │ ├── PostgresqlImportTest.java │ │ ├── SQLServerManagerExportManualTest.java │ │ ├── SQLServerManagerImportManualTest.java │ │ ├── TestHsqldbManager.java │ │ └── TestSqlManager.java │ │ ├── mapreduce │ │ ├── MapreduceTests.java │ │ ├── TestImportJob.java │ │ └── db │ │ │ ├── TestDataDrivenDBInputFormat.java │ │ │ ├── TestIntegerSplitter.java │ │ │ └── TestTextSplitter.java │ │ ├── metastore │ │ └── TestSavedJobs.java │ │ ├── orm │ │ ├── TestClassWriter.java │ │ └── TestParseMethods.java │ │ ├── testutil │ │ ├── BaseSqoopTestCase.java │ │ ├── CommonArgs.java │ │ ├── DirUtil.java │ │ ├── ExplicitSetMapper.java │ │ ├── ExportJobTestCase.java │ │ ├── HsqldbTestServer.java │ │ ├── ImportJobTestCase.java │ │ ├── InjectableConnManager.java │ │ ├── InjectableManagerFactory.java │ │ ├── LobAvroImportTestCase.java │ │ ├── ManagerCompatTestCase.java │ │ ├── MockResultSet.java │ │ ├── ReparseMapper.java │ │ └── SeqFileReader.java │ │ ├── tool │ │ └── TestToolPlugin.java │ │ └── util │ │ ├── TestOptionsFileExpansion.java │ │ └── TestSubstitutionUtils.java │ ├── fi-site.xml │ ├── findbugsExcludeFile.xml │ ├── oraoop │ ├── create_users.sql │ ├── pkg_tst_product_gen.pbk │ ├── pkg_tst_product_gen.psk │ ├── table_tst_product.xml │ ├── table_tst_product_part.xml │ ├── table_tst_product_part_iot.xml │ ├── table_tst_product_special_chars.xml │ └── table_tst_product_subpart.xml │ └── org │ └── apache │ └── sqoop │ ├── TestBigDecimalExport.java │ ├── TestBigDecimalImport.java │ ├── TestExportUsingProcedure.java │ ├── accumulo │ ├── AccumuloTestCase.java │ ├── TestAccumuloImport.java │ ├── TestAccumuloQueryImport.java │ └── TestAccumuloUtil.java │ ├── credentials │ └── TestPassingSecurePassword.java │ ├── hcat │ ├── HCatalogExportTest.java │ ├── HCatalogImportTest.java │ ├── HCatalogTestUtils.java │ └── TestHCatalogBasic.java │ ├── manager │ ├── TestMainframeManager.java │ ├── cubrid │ │ ├── CubridAuthTest.java │ │ ├── CubridCompatTest.java │ │ └── CubridTestUtils.java │ ├── mysql │ │ └── MySqlCallExportTest.java │ ├── netezza │ │ ├── DirectNetezzaExportManualTest.java │ │ ├── DirectNetezzaHCatExportManualTest.java │ │ ├── DirectNetezzaHCatImportManualTest.java │ │ ├── NetezzaExportManualTest.java │ │ ├── NetezzaImportManualTest.java │ │ └── NetezzaTestUtils.java │ ├── oracle │ │ ├── ExportTest.java │ │ ├── ImportTest.java │ │ ├── OraOopOracleQueriesTest.java │ │ ├── OraOopTestCase.java │ │ ├── OraOopTestConstants.java │ │ ├── OracleCallExportTest.java │ │ ├── OracleConnectionFactoryTest.java │ │ ├── OracleIncrementalImportTest.java │ │ ├── SystemImportTest.java │ │ ├── TestOraOopDataDrivenDBInputFormat.java │ │ ├── TestOraOopJdbcUrl.java │ │ ├── TestOraOopUtilities.java │ │ ├── TestOracleTable.java │ │ ├── TimestampDataTest.java │ │ └── util │ │ │ ├── BigDecimalGenerator.java │ │ │ ├── BinaryDoubleGenerator.java │ │ │ ├── BinaryFloatGenerator.java │ │ │ ├── BlobGenerator.java │ │ │ ├── BytesGenerator.java │ │ │ ├── CharGenerator.java │ │ │ ├── FloatGenerator.java │ │ │ ├── HadoopFiles.java │ │ │ ├── IntervalDaySecondGenerator.java │ │ │ ├── IntervalYearMonthGenerator.java │ │ │ ├── NCharGenerator.java │ │ │ ├── OraOopTestDataGenerator.java │ │ │ ├── OraOopTestUtils.java │ │ │ ├── OracleData.java │ │ │ ├── OracleDataDefinition.java │ │ │ ├── OracleTableDefinition.java │ │ │ ├── RowIdGenerator.java │ │ │ ├── TimestampGenerator.java │ │ │ └── URIGenerator.java │ └── sqlserver │ │ ├── MSSQLTestData.java │ │ ├── MSSQLTestDataFileParser.java │ │ ├── MSSQLTestUtils.java │ │ ├── ManagerCompatExport.java │ │ ├── SQLServerDatatypeExportDelimitedFileManualTest.java │ │ ├── SQLServerDatatypeExportSequenceFileManualTest.java │ │ ├── SQLServerDatatypeImportDelimitedFileManualTest.java │ │ ├── SQLServerDatatypeImportSequenceFileManualTest.java │ │ ├── SQLServerHiveImportManualTest.java │ │ ├── SQLServerManagerManualTest.java │ │ ├── SQLServerMultiColsManualTest.java │ │ ├── SQLServerMultiMapsManualTest.java │ │ ├── SQLServerParseMethodsManualTest.java │ │ ├── SQLServerQueryManualTest.java │ │ ├── SQLServerSplitByManualTest.java │ │ └── SQLServerWhereManualTest.java │ ├── mapreduce │ ├── db │ │ ├── TestBigDecimalSplitter.java │ │ ├── TestDBConfiguration.java │ │ ├── TestIntegerSplitter.java │ │ └── TestTextSplitter.java │ ├── mainframe │ │ ├── TestMainframeDatasetFTPRecordReader.java │ │ ├── TestMainframeDatasetInputFormat.java │ │ ├── TestMainframeDatasetInputSplit.java │ │ └── TestMainframeImportJob.java │ └── sqlserver │ │ └── SqlServerUpsertOutputFormatTest.java │ ├── tool │ └── TestMainframeImportTool.java │ ├── util │ └── TestMainframeFTPClientUtils.java │ └── validation │ ├── AbortOnFailureHandlerTest.java │ ├── AbsoluteValidationThresholdTest.java │ └── RowCountValidatorImportTest.java └── testdata ├── DatatypeTestData-export-lite.txt ├── DatatypeTestData-import-lite.txt ├── aaa └── a ├── hcatalog └── conf │ ├── hive-log4j.properties │ ├── hive-site.xml │ └── log4j.properties └── hive ├── bin ├── hive └── hive.cmd └── scripts ├── createOnlyImport.q ├── createOverwriteImport.q ├── customDelimImport.q ├── dateImport.q ├── failingImport.q ├── fieldWithNewlineImport.q ├── fieldWithNewlineReplacementImport.q ├── normalImport.q ├── normalImportAsParquet.q ├── numericImport.q └── partitionImport.q /NOTICE.txt: -------------------------------------------------------------------------------- 1 | Apache Sqoop 2 | Copyright 2011-2013 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | Portions of this software were developed at 8 | Cloudera, Inc. (http://www.cloudera.com/). 9 | 10 | Patch review tool is based on the Kafka patch review tool. 11 | Which is part of the Apache Kafka project, an open source software 12 | project with copyright by The Apache Software Foundation. 13 | The original source code is available at: http://kafka.apache.org 14 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | 2 | = Welcome to Sqoop! 3 | 4 | This is the Sqoop (SQL-to-Hadoop) tool. Sqoop allows easy imports and 5 | exports of data sets between databases and HDFS. 6 | 7 | 8 | == More Documentation 9 | 10 | Sqoop ships with additional documentation: a user guide and a manual page. 11 | 12 | Asciidoc sources for both of these are in +src/docs/+. Run +ant docs+ to build 13 | the documentation. It will be created in +build/docs/+. 14 | 15 | If you got Sqoop in release form, documentation will already be built and 16 | available in the +docs/+ directory. 17 | 18 | 19 | == Compiling Sqoop 20 | 21 | Compiling Sqoop requires the following tools: 22 | 23 | * Apache ant (1.7.1) 24 | * Java JDK 1.6 25 | 26 | Additionally, building the documentation requires these tools: 27 | 28 | * asciidoc 29 | * make 30 | * python 2.5+ 31 | * xmlto 32 | * tar 33 | * gzip 34 | 35 | To compile Sqoop, run +ant package+. There will be a fully self-hosted build 36 | provided in the +build/sqoop-(version)/+ directory. 37 | 38 | You can build just the jar by running +ant jar+. 39 | 40 | See the COMPILING.txt document for for information. 41 | 42 | == This is also an Asciidoc file! 43 | 44 | * Try running +asciidoc README.txt+ 45 | * For more information about asciidoc, see http://www.methods.co.nz/asciidoc/ 46 | 47 | -------------------------------------------------------------------------------- /bin/.gitignore: -------------------------------------------------------------------------------- 1 | # Licensed to Cloudera, Inc. under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # Cloudera, Inc. licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | /sqoop-* 16 | 17 | -------------------------------------------------------------------------------- /bin/sqoop.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Licensed to the Apache Software Foundation (ASF) under one or more 3 | :: contributor license agreements. See the NOTICE file distributed with 4 | :: this work for additional information regarding copyright ownership. 5 | :: The ASF licenses this file to You under the Apache License, Version 2.0 6 | :: (the "License"); you may not use this file except in compliance with 7 | :: the License. You may obtain a copy of the License at 8 | :: 9 | :: 10 | :: http://www.apache.org/licenses/LICENSE-2.0 11 | :: 12 | :: Unless required by applicable law or agreed to in writing, software 13 | :: distributed under the License is distributed on an "AS IS" BASIS, 14 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | :: See the License for the specific language governing permissions and 16 | :: limitations under the License. 17 | 18 | setlocal enabledelayedexpansion 19 | 20 | set prgm=%~f0 21 | set bin=%~dp0 22 | if "%bin:~-1%" == "\" ( 23 | set bin=%bin:~0,-1% 24 | ) 25 | 26 | call "%bin%\configure-sqoop.cmd" "%bin%" 27 | call %HADOOP_HOME%\bin\hadoop org.apache.sqoop.Sqoop %* 28 | 29 | endlocal 30 | -------------------------------------------------------------------------------- /cdh.build.properties: -------------------------------------------------------------------------------- 1 | # 2 | #Mon Jul 06 16:36:09 PDT 2015 3 | avro.version=1.7.6-cdh5.4.4 4 | zookeeper.version=3.4.5-cdh5.4.4 5 | hbaseprofile=95 6 | sqoop.version=1.4.5-cdh5.4.4 7 | kite-data.version=1.0.0-cdh5.4.4 8 | accumulo.version=1.6.2 9 | version=1.4.5-cdh5.4.4 10 | hbase95.version=1.0.0-cdh5.4.4 11 | hadoop.version=2.6.0-cdh5.4.4 12 | hadoopversion=200 13 | hcatalog.version=1.1.0-cdh5.4.4 14 | reactor.repo=https\://repository.cloudera.com/content/repositories/snapshots 15 | hadoop-core.cloudera.version=2.6.0-mr1-cdh5.4.4 16 | -------------------------------------------------------------------------------- /cloudera/apply-patches: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | 3 | set -e 4 | 5 | if [ $# != 2 ]; then 6 | echo usage: $0 ' ' 7 | exit 1 8 | fi 9 | 10 | TARGET_DIR=`readlink -f $1` 11 | PATCH_DIR=`readlink -f $2` 12 | 13 | cd $TARGET_DIR 14 | 15 | # We have to git init, or else git apply will search upwards and find 16 | # some other git repository (even though this build is taking place 17 | # inside a gitignored build/ dir) 18 | # even though we never commit to this "repository", this serves to 19 | # anchor the repository root at the source dir root. 20 | git init-db 21 | for PATCH in `ls -1 $PATCH_DIR/* | sort` ; do 22 | if [ -s $PATCH ]; then 23 | git apply --ignore-whitespace --ignore-space-change --whitespace=nowarn $PATCH 24 | fi 25 | done 26 | -------------------------------------------------------------------------------- /cloudera/build.properties: -------------------------------------------------------------------------------- 1 | 2 | # Autogenerated build properties 3 | version=1.4.5-cdh5.4.4 4 | git.hash=ddbcf79ce4ce5ccc7759ddb34ef79fc50e016430 5 | cloudera.hash=ddbcf79ce4ce5ccc7759ddb34ef79fc50e016430 6 | cloudera.cdh.hash=c44cdd057e3acbc7ccd719fe65e7e506422c9084 7 | cloudera.cdh-packaging.hash=5c4059c92955b49c2d4982847dda4b174008f894 8 | cloudera.base-branch=cdh5-base-1.4.5 9 | cloudera.build-branch=cdh5-1.4.5_5.4.4 10 | cloudera.pkg.version=1.4.5+cdh5.4.4+101 11 | cloudera.pkg.release=1.cdh5.4.4.p0.6 12 | cloudera.pkg.name=sqoop 13 | cloudera.cdh.release=cdh5.4.4 14 | cloudera.build.time=2015.07.06-23:36:04GMT 15 | 16 | -------------------------------------------------------------------------------- /cloudera/cdh_version.properties: -------------------------------------------------------------------------------- 1 | 2 | # Autogenerated build properties 3 | version=1.4.5-cdh5.4.4 4 | git.hash=ddbcf79ce4ce5ccc7759ddb34ef79fc50e016430 5 | cloudera.hash=ddbcf79ce4ce5ccc7759ddb34ef79fc50e016430 6 | cloudera.cdh.hash=c44cdd057e3acbc7ccd719fe65e7e506422c9084 7 | cloudera.cdh-packaging.hash=5c4059c92955b49c2d4982847dda4b174008f894 8 | cloudera.base-branch=cdh5-base-1.4.5 9 | cloudera.build-branch=cdh5-1.4.5_5.4.4 10 | cloudera.pkg.version=1.4.5+cdh5.4.4+101 11 | cloudera.pkg.release=1.cdh5.4.4.p0.6 12 | cloudera.pkg.name=sqoop 13 | cloudera.cdh.release=cdh5.4.4 14 | cloudera.build.time=2015.07.06-23:36:04GMT 15 | 16 | -------------------------------------------------------------------------------- /cloudera/maven-packaging/templates/build.template: -------------------------------------------------------------------------------- 1 | version=org.apache.sqoop:sqoop.version 2 | sqoop.version=org.apache.sqoop:sqoop.version 3 | reactor.repo=https://repository.cloudera.com/content/repositories/snapshots 4 | hadoop-core.cloudera.version=org.apache.hadoop:hadoop-core.version 5 | hadoop.version=org.apache.hadoop:hadoop-main.version 6 | 7 | hbase95.version=org.apache.hbase:hbase-common.version 8 | 9 | hcatalog.version=org.apache.hive:hive-common.version 10 | 11 | zookeeper.version=org.apache.zookeeper:zookeeper.version 12 | 13 | avro.version=org.apache.avro:avro.version 14 | 15 | kite-data.version=org.kitesdk:kite-data-core.version 16 | 17 | # Default build profiles for CDH 18 | hadoopversion=200 19 | hbaseprofile=95 20 | 21 | # CDH5 is no longer compatible with accumulo 1.5's test mini cluster 22 | accumulo.version=1.6.2 23 | -------------------------------------------------------------------------------- /cloudera/patches/0002-CLOUDERA-BUILD.-Not-removing-cdh.build.properties-fi.patch: -------------------------------------------------------------------------------- 1 | From 29e93333ec89130e40f73b49321428ce12411ba1 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Tue, 13 Aug 2013 16:00:56 -0700 4 | Subject: [PATCH 002/101] CLOUDERA-BUILD. Not removing cdh.build.properties file during clean 5 | 6 | --- 7 | build.xml | 1 - 8 | 1 files changed, 0 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/build.xml b/build.xml 11 | index a038e9d..78c1cad 100644 12 | --- a/build.xml 13 | +++ b/build.xml 14 | @@ -1275,7 +1275,6 @@ 15 | 16 | 17 | 18 | - 19 | 20 | 21 | 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /cloudera/patches/0003-CLOUDERA-BUILD.-Switching-to-target-JDK-1.7.patch: -------------------------------------------------------------------------------- 1 | From d99fa81d436e33becdd6a67398731443821209e5 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Sun, 18 Aug 2013 13:04:36 -0700 4 | Subject: [PATCH 003/101] CLOUDERA-BUILD. Switching to target JDK 1.7 5 | 6 | Conflicts: 7 | build.xml 8 | --- 9 | build.xml | 4 ++-- 10 | 1 files changed, 2 insertions(+), 2 deletions(-) 11 | 12 | diff --git a/build.xml b/build.xml 13 | index 78c1cad..292d2b0 100644 14 | --- a/build.xml 15 | +++ b/build.xml 16 | @@ -295,8 +295,8 @@ 17 | 18 | 19 | 20 | - 21 | - 22 | + 23 | + 24 | 25 | 26 | 27 | -- 28 | 1.7.0.4 29 | 30 | -------------------------------------------------------------------------------- /cloudera/patches/0004-CLOUDERA-BUILD.-Setting-JDK-target-to-1.6.patch: -------------------------------------------------------------------------------- 1 | From 2b57e7fba35438c4f2b12223dc83211eabb25325 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Mon, 23 Sep 2013 15:50:23 -0700 4 | Subject: [PATCH 004/101] CLOUDERA-BUILD. Setting JDK target to 1.6 5 | 6 | Conflicts: 7 | build.xml 8 | --- 9 | build.xml | 4 ++-- 10 | 1 files changed, 2 insertions(+), 2 deletions(-) 11 | 12 | diff --git a/build.xml b/build.xml 13 | index 292d2b0..78c1cad 100644 14 | --- a/build.xml 15 | +++ b/build.xml 16 | @@ -295,8 +295,8 @@ 17 | 18 | 19 | 20 | - 21 | - 22 | + 23 | + 24 | 25 | 26 | 27 | -- 28 | 1.7.0.4 29 | 30 | -------------------------------------------------------------------------------- /cloudera/patches/0005-CLODUERA-BUILD.-Changing-maven-repository-URL.patch: -------------------------------------------------------------------------------- 1 | From 218e7906b8d26e851c1c956215dc908d3bccfb60 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Fri, 18 Oct 2013 11:06:48 -0700 4 | Subject: [PATCH 005/101] CLODUERA-BUILD. Changing maven repository URL 5 | 6 | --- 7 | cloudera-pom.xml | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/cloudera-pom.xml b/cloudera-pom.xml 11 | index b64ea78..10a567e 100644 12 | --- a/cloudera-pom.xml 13 | +++ b/cloudera-pom.xml 14 | @@ -66,7 +66,7 @@ 15 | 16 | 17 | cdh.releases.repo 18 | - https://repository.cloudera.com/content/group/cdh-releases-rcs 19 | + https://repository.cloudera.com/content/groups/cdh-releases-rcs 20 | CDH Releases Repository 21 | 22 | false 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /cloudera/patches/0007-CLOUDERA-BUILD.-Fix-hcatalog-dependency-detection.patch: -------------------------------------------------------------------------------- 1 | From 7950da2aef6d3cae36e1a9c03aa213a7281f4154 Mon Sep 17 00:00:00 2001 2 | From: Andrew Bayer 3 | Date: Tue, 3 Dec 2013 09:28:52 -0800 4 | Subject: [PATCH 007/101] CLOUDERA-BUILD. Fix hcatalog dependency detection 5 | 6 | --- 7 | cloudera/maven-packaging/templates/build.template | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/cloudera/maven-packaging/templates/build.template b/cloudera/maven-packaging/templates/build.template 11 | index 2276b88..c91760d 100644 12 | --- a/cloudera/maven-packaging/templates/build.template 13 | +++ b/cloudera/maven-packaging/templates/build.template 14 | @@ -6,7 +6,7 @@ hadoop.version=org.apache.hadoop:hadoop-main.version 15 | 16 | hbase95.version=org.apache.hbase:hbase-common.version 17 | 18 | -hcatalog.version=org.apache.hive.hcatalog:hcatalog-core.version 19 | +hcatalog.version=org.apache.hive:hive-common.version 20 | 21 | zookeeper.version=org.apache.zookeeper:zookeeper.version 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /cloudera/patches/0008-CLOUDERA-BUILD.-Fix-hive-catalog-core-artifactId-in-.patch: -------------------------------------------------------------------------------- 1 | From 1ac3727ae4466e859c5505fb7c41722d9ac44773 Mon Sep 17 00:00:00 2001 2 | From: Andrew Bayer 3 | Date: Tue, 3 Dec 2013 10:27:34 -0800 4 | Subject: [PATCH 008/101] CLOUDERA-BUILD. Fix hive-catalog-core artifactId in POM 5 | 6 | --- 7 | cloudera/maven-packaging/sqoop/pom.xml | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/cloudera/maven-packaging/sqoop/pom.xml b/cloudera/maven-packaging/sqoop/pom.xml 11 | index aa0b764..c3d9ab2 100644 12 | --- a/cloudera/maven-packaging/sqoop/pom.xml 13 | +++ b/cloudera/maven-packaging/sqoop/pom.xml 14 | @@ -84,7 +84,7 @@ 15 | 16 | 17 | org.apache.hive.hcatalog 18 | - hcatalog-core 19 | + hive-hcatalog-core 20 | 21 | 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /cloudera/patches/0009-CLOUDERA-BUILD.-Changing-default-value-of-sqoop.jobb.patch: -------------------------------------------------------------------------------- 1 | From 3edf79e60e46bbe5164299eab0c8f89a4d3a00ec Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Mon, 19 May 2014 18:41:54 -0700 4 | Subject: [PATCH 009/101] CLOUDERA-BUILD. Changing default value of sqoop.jobbase.serialize.sqoopoptions to true 5 | 6 | CDH-19278: Change default value of sqoop.jobbase.serialize.sqoopoptions to true in CDH build 7 | --- 8 | src/java/org/apache/sqoop/mapreduce/JobBase.java | 2 +- 9 | 1 files changed, 1 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/mapreduce/JobBase.java b/src/java/org/apache/sqoop/mapreduce/JobBase.java 12 | index 92a78ac..1be32a5 100644 13 | --- a/src/java/org/apache/sqoop/mapreduce/JobBase.java 14 | +++ b/src/java/org/apache/sqoop/mapreduce/JobBase.java 15 | @@ -50,7 +50,7 @@ 16 | public static final Log LOG = LogFactory.getLog(JobBase.class.getName()); 17 | 18 | public static final String SERIALIZE_SQOOPOPTIONS = "sqoop.jobbase.serialize.sqoopoptions"; 19 | - public static final boolean SERIALIZE_SQOOPOPTIONS_DEFAULT = false; 20 | + public static final boolean SERIALIZE_SQOOPOPTIONS_DEFAULT = true; 21 | 22 | protected SqoopOptions options; 23 | protected Class mapperClass; 24 | -- 25 | 1.7.0.4 26 | 27 | -------------------------------------------------------------------------------- /cloudera/patches/0012-Preparing-for-release-1.4.6-development.patch: -------------------------------------------------------------------------------- 1 | From 910fb22e43bf3ff9ea557364e55f200a19cae1fa Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 23 Jul 2014 14:01:57 -0700 4 | Subject: [PATCH 012/101] Preparing for release 1.4.6 development 5 | 6 | Conflicts: 7 | build.xml 8 | --- 9 | build.xml | 2 +- 10 | 1 files changed, 1 insertions(+), 1 deletions(-) 11 | 12 | diff --git a/build.xml b/build.xml 13 | index 78c1cad..b3909a4 100644 14 | --- a/build.xml 15 | +++ b/build.xml 16 | @@ -230,7 +230,7 @@ 17 | 18 | 19 | 21 | + value="81624ddf3c8ca5834ab015ebafc8b8649ac36ab7" /> 22 | 23 | 24 | 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /cloudera/patches/0014-SQOOP-1368-the-configuration-properties-are-reset-in.patch: -------------------------------------------------------------------------------- 1 | From 339cd873ff2c3fde2cf5042ec225621532e7aa72 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Fri, 25 Jul 2014 06:48:57 -0700 4 | Subject: [PATCH 014/101] SQOOP-1368: the configuration properties are reset in HBaseImportJob 5 | 6 | (Guodong Wang via Jarek Jarcec Cecho) 7 | --- 8 | .../org/apache/sqoop/mapreduce/HBaseImportJob.java | 3 ++- 9 | 1 files changed, 2 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java b/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 12 | index 3f18bd9..d10050d 100644 13 | --- a/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 14 | +++ b/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 15 | @@ -138,7 +138,8 @@ protected void jobSetup(Job job) throws IOException, ImportException { 16 | } 17 | 18 | // Add HBase configuration files to this conf object. 19 | - HBaseConfiguration.addHbaseResources(conf); 20 | + Configuration newConf = HBaseConfiguration.create(conf); 21 | + HBaseConfiguration.merge(conf, newConf); 22 | 23 | HBaseAdmin admin = new HBaseAdmin(conf); 24 | 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /cloudera/patches/0017-SQOOP-1412-Text-splitter-should-also-consider-NCHAR-.patch: -------------------------------------------------------------------------------- 1 | From f56271171ea3eef2e9118cd633036bccf297860c Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Sun, 3 Aug 2014 12:49:48 -0700 4 | Subject: [PATCH 017/101] SQOOP-1412: Text splitter should also consider NCHAR and NVARCHAR fields 5 | 6 | (Venkat Ranganathan via Jarek Jarcec Cecho) 7 | --- 8 | .../mapreduce/db/DataDrivenDBInputFormat.java | 2 ++ 9 | 1 files changed, 2 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java b/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java 12 | index 02f3d62..6b30820 100644 13 | --- a/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java 14 | +++ b/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java 15 | @@ -98,7 +98,9 @@ protected DBSplitter getSplitter(int sqlDataType) { 16 | return new FloatSplitter(); 17 | 18 | case Types.CHAR: 19 | + case Types.NCHAR: 20 | case Types.VARCHAR: 21 | + case Types.NVARCHAR: 22 | case Types.LONGVARCHAR: 23 | return new TextSplitter(); 24 | 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /cloudera/patches/0021-SQOOP-1422-Integration-tests-for-Oracle-connector-fa.patch: -------------------------------------------------------------------------------- 1 | From 283fecb2289fc20484288a746abf95c2f51e7d89 Mon Sep 17 00:00:00 2001 2 | From: Abraham Elmahrek 3 | Date: Fri, 8 Aug 2014 15:20:52 -0700 4 | Subject: [PATCH 021/101] SQOOP-1422: Integration tests for Oracle connector fail as not using direct option 5 | 6 | --- 7 | .../sqoop/manager/oracle/OraOopTestCase.java | 4 ++++ 8 | 1 files changed, 4 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/src/test/org/apache/sqoop/manager/oracle/OraOopTestCase.java b/src/test/org/apache/sqoop/manager/oracle/OraOopTestCase.java 11 | index 6f7d070..4546464 100644 12 | --- a/src/test/org/apache/sqoop/manager/oracle/OraOopTestCase.java 13 | +++ b/src/test/org/apache/sqoop/manager/oracle/OraOopTestCase.java 14 | @@ -195,6 +195,8 @@ protected int runImport(String tableName, Configuration sqoopConf, 15 | 16 | sqoopArgs.add("import"); 17 | 18 | + sqoopArgs.add("--direct"); 19 | + 20 | if (sequenceFile) { 21 | sqoopArgs.add("--as-sequencefile"); 22 | } 23 | @@ -260,6 +262,8 @@ protected int runExportFromTemplateTable(String templateTableName, 24 | 25 | sqoopArgs.add("export"); 26 | 27 | + sqoopArgs.add("--direct"); 28 | + 29 | sqoopArgs.add("--connect"); 30 | sqoopArgs.add(OracleUtils.CONNECT_STRING); 31 | 32 | -- 33 | 1.7.0.4 34 | 35 | -------------------------------------------------------------------------------- /cloudera/patches/0026-SQOOP-1330-Ignore-blank-newlines-in-managers.d-prope.patch: -------------------------------------------------------------------------------- 1 | From b98f05108d33d8d092d4ccbafb3f23d7ab610e2e Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Mon, 25 Aug 2014 07:57:47 +0200 4 | Subject: [PATCH 026/101] SQOOP-1330: Ignore blank newlines in managers.d property files 5 | 6 | (Chiwan Park via Jarek Jarcec Cecho) 7 | --- 8 | src/java/org/apache/sqoop/ConnFactory.java | 3 +++ 9 | 1 files changed, 3 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/ConnFactory.java b/src/java/org/apache/sqoop/ConnFactory.java 12 | index 2276525..e9c45bc 100644 13 | --- a/src/java/org/apache/sqoop/ConnFactory.java 14 | +++ b/src/java/org/apache/sqoop/ConnFactory.java 15 | @@ -220,6 +220,9 @@ private void addManagersFromFile(Configuration conf, File f) { 16 | Properties props = new Properties(); 17 | String line; 18 | while ((line = r.readLine()) != null) { 19 | + if ("".equals(line.trim())) { 20 | + continue; 21 | + } 22 | int separator = line.indexOf('='); 23 | if (separator == -1) { 24 | throw new IOException("the content of connector file must be " 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /cloudera/patches/0027-SQOOP-1474-Fix-usage-of-StringUtils.repeat-method.patch: -------------------------------------------------------------------------------- 1 | From adeea1b44e4b131307572a15ebaeeada1facd8d0 Mon Sep 17 00:00:00 2001 2 | From: Venkat Ranganathan 3 | Date: Tue, 26 Aug 2014 17:06:49 -0700 4 | Subject: [PATCH 027/101] SQOOP-1474: Fix usage of StringUtils.repeat method 5 | 6 | --- 7 | .../org/apache/sqoop/TestExportUsingProcedure.java | 7 +++++-- 8 | 1 files changed, 5 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/src/test/org/apache/sqoop/TestExportUsingProcedure.java b/src/test/org/apache/sqoop/TestExportUsingProcedure.java 11 | index 78d688d..98ebf3c 100644 12 | --- a/src/test/org/apache/sqoop/TestExportUsingProcedure.java 13 | +++ b/src/test/org/apache/sqoop/TestExportUsingProcedure.java 14 | @@ -241,8 +241,11 @@ private static void insertFunction(int id, String msg, 15 | sql.append(instanceForProcedure.names[i]); 16 | } 17 | sql.append(") values ("); 18 | - sql.append(StringUtils.repeat("?", ", ", 19 | - instanceForProcedure.names.length + 2)); 20 | + for (int i = 0; i < instanceForProcedure.names.length + 2; ++i) { 21 | + sql.append("?,"); 22 | + } 23 | + // Remove last , 24 | + sql = sql.delete(sql.length() - 1, sql.length()); 25 | sql.append(")"); 26 | 27 | PreparedStatement statement = con.prepareStatement(sql.toString()); 28 | -- 29 | 1.7.0.4 30 | 31 | -------------------------------------------------------------------------------- /cloudera/patches/0042-SQOOP-1520-The-table-is-null-when-using-import-into-.patch: -------------------------------------------------------------------------------- 1 | From 9a6ef90075c5200646d0ed84e3c407d3680f7092 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 17 Sep 2014 09:44:27 +0200 4 | Subject: [PATCH 042/101] SQOOP-1520: The table is null when using import into hive as parquet file and query option 5 | 6 | (Richard via Jarek Jarcec Cecho) 7 | --- 8 | .../sqoop/mapreduce/DataDrivenImportJob.java | 2 +- 9 | 1 files changed, 1 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java b/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java 12 | index 938948f..71abeeb 100644 13 | --- a/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java 14 | +++ b/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java 15 | @@ -104,7 +104,7 @@ protected void configureMapper(Job job, String tableName, 16 | Schema schema = generateAvroSchema(tableName); 17 | String uri; 18 | if (options.doHiveImport()) { 19 | - uri = "dataset:hive?dataset=" + options.getTableName(); 20 | + uri = "dataset:hive?dataset=" + options.getHiveTableName(); 21 | } else { 22 | FileSystem fs = FileSystem.get(conf); 23 | uri = "dataset:" + fs.makeQualified(getContext().getDestination()); 24 | -- 25 | 1.7.0.4 26 | 27 | -------------------------------------------------------------------------------- /cloudera/patches/0043-SQOOP-1524-Error-to-import-into-hive-as-textfile-on-.patch: -------------------------------------------------------------------------------- 1 | From 1b800d9fe63313d076d830fa4771a9c00e8d9d4f Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 17 Sep 2014 10:04:29 +0200 4 | Subject: [PATCH 043/101] SQOOP-1524: Error to import into hive as textfile on hive 0.13.0 5 | 6 | (Richard via Jarek Jarcec Cecho) 7 | --- 8 | ivy.xml | 4 +++- 9 | 1 files changed, 3 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/ivy.xml b/ivy.xml 12 | index 9b13462..eb4b1c1 100644 13 | --- a/ivy.xml 14 | +++ b/ivy.xml 15 | @@ -193,7 +193,9 @@ under the License. 16 | 18 | 20 | + conf="avro->default;redist->default"> 21 | + 22 | + 23 | 24 | 25 | 3 | Date: Mon, 6 Oct 2014 18:04:25 -0700 4 | Subject: [PATCH 049/101] SQOOP-1437: 'Text' reserved word in compliation 5 | 6 | (Nick White via Jarek Jarcec Cecho) 7 | --- 8 | src/java/org/apache/sqoop/orm/ClassWriter.java | 4 ++++ 9 | 1 files changed, 4 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/orm/ClassWriter.java b/src/java/org/apache/sqoop/orm/ClassWriter.java 12 | index 94ff576..1c6f7f4 100644 13 | --- a/src/java/org/apache/sqoop/orm/ClassWriter.java 14 | +++ b/src/java/org/apache/sqoop/orm/ClassWriter.java 15 | @@ -116,6 +116,10 @@ 16 | JAVA_RESERVED_WORDS.add("void"); 17 | JAVA_RESERVED_WORDS.add("volatile"); 18 | JAVA_RESERVED_WORDS.add("while"); 19 | + 20 | + // not strictly reserved words, but collides with 21 | + // our imports 22 | + JAVA_RESERVED_WORDS.add("Text"); 23 | } 24 | 25 | public static final String PROPERTY_CODEGEN_METHODS_MAXCOLS = 26 | -- 27 | 1.7.0.4 28 | 29 | -------------------------------------------------------------------------------- /cloudera/patches/0060-CLOUDERA-BUILD.-CDH-20842-Partial-hadoop-installatio.patch: -------------------------------------------------------------------------------- 1 | From 7fae392a0247add28068ccb944a6d01ae6bc0f38 Mon Sep 17 00:00:00 2001 2 | From: Abraham Elmahrek 3 | Date: Tue, 18 Nov 2014 14:27:20 -0800 4 | Subject: [PATCH 060/101] CLOUDERA-BUILD. CDH-20842: Partial hadoop installation fix 5 | 6 | --- 7 | bin/configure-sqoop | 5 +++++ 8 | 1 files changed, 5 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/bin/configure-sqoop b/bin/configure-sqoop 11 | index 1a03190..5b87c5e 100755 12 | --- a/bin/configure-sqoop 13 | +++ b/bin/configure-sqoop 14 | @@ -45,6 +45,11 @@ if [ -z "${HADOOP_COMMON_HOME}" ]; then 15 | HADOOP_COMMON_HOME=${HADOOP_HOME} 16 | else 17 | if [ -d "/usr/lib/hadoop" ]; then 18 | + if [ ! -f "/usr/lib/hadoop/bin/hadoop" ]; then 19 | + echo "ERROR: Detected incomplete Hadoop installation in /usr/lib/hadoop. This is likely because you have not removed packages in a parcel environment, or you have a leftover /usr/lib/hadoop directory. If you are using parcels, please remove the /usr/lib/hadoop directory." 20 | + exit 1 21 | + fi 22 | + 23 | HADOOP_COMMON_HOME=/usr/lib/hadoop 24 | else 25 | HADOOP_COMMON_HOME=${SQOOP_HOME}/../hadoop 26 | -- 27 | 1.7.0.4 28 | 29 | -------------------------------------------------------------------------------- /cloudera/patches/0063-SQOOP-1759-TestIncrementalImport-fails-with-NPE-on-W.patch: -------------------------------------------------------------------------------- 1 | From 30b90414ab9f9887c3a5be2ceb526a7ead652f67 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 19 Nov 2014 09:18:58 -0800 4 | Subject: [PATCH 063/101] SQOOP-1759: TestIncrementalImport fails with NPE on Windows 5 | 6 | (Venkat Ranganathan via Jarek Jarcec Cecho) 7 | --- 8 | .../com/cloudera/sqoop/TestIncrementalImport.java | 2 ++ 9 | 1 files changed, 2 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/src/test/com/cloudera/sqoop/TestIncrementalImport.java b/src/test/com/cloudera/sqoop/TestIncrementalImport.java 12 | index fd94552..b456ca6 100644 13 | --- a/src/test/com/cloudera/sqoop/TestIncrementalImport.java 14 | +++ b/src/test/com/cloudera/sqoop/TestIncrementalImport.java 15 | @@ -547,6 +547,8 @@ public void runImport(SqoopOptions options, List args) { 16 | args.add(SOURCE_DB_URL); 17 | args.add("--query"); 18 | args.add(query); 19 | + args.add("--class-name"); 20 | + args.add(directoryName); 21 | args.add("--target-dir"); 22 | args.add(BaseSqoopTestCase.LOCAL_WAREHOUSE_DIR 23 | + System.getProperty("file.separator") + directoryName); 24 | -- 25 | 1.7.0.4 26 | 27 | -------------------------------------------------------------------------------- /cloudera/patches/0078-CLOUDERA-BUILD.-Switching-source-target-to-JDK7.patch: -------------------------------------------------------------------------------- 1 | From e60671c85c4c045d9bcdff491da19ff4c0b9bec5 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 18 Feb 2015 07:44:03 -0800 4 | Subject: [PATCH 078/101] CLOUDERA-BUILD. Switching source/target to JDK7. 5 | 6 | CDH-25311: Sqoop - Build all C5 components with -source/-target 1.7 7 | --- 8 | build.xml | 4 ++-- 9 | 1 files changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/build.xml b/build.xml 12 | index 17afba1..b7ee3e4 100644 13 | --- a/build.xml 14 | +++ b/build.xml 15 | @@ -295,8 +295,8 @@ 16 | 17 | 18 | 19 | - 20 | - 21 | + 22 | + 23 | 24 | 25 | 26 | -- 27 | 1.7.0.4 28 | 29 | -------------------------------------------------------------------------------- /cloudera/patches/0079-SQOOP-2128-HBaseImportJob-should-close-connection-fr.patch: -------------------------------------------------------------------------------- 1 | From f9df089a441ccbfe09496ebc29eb5ab614f1ef5c Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Mon, 23 Feb 2015 22:16:25 -0800 4 | Subject: [PATCH 079/101] SQOOP-2128: HBaseImportJob should close connection from HBaseAdmin to HBase 5 | 6 | (Esteban Gutierrez via Jarek Jarcec Cecho) 7 | --- 8 | .../org/apache/sqoop/mapreduce/HBaseImportJob.java | 4 ++++ 9 | 1 files changed, 4 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java b/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 12 | index 39c2765..523d0a7 100644 13 | --- a/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 14 | +++ b/src/java/org/apache/sqoop/mapreduce/HBaseImportJob.java 15 | @@ -247,6 +247,10 @@ protected void jobSetup(Job job) throws IOException, ImportException { 16 | } 17 | } 18 | 19 | + // Make sure we close the connection to HBA, this is only relevant in 20 | + // unit tests 21 | + admin.close(); 22 | + 23 | // Make sure HBase libraries are shipped as part of the job. 24 | TableMapReduceUtil.addDependencyJars(job); 25 | TableMapReduceUtil.addDependencyJars(conf, HTable.class); 26 | -- 27 | 1.7.0.4 28 | 29 | -------------------------------------------------------------------------------- /cloudera/patches/0081-CLOUDERA-BUILD.-Moving-Accumulo-to-1.6.2.patch: -------------------------------------------------------------------------------- 1 | From 20e5b571dfdf0e09b028a31c93696cdc36aff3ad Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Wed, 25 Feb 2015 17:14:41 -0800 4 | Subject: [PATCH 081/101] CLOUDERA-BUILD. Moving Accumulo to 1.6.2 5 | 6 | --- 7 | cloudera/maven-packaging/templates/build.template | 2 ++ 8 | 1 files changed, 2 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/cloudera/maven-packaging/templates/build.template b/cloudera/maven-packaging/templates/build.template 11 | index ae3b2bd..e29ece9 100644 12 | --- a/cloudera/maven-packaging/templates/build.template 13 | +++ b/cloudera/maven-packaging/templates/build.template 14 | @@ -18,3 +18,5 @@ kite-data.version=org.kitesdk:kite-data-core.version 15 | hadoopversion=200 16 | hbaseprofile=95 17 | 18 | +# CDH5 is no longer compatible with accumulo 1.5's test mini cluster 19 | +accumulo.version=1.6.2 20 | -- 21 | 1.7.0.4 22 | 23 | -------------------------------------------------------------------------------- /cloudera/patches/0083-SQOOP-2132-Remove-test-TestMainframeImportTool.testP.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/cloudera/patches/0083-SQOOP-2132-Remove-test-TestMainframeImportTool.testP.patch -------------------------------------------------------------------------------- /cloudera/patches/0086-SQOOP-2145-Default-Hive-home-is-not-being-set-proper.patch: -------------------------------------------------------------------------------- 1 | From c38a3d965f67ff27722bb20f72a51aed3bca493a Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Sat, 28 Feb 2015 08:39:31 -0800 4 | Subject: [PATCH 086/101] SQOOP-2145: Default Hive home is not being set properly under certain circumstances 5 | 6 | (Mark Grover via Jarek Jarcec Cecho) 7 | --- 8 | bin/configure-sqoop | 7 +++++++ 9 | 1 files changed, 7 insertions(+), 0 deletions(-) 10 | 11 | diff --git a/bin/configure-sqoop b/bin/configure-sqoop 12 | index 5b87c5e..b51b416 100755 13 | --- a/bin/configure-sqoop 14 | +++ b/bin/configure-sqoop 15 | @@ -110,6 +110,13 @@ if [ -z "${ZOOKEEPER_HOME}" ]; then 16 | ZOOKEEPER_HOME=${SQOOP_HOME}/../zookeeper 17 | fi 18 | fi 19 | +if [ -z "${HIVE_HOME}" ]; then 20 | + if [ -d "/usr/lib/hive" ]; then 21 | + export HIVE_HOME=/usr/lib/hive 22 | + elif [ -d ${SQOOP_HOME}/../hive ]; then 23 | + export HIVE_HOME=${SQOOP_HOME}/../hive 24 | + fi 25 | +fi 26 | 27 | # Check: If we can't find our dependencies, give up here. 28 | if [ ! -d "${HADOOP_COMMON_HOME}" ]; then 29 | -- 30 | 1.7.0.4 31 | 32 | -------------------------------------------------------------------------------- /cloudera/patches/0088-CLOUDERA-BUILD.-Adding-conjars-repository-for-some-o.patch: -------------------------------------------------------------------------------- 1 | From b7796a407e82d12dc85b148decd72fa98a206887 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Thu, 5 Mar 2015 09:22:46 -0800 4 | Subject: [PATCH 088/101] CLOUDERA-BUILD. Adding conjars repository for some of the Calcite dependencies 5 | 6 | --- 7 | ivy/ivysettings.xml | 2 ++ 8 | 1 files changed, 2 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/ivy/ivysettings.xml b/ivy/ivysettings.xml 11 | index 664c0ab..81b1e33 100644 12 | --- a/ivy/ivysettings.xml 13 | +++ b/ivy/ivysettings.xml 14 | @@ -75,6 +75,8 @@ under the License. 15 | pattern="${maven2.pattern.ext}" m2compatible="true"/> 16 | 18 | + 20 | 21 | 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /cloudera/patches/0089-CLOUDERA-BUILD.-Adding-conjars-repository-for-some-o.patch: -------------------------------------------------------------------------------- 1 | From 62baf8b1ed7302c0d712ce80d5f904a1350da916 Mon Sep 17 00:00:00 2001 2 | From: Jarek Jarcec Cecho 3 | Date: Thu, 5 Mar 2015 10:55:44 -0800 4 | Subject: [PATCH 089/101] CLOUDERA-BUILD. Adding conjars repository for some of the Calcite dependencies 5 | 6 | --- 7 | ivy/ivysettings.xml | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/ivy/ivysettings.xml b/ivy/ivysettings.xml 11 | index 81b1e33..9e3560d 100644 12 | --- a/ivy/ivysettings.xml 13 | +++ b/ivy/ivysettings.xml 14 | @@ -96,6 +96,7 @@ under the License. 15 | 16 | 17 | 18 | + 19 | 20 | 21 | 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/.gitignore: -------------------------------------------------------------------------------- 1 | # Licensed to Cloudera, Inc. under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # Cloudera, Inc. licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | /sqoop-site.xml 16 | /managers.d 17 | -------------------------------------------------------------------------------- /conf/es-site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | # Licensed to Cloudera, Inc. under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # Cloudera, Inc. licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | /ivy-*.jar 16 | -------------------------------------------------------------------------------- /lib/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /lib/ant-eclipse-1.0-jvm1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/ant-eclipse-1.0-jvm1.2.jar -------------------------------------------------------------------------------- /lib/elasticsearch-hadoop-5.6.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/elasticsearch-hadoop-5.6.8.jar -------------------------------------------------------------------------------- /lib/gson-2.8.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/gson-2.8.0.jar -------------------------------------------------------------------------------- /lib/mysql-connector-java.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/mysql-connector-java.jar -------------------------------------------------------------------------------- /lib/oracle-connector-java.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/oracle-connector-java.jar -------------------------------------------------------------------------------- /lib/sqljdbc4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/lib/sqljdbc4.jar -------------------------------------------------------------------------------- /src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/.DS_Store -------------------------------------------------------------------------------- /src/docs/.gitignore: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | /Sqoop-manpage.xml 18 | /sqoop.1 19 | /Sqoop-web.html 20 | -------------------------------------------------------------------------------- /src/docs/dev/compiling.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | 21 | Compiling Sqoop from Source 22 | --------------------------- 23 | 24 | You can obtain the source code for Sqoop using following command: 25 | git clone https://git-wip-us.apache.org/repos/asf/sqoop.git 26 | 27 | Sqoop source code is held in a +git+ repository. Instructions for 28 | retrieving source from the repository are provided at: 29 | TODO provide a page in the web site. 30 | 31 | Compilation instructions are provided in the +COMPILING.txt+ file in 32 | the root of the source repository. 33 | 34 | -------------------------------------------------------------------------------- /src/docs/dev/intro.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | 21 | Introduction 22 | ------------ 23 | 24 | If you are a developer or an application programmer who intends to 25 | modify Sqoop or build an extension using one of Sqoop's internal APIs, 26 | you should read this document. The following sections describe the 27 | purpose of each API, where internal APIs are used, and which APIs are 28 | necessary for implementing support for additional databases. 29 | 30 | -------------------------------------------------------------------------------- /src/docs/man/common-args.txt: -------------------------------------------------------------------------------- 1 | //// 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | //// 18 | 19 | Database connection and common options 20 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21 | 22 | --connect (jdbc-uri):: 23 | Specify JDBC connect string (required) 24 | 25 | --driver (class-name):: 26 | Manually specify JDBC driver class to use 27 | 28 | --connection-param-file (filename):: 29 | Optional properties file that provides connection parameters 30 | 31 | include::database-independent-args.txt[] 32 | -------------------------------------------------------------------------------- /src/docs/man/mainframe-connection-args.txt: -------------------------------------------------------------------------------- 1 | //// 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | //// 18 | 19 | .Connection arguments 20 | 21 | --connect (hostname):: 22 | Specify mainframe host name (required) 23 | 24 | --dataset (partitioned dataset name):: 25 | Specify a partitioned dataset name 26 | -------------------------------------------------------------------------------- /src/docs/man/sqoop-version.txt: -------------------------------------------------------------------------------- 1 | sqoop-version(1) 2 | ================ 3 | 4 | NAME 5 | ---- 6 | sqoop-version - Display version information for Sqoop. 7 | 8 | SYNOPSIS 9 | -------- 10 | 'sqoop-version' 11 | 12 | 'sqoop version' 13 | 14 | 15 | DESCRIPTION 16 | ----------- 17 | 18 | Display version information. 19 | 20 | //// 21 | Copyright 2011 The Apache Software Foundation 22 | 23 | Licensed to the Apache Software Foundation (ASF) under one 24 | or more contributor license agreements. See the NOTICE file 25 | distributed with this work for additional information 26 | regarding copyright ownership. The ASF licenses this file 27 | to you under the Apache License, Version 2.0 (the 28 | "License"); you may not use this file except in compliance 29 | with the License. You may obtain a copy of the License at 30 | 31 | http://www.apache.org/licenses/LICENSE-2.0 32 | 33 | Unless required by applicable law or agreed to in writing, software 34 | distributed under the License is distributed on an "AS IS" BASIS, 35 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 | See the License for the specific language governing permissions and 37 | limitations under the License. 38 | //// 39 | 40 | -------------------------------------------------------------------------------- /src/docs/sip/INDEX.txt: -------------------------------------------------------------------------------- 1 | 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | This is the index of all accepted SIPs: 19 | 20 | * SIP-1 – Providing multiple entry-points into Sqoop 21 | * SIP-2 – Sqoop 1.0 release criteria and maintenence policy 22 | * SIP-3 – File format for large object (LOB) storage 23 | * SIP-4 – Public API for Sqoop v1.0.0 24 | * SIP-6 – Reusable Jobs for Sqoop Operations 25 | 26 | -------------------------------------------------------------------------------- /src/docs/user/codegen-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The +codegen+ tool generates Java classes which encapsulate and 21 | interpret imported records. The Java definition of a record is 22 | instantiated as part of the import process, but can also be performed 23 | separately. For example, if Java source is lost, it can be recreated. 24 | New versions of a class can be created which use different delimiters 25 | between fields, and so on. 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/docs/user/eval-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The +eval+ tool allows users to quickly run simple SQL queries against 21 | a database; results are printed to the console. This allows users to 22 | preview their import queries to ensure they import the data they 23 | expect. 24 | 25 | WARNING: The +eval+ tool is provided for evaluation purpose only. You can use it to verify database connection from within the Sqoop or to test simple queries. It's not suppose to be used in production workflows. 26 | -------------------------------------------------------------------------------- /src/docs/user/hive-notes.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | 21 | 22 | Schema Definition in Hive 23 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 24 | 25 | Hive users will note that there is not a one-to-one mapping between 26 | SQL types and Hive types. In general, SQL types that do not have a 27 | direct mapping (for example, +DATE+, +TIME+, and +TIMESTAMP+) will be coerced to 28 | +STRING+ in Hive. The +NUMERIC+ and +DECIMAL+ SQL types will be coerced to 29 | +DOUBLE+. In these cases, Sqoop will emit a warning in its log messages 30 | informing you of the loss of precision. 31 | 32 | -------------------------------------------------------------------------------- /src/docs/user/import-all-tables-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The +import-all-tables+ tool imports a set of tables from an RDBMS to HDFS. 21 | Data from each table is stored in a separate directory in HDFS. 22 | 23 | For the +import-all-tables+ tool to be useful, the following conditions 24 | must be met: 25 | 26 | - Each table must have a single-column primary key. 27 | - You must intend to import all columns of each table. 28 | - You must not intend to use non-default splitting column, nor impose 29 | any conditions via a +WHERE+ clause. 30 | 31 | -------------------------------------------------------------------------------- /src/docs/user/import-mainframe-purpose.txt: -------------------------------------------------------------------------------- 1 | //// 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | //// 18 | 19 | The +import-mainframe+ tool imports all sequential datasets 20 | in a partitioned dataset(PDS) on a mainframe to HDFS. A PDS is 21 | akin to a directory on the open systems. 22 | The records in a dataset can contain only character data. 23 | Records will be stored with the entire record as a single text field. 24 | -------------------------------------------------------------------------------- /src/docs/user/import-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The +import+ tool imports an individual table from an RDBMS to HDFS. 21 | Each row from a table is represented as a separate record in HDFS. 22 | Records can be stored as text files (one record per line), or in 23 | binary representation as Avro or SequenceFiles. 24 | 25 | -------------------------------------------------------------------------------- /src/docs/user/input-formatting-args.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | 21 | --input-fields-terminated-by (char):: 22 | Sets the input field separator 23 | 24 | --input-lines-terminated-by (char):: 25 | Sets the input end-of-line char 26 | 27 | --input-optionally-enclosed-by (char):: 28 | Sets an input field-enclosing character 29 | 30 | --input-enclosed-by (char):: 31 | Sets a required input field encloser 32 | 33 | --input-escaped-by (char):: 34 | Sets the input escape character 35 | 36 | -------------------------------------------------------------------------------- /src/docs/user/input-formatting.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | Record classes generated by Sqoop include both a +toString()+ method 21 | that formats output records, and a +parse()+ method that interprets 22 | text based on an input delimiter set. The input delimiters default to 23 | the same ones chosen for output delimiters, but you can override these 24 | settings to support converting from one set of delimiters to another. 25 | 26 | -------------------------------------------------------------------------------- /src/docs/user/job-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The job tool allows you to create and work with saved jobs. Saved jobs 21 | remember the parameters used to specify a job, so they can be 22 | re-executed by invoking the job by its handle. 23 | 24 | If a saved job is configured to perform an incremental import, state regarding 25 | the most recently imported rows is updated in the saved job to allow the job 26 | to continually import only the newest rows. 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/docs/user/merge-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The merge tool allows you to combine two datasets where entries in one 21 | dataset should overwrite entries of an older dataset. For example, an 22 | incremental import run in last-modified mode will generate multiple datasets 23 | in HDFS where successively newer data appears in each dataset. The +merge+ 24 | tool will "flatten" two datasets into one, taking the newest available 25 | records for each primary key. 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/docs/user/metastore-purpose.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | The +metastore+ tool configures Sqoop to host a shared metadata repository. 21 | Multiple users and/or remote users can define and execute saved jobs (created 22 | with +sqoop job+) defined in this metastore. 23 | 24 | Clients must be configured to connect to the metastore in +sqoop-site.xml+ or 25 | with the +--meta-connect+ argument. 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/docs/user/version.txt: -------------------------------------------------------------------------------- 1 | 2 | //// 3 | Licensed to the Apache Software Foundation (ASF) under one 4 | or more contributor license agreements. See the NOTICE file 5 | distributed with this work for additional information 6 | regarding copyright ownership. The ASF licenses this file 7 | to you under the Apache License, Version 2.0 (the 8 | "License"); you may not use this file except in compliance 9 | with the License. You may obtain a copy of the License at 10 | 11 | http://www.apache.org/licenses/LICENSE-2.0 12 | 13 | Unless required by applicable law or agreed to in writing, software 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | //// 19 | 20 | 21 | +sqoop-version+ 22 | --------------- 23 | 24 | Purpose 25 | ~~~~~~~ 26 | 27 | Display version information for Sqoop. 28 | 29 | Syntax 30 | ~~~~~~ 31 | 32 | ---- 33 | $ sqoop version 34 | $ sqoop-version 35 | ---- 36 | 37 | 38 | Example Invocations 39 | ~~~~~~~~~~~~~~~~~~~ 40 | 41 | Display the version: 42 | 43 | ---- 44 | $ sqoop version 45 | Sqoop {revnumber} 46 | git commit id 46b3e06b79a8411320d77c984c3030db47dd1c22 47 | Compiled by aaron@jargon on Mon May 17 13:43:22 PDT 2010 48 | ---- 49 | 50 | -------------------------------------------------------------------------------- /src/docs/web/images/README: -------------------------------------------------------------------------------- 1 | Replaced the plain DocBook XSL admonition icons with Jimmac's DocBook 2 | icons (http://jimmac.musichall.cz/ikony.php3). I dropped transparency 3 | from the Jimmac icons to get round MS IE and FOP PNG incompatibilies. 4 | 5 | Stuart Rackham 6 | -------------------------------------------------------------------------------- /src/docs/web/images/callouts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/1.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/10.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/11.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/12.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/13.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/14.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/15.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/2.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/3.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/4.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/5.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/6.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/7.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/8.png -------------------------------------------------------------------------------- /src/docs/web/images/callouts/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/callouts/9.png -------------------------------------------------------------------------------- /src/docs/web/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/caution.png -------------------------------------------------------------------------------- /src/docs/web/images/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/example.png -------------------------------------------------------------------------------- /src/docs/web/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/home.png -------------------------------------------------------------------------------- /src/docs/web/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/important.png -------------------------------------------------------------------------------- /src/docs/web/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/next.png -------------------------------------------------------------------------------- /src/docs/web/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/note.png -------------------------------------------------------------------------------- /src/docs/web/images/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/prev.png -------------------------------------------------------------------------------- /src/docs/web/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/tip.png -------------------------------------------------------------------------------- /src/docs/web/images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/up.png -------------------------------------------------------------------------------- /src/docs/web/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/docs/web/images/warning.png -------------------------------------------------------------------------------- /src/java/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/java/.DS_Store -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/cli/RelatedOptions.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.cli; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class RelatedOptions 24 | extends org.apache.sqoop.cli.RelatedOptions { 25 | 26 | public RelatedOptions() { 27 | super(); 28 | } 29 | 30 | public RelatedOptions(final String title) { 31 | super(title); 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/cli/SqoopParser.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.cli; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class SqoopParser 24 | extends org.apache.sqoop.cli.SqoopParser { 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/cli/ToolOptions.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.cli; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class ToolOptions 25 | extends org.apache.sqoop.cli.ToolOptions { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/hbase/PutTransformer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.hbase; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class PutTransformer 25 | extends org.apache.sqoop.hbase.PutTransformer { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/hbase/ToStringPutTransformer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.hbase; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class ToStringPutTransformer 25 | extends org.apache.sqoop.hbase.ToStringPutTransformer { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/hive/HiveTypes.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.hive; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public final class HiveTypes { 25 | 26 | private HiveTypes() { } 27 | 28 | public static String toHiveType(int sqlType) { 29 | return org.apache.sqoop.hive.HiveTypes.toHiveType(sqlType); 30 | } 31 | 32 | public static boolean isHiveTypeImprovised(int sqlType) { 33 | return org.apache.sqoop.hive.HiveTypes.isHiveTypeImprovised(sqlType); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/io/NamedFifo.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.io; 19 | 20 | import java.io.File; 21 | 22 | /** 23 | * A named FIFO channel. 24 | * 25 | * @deprecated use org.apache.sqoop.io.NamedFifo instead. 26 | * @see org.apache.sqoop.io.NamedFifo 27 | */ 28 | public class NamedFifo extends org.apache.sqoop.io.NamedFifo { 29 | 30 | public NamedFifo(String pathname) { 31 | super(pathname); 32 | } 33 | 34 | public NamedFifo(File fifo) { 35 | super(fifo); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/lib/FieldMapProcessor.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.lib; 19 | 20 | /** 21 | * Interface implemented by classes that process FieldMappable objects. 22 | * 23 | * @deprecated use org.apache.sqoop.lib.FieldMapProcessor instead. 24 | * @see org.apache.sqoop.lib.FieldMapProcessor 25 | */ 26 | public interface FieldMapProcessor 27 | extends org.apache.sqoop.lib.FieldMapProcessor { 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/lib/FieldMappable.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.lib; 19 | 20 | /** 21 | * Interface describing a class capable of returning a map of the fields 22 | * of the object to their values. 23 | * 24 | * @deprecated use org.apache.sqoop.lib.FieldMappable instead. 25 | * @see org.apache.sqoop.lib.FieldMappable 26 | */ 27 | public interface FieldMappable extends org.apache.sqoop.lib.FieldMappable { 28 | 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/lib/SqoopRecord.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.lib; 19 | 20 | 21 | /** 22 | * Interface implemented by the classes generated by sqoop's orm.ClassWriter. 23 | * 24 | * @deprecated use org.apache.sqoop.lib.SqoopRecord instead. 25 | * @see org.apache.sqoop.lib.SqoopRecord 26 | */ 27 | public abstract class SqoopRecord extends org.apache.sqoop.lib.SqoopRecord { 28 | 29 | public SqoopRecord() { 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/CatalogQueryManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public abstract class CatalogQueryManager 27 | extends org.apache.sqoop.manager.CatalogQueryManager { 28 | 29 | public CatalogQueryManager(final String driverClass, 30 | final SqoopOptions opts) { 31 | super(driverClass, opts); 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/ConnManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class ConnManager 25 | extends org.apache.sqoop.manager.ConnManager { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/Db2Manager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.manager; 19 | 20 | import com.cloudera.sqoop.SqoopOptions; 21 | 22 | /** 23 | * @deprecated Moving to use org.apache.sqoop namespace. 24 | */ 25 | public class Db2Manager 26 | extends org.apache.sqoop.manager.Db2Manager { 27 | 28 | public Db2Manager(final SqoopOptions opts) { 29 | super(opts); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/DefaultManagerFactory.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public final class DefaultManagerFactory 25 | extends org.apache.sqoop.manager.DefaultManagerFactory { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/DirectMySQLManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class DirectMySQLManager 27 | extends org.apache.sqoop.manager.DirectMySQLManager { 28 | 29 | public DirectMySQLManager(final SqoopOptions options) { 30 | super(options); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/DirectPostgresqlManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class DirectPostgresqlManager 27 | extends org.apache.sqoop.manager.DirectPostgresqlManager { 28 | 29 | public DirectPostgresqlManager(final SqoopOptions opts) { 30 | super(opts); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/GenericJdbcManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class GenericJdbcManager 27 | extends org.apache.sqoop.manager.GenericJdbcManager { 28 | 29 | public GenericJdbcManager(final String driverClass, final SqoopOptions opts) { 30 | super(driverClass, opts); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/HsqldbManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class HsqldbManager 27 | extends org.apache.sqoop.manager.HsqldbManager { 28 | 29 | public HsqldbManager(final SqoopOptions opts) { 30 | super(opts); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/InformationSchemaManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public abstract class InformationSchemaManager 27 | extends org.apache.sqoop.manager.InformationSchemaManager { 28 | 29 | public InformationSchemaManager(final String driverClass, 30 | final SqoopOptions opts) { 31 | super(driverClass, opts); 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/ManagerFactory.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class ManagerFactory 25 | extends org.apache.sqoop.manager.ManagerFactory { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/MySQLManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class MySQLManager 27 | extends org.apache.sqoop.manager.MySQLManager { 28 | 29 | public MySQLManager(final SqoopOptions opts) { 30 | super(opts); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/PostgresqlManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * Manages connections to Postgresql databases. 25 | */ 26 | public class PostgresqlManager 27 | extends org.apache.sqoop.manager.PostgresqlManager { 28 | 29 | public PostgresqlManager(final SqoopOptions opts) { 30 | super(opts); 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/SQLServerManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class SQLServerManager 27 | extends org.apache.sqoop.manager.SQLServerManager { 28 | 29 | public SQLServerManager(final SqoopOptions opts) { 30 | super(opts); 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/manager/SqlManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.manager; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public abstract class SqlManager 27 | extends org.apache.sqoop.manager.SqlManager { 28 | 29 | public static final String SUBSTITUTE_TOKEN = 30 | org.apache.sqoop.manager.SqlManager.SUBSTITUTE_TOKEN; 31 | 32 | public SqlManager(final SqoopOptions opts) { 33 | super(opts); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/AvroExportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class AvroExportMapper 25 | extends org.apache.sqoop.mapreduce.AvroExportMapper { 26 | 27 | public static final String AVRO_COLUMN_TYPES_MAP = 28 | org.apache.sqoop.mapreduce.AvroExportMapper.AVRO_COLUMN_TYPES_MAP; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/AvroImportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class AvroImportMapper 25 | extends org.apache.sqoop.mapreduce.AvroImportMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/AvroInputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class AvroInputFormat 25 | extends org.apache.sqoop.mapreduce.AvroInputFormat { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/AvroOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class AvroOutputFormat 25 | extends org.apache.sqoop.mapreduce.AvroOutputFormat { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/AvroRecordReader.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class AvroRecordReader 25 | extends org.apache.sqoop.mapreduce.AvroRecordReader { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/DelegatingOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.FieldMappable; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class DelegatingOutputFormat 27 | extends org.apache.sqoop.mapreduce.DelegatingOutputFormat { 28 | 29 | public static final String DELEGATE_CLASS_KEY = 30 | org.apache.sqoop.mapreduce.DelegatingOutputFormat.DELEGATE_CLASS_KEY; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/ExportBatchOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class ExportBatchOutputFormat 27 | extends org.apache.sqoop.mapreduce.ExportBatchOutputFormat 28 | { 29 | } 30 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/HBaseImportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class HBaseImportMapper 25 | extends org.apache.sqoop.mapreduce.HBaseImportMapper { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MergeMapperBase.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MergeMapperBase 25 | extends org.apache.sqoop.mapreduce.MergeMapperBase { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MergeRecord.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class MergeRecord 27 | extends org.apache.sqoop.mapreduce.MergeRecord { 28 | 29 | public MergeRecord() { 30 | super(); 31 | } 32 | 33 | public MergeRecord(SqoopRecord sr, boolean recordIsNew) { 34 | super(sr, recordIsNew); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MergeRecordMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MergeRecordMapper 25 | extends org.apache.sqoop.mapreduce.MergeRecordMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MergeReducer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MergeReducer 25 | extends org.apache.sqoop.mapreduce.MergeReducer { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MergeTextMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MergeTextMapper 25 | extends org.apache.sqoop.mapreduce.MergeTextMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MySQLDumpInputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MySQLDumpInputFormat 25 | extends org.apache.sqoop.mapreduce.MySQLDumpInputFormat { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MySQLExportJob.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.manager.ExportJobContext; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class MySQLExportJob 27 | extends org.apache.sqoop.mapreduce.MySQLExportJob { 28 | 29 | public MySQLExportJob(final ExportJobContext context) { 30 | super(context); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MySQLRecordExportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MySQLRecordExportMapper 25 | extends org.apache.sqoop.mapreduce.MySQLRecordExportMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/MySQLTextExportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class MySQLTextExportMapper 25 | extends org.apache.sqoop.mapreduce.MySQLTextExportMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/NullOutputCommitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class NullOutputCommitter 25 | extends org.apache.sqoop.mapreduce.NullOutputCommitter { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/OracleExportOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class OracleExportOutputFormat 27 | extends org.apache.sqoop.mapreduce.OracleExportOutputFormat { 28 | } 29 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/OracleUpsertOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class OracleUpsertOutputFormat 27 | extends org.apache.sqoop.mapreduce.OracleUpsertOutputFormat { 28 | } 29 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/SQLServerExportOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class SQLServerExportOutputFormat 27 | extends org.apache.sqoop.mapreduce.SQLServerExportOutputFormat { 28 | } 29 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/SequenceFileExportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class SequenceFileExportMapper 25 | extends org.apache.sqoop.mapreduce.SequenceFileExportMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/SequenceFileImportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class SequenceFileImportMapper 25 | extends org.apache.sqoop.mapreduce.SequenceFileImportMapper { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/TextExportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class TextExportMapper 25 | extends org.apache.sqoop.mapreduce.TextExportMapper { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/TextImportMapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class TextImportMapper 25 | extends org.apache.sqoop.mapreduce.TextImportMapper { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/UpdateOutputFormat.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.mapreduce; 20 | 21 | import com.cloudera.sqoop.lib.SqoopRecord; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class UpdateOutputFormat 27 | extends org.apache.sqoop.mapreduce.UpdateOutputFormat { 28 | } 29 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/db/BigDecimalSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Implement DBSplitter over BigDecimal values. 23 | * 24 | * @deprecated use org.apache.sqoop.mapreduce.db.BigDecimalSplitter instead. 25 | * @see org.apache.sqoop.mapreduce.db.BigDecimalSplitter 26 | */ 27 | public class BigDecimalSplitter 28 | extends org.apache.sqoop.mapreduce.db.BigDecimalSplitter { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/db/BooleanSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Implement DBSplitter over boolean values. 23 | * 24 | * @deprecated use org.apache.sqoop.mapreduce.db.BooleanSplitter instead. 25 | * @see org.apache.sqoop.mapreduce.db.BooleanSplitter 26 | */ 27 | public class BooleanSplitter 28 | extends org.apache.sqoop.mapreduce.db.BooleanSplitter { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/db/DateSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Implement DBSplitter over date/time values. 23 | * Make use of logic from IntegerSplitter, since date/time are just longs 24 | * in Java. 25 | * 26 | * @deprecated use org.apache.sqoop.mapreduce.db.DateSplitter instead. 27 | * @see org.apache.sqoop.mapreduce.db.DateSplitter 28 | */ 29 | public class DateSplitter extends org.apache.sqoop.mapreduce.db.DateSplitter { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/db/FloatSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Implement DBSplitter over floating-point values. 23 | * 24 | * @deprecated use org.apache.sqoop.mapreduce.db.FloatSplitter instead. 25 | * @see org.apache.sqoop.mapreduce.db.FloatSplitter 26 | */ 27 | public class FloatSplitter 28 | extends org.apache.sqoop.mapreduce.db.FloatSplitter { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/mapreduce/db/TextSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Implement DBSplitter over text strings. 23 | * 24 | * @deprecated use org.apache.sqoop.mapreduce.db.TextSplitter instead. 25 | * @see org.apache.sqoop.mapreduce.db.TextSplitter 26 | */ 27 | public class TextSplitter extends org.apache.sqoop.mapreduce.db.TextSplitter { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/metastore/JobData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.metastore; 20 | 21 | import com.cloudera.sqoop.SqoopOptions; 22 | import com.cloudera.sqoop.tool.SqoopTool; 23 | 24 | /** 25 | * @deprecated Moving to use org.apache.sqoop namespace. 26 | */ 27 | public class JobData 28 | extends org.apache.sqoop.metastore.JobData { 29 | 30 | public JobData() { 31 | super(); 32 | } 33 | 34 | public JobData(SqoopOptions options, SqoopTool sqoopTool) { 35 | super(options, sqoopTool); 36 | } 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/metastore/JobStorage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.metastore; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class JobStorage 25 | extends org.apache.sqoop.metastore.JobStorage { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/orm/AvroSchemaGenerator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.orm; 19 | 20 | import com.cloudera.sqoop.SqoopOptions; 21 | import com.cloudera.sqoop.manager.ConnManager; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class AvroSchemaGenerator 27 | extends org.apache.sqoop.orm.AvroSchemaGenerator { 28 | 29 | public AvroSchemaGenerator(final SqoopOptions opts, final ConnManager connMgr, 30 | final String table) { 31 | super(opts, connMgr, table); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/orm/TableClassName.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.orm; 19 | 20 | import com.cloudera.sqoop.SqoopOptions; 21 | 22 | /** 23 | * @deprecated Moving to use org.apache.sqoop namespace. 24 | */ 25 | public class TableClassName 26 | extends org.apache.sqoop.orm.TableClassName { 27 | 28 | public TableClassName(final SqoopOptions opts) { 29 | super(opts); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/CodeGenTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class CodeGenTool 24 | extends org.apache.sqoop.tool.CodeGenTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/CreateHiveTableTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class CreateHiveTableTool 24 | extends org.apache.sqoop.tool.CreateHiveTableTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/EvalSqlTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class EvalSqlTool 24 | extends org.apache.sqoop.tool.EvalSqlTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ExportTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ExportTool 24 | extends org.apache.sqoop.tool.ExportTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/HelpTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class HelpTool 24 | extends org.apache.sqoop.tool.HelpTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ImportAllTablesTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ImportAllTablesTool 24 | extends org.apache.sqoop.tool.ImportAllTablesTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ImportTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ImportTool 24 | extends org.apache.sqoop.tool.ImportTool { 25 | 26 | public ImportTool() { 27 | super(); 28 | } 29 | 30 | public ImportTool(String toolName, boolean allTables) { 31 | super(toolName, allTables); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/JobTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class JobTool 24 | extends org.apache.sqoop.tool.JobTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ListDatabasesTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ListDatabasesTool 24 | extends org.apache.sqoop.tool.ListDatabasesTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ListTablesTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ListTablesTool 24 | extends org.apache.sqoop.tool.ListTablesTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/MergeTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class MergeTool 24 | extends org.apache.sqoop.tool.MergeTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/MetastoreTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class MetastoreTool 24 | extends org.apache.sqoop.tool.MetastoreTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ToolDesc.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class ToolDesc 24 | extends org.apache.sqoop.tool.ToolDesc { 25 | 26 | public ToolDesc(String name, Class cls, String desc) { 27 | super(name, cls, desc); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/ToolPlugin.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public abstract class ToolPlugin 24 | extends org.apache.sqoop.tool.ToolPlugin { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/tool/VersionTool.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.tool; 19 | 20 | /** 21 | * @deprecated Moving to use org.apache.sqoop namespace. 22 | */ 23 | public class VersionTool 24 | extends org.apache.sqoop.tool.VersionTool { 25 | } 26 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/AppendUtils.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | import com.cloudera.sqoop.manager.ImportJobContext; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class AppendUtils 27 | extends org.apache.sqoop.util.AppendUtils { 28 | 29 | public AppendUtils(ImportJobContext context) { 30 | super(context); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/AsyncSink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class AsyncSink 25 | extends org.apache.sqoop.util.AsyncSink { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/ErrorableAsyncSink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class ErrorableAsyncSink 25 | extends org.apache.sqoop.util.ErrorableAsyncSink { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/ErrorableThread.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public abstract class ErrorableThread 25 | extends org.apache.sqoop.util.ErrorableThread { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/LoggingAsyncSink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | import org.apache.commons.logging.Log; 22 | 23 | /** 24 | * @deprecated Moving to use org.apache.sqoop namespace. 25 | */ 26 | public class LoggingAsyncSink 27 | extends org.apache.sqoop.util.LoggingAsyncSink { 28 | 29 | public LoggingAsyncSink(final Log context) { 30 | super(context); 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/LoggingUtils.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | import java.sql.SQLException; 22 | 23 | import org.apache.commons.logging.Log; 24 | 25 | /** 26 | * @deprecated Moving to use org.apache.sqoop namespace. 27 | */ 28 | public final class LoggingUtils { 29 | 30 | private LoggingUtils() { } 31 | 32 | public static void logAll(Log log, SQLException e) { 33 | org.apache.sqoop.util.LoggingUtils.logAll(log, e); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/NullAsyncSink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class NullAsyncSink 25 | extends org.apache.sqoop.util.NullAsyncSink { 26 | } 27 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/PerfCounters.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class PerfCounters 25 | extends org.apache.sqoop.util.PerfCounters { 26 | 27 | public PerfCounters() { 28 | super(); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/RandomHash.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public final class RandomHash { 25 | 26 | private RandomHash() { } 27 | 28 | public static byte [] generateMD5Bytes() { 29 | return org.apache.sqoop.util.RandomHash.generateMD5Bytes(); 30 | } 31 | 32 | public static String generateMD5String() { 33 | return org.apache.sqoop.util.RandomHash.generateMD5String(); 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/ResultSetPrinter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class ResultSetPrinter 25 | extends org.apache.sqoop.util.ResultSetPrinter { 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/java/com/cloudera/sqoop/util/SubprocessSecurityManager.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.cloudera.sqoop.util; 20 | 21 | /** 22 | * @deprecated Moving to use org.apache.sqoop namespace. 23 | */ 24 | public class SubprocessSecurityManager 25 | extends org.apache.sqoop.util.SubprocessSecurityManager { 26 | 27 | public SubprocessSecurityManager() { 28 | super(); 29 | } 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/java/org/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/java/org/.DS_Store -------------------------------------------------------------------------------- /src/java/org/apache/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/java/org/apache/.DS_Store -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dkhadoop/dk-sqoop-plus/cdd9641879c0274d9aa99528da60eac11809a169/src/java/org/apache/sqoop/.DS_Store -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/manager/ESManager.java: -------------------------------------------------------------------------------- 1 | package org.apache.sqoop.manager; 2 | 3 | import com.cloudera.sqoop.SqoopOptions; 4 | import com.cloudera.sqoop.mapreduce.ExportBatchOutputFormat; 5 | import com.cloudera.sqoop.mapreduce.JdbcExportJob; 6 | import com.cloudera.sqoop.util.ExportException; 7 | 8 | import java.io.IOException; 9 | 10 | /** 11 | * Created by root on 17/6/1. 12 | */ 13 | public class ESManager extends com.cloudera.sqoop.manager.GenericJdbcManager{ 14 | 15 | public ESManager(String driverClass, SqoopOptions opts) { 16 | super(driverClass, opts); 17 | } 18 | @Override 19 | public void exportTable(com.cloudera.sqoop.manager.ExportJobContext context) 20 | throws IOException, ExportException { 21 | context.setConnManager(this); 22 | JdbcExportJob exportJob = new JdbcExportJob(context, null, null, 23 | ExportBatchOutputFormat.class); 24 | exportJob.runExport(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/mapreduce/ESExportJob.java: -------------------------------------------------------------------------------- 1 | package org.apache.sqoop.mapreduce; 2 | 3 | import com.cloudera.sqoop.manager.ExportJobContext; 4 | import com.cloudera.sqoop.mapreduce.*; 5 | 6 | /** 7 | * Created by root on 17/6/1. 8 | */ 9 | public class ESExportJob extends com.cloudera.sqoop.mapreduce.ExportJobBase{ 10 | public ESExportJob(ExportJobContext ctxt) { 11 | super(ctxt); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/mapreduce/db/NTextSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.sqoop.mapreduce.db; 19 | 20 | /** 21 | * Implement DBSplitter over native text strings. 22 | */ 23 | public class NTextSplitter extends TextSplitter { 24 | 25 | public NTextSplitter() { 26 | setUseNCharStrings(true); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/mapreduce/mainframe/MainframeConfiguration.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.sqoop.mapreduce.mainframe; 19 | 20 | public class MainframeConfiguration 21 | { 22 | public static final String MAINFRAME_INPUT_DATASET_NAME 23 | = "mapreduce.mainframe.input.dataset.name"; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/util/ErrorableThread.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.sqoop.util; 20 | 21 | /** 22 | * A thread which has an error bit which can be set from within the thread. 23 | */ 24 | public abstract class ErrorableThread extends Thread { 25 | 26 | private volatile boolean error; 27 | 28 | public ErrorableThread() { 29 | this.error = false; 30 | } 31 | 32 | protected void setError() { 33 | this.error = true; 34 | } 35 | 36 | public boolean isErrored() { 37 | return this.error; 38 | } 39 | 40 | } 41 | 42 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/validation/ValidationException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.sqoop.validation; 20 | 21 | /** 22 | * An implementation of Exception that is used to propagate 23 | * validation related errors or failures. 24 | */ 25 | public class ValidationException extends Exception { 26 | 27 | public ValidationException(String message) { 28 | super(message); 29 | } 30 | 31 | @Override 32 | public String toString() { 33 | String msg = getMessage(); 34 | return (null == msg) ? "ValidationException" : msg; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/java/org/apache/sqoop/validation/ValidationThreshold.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.sqoop.validation; 20 | 21 | /** 22 | * This is the primary interface that is responsible for driving the actual 23 | * decision on validation based on an optional error margin threshold. 24 | */ 25 | public interface ValidationThreshold { 26 | 27 | void setThresholdValue(long value); 28 | 29 | boolean compare(Comparable left, Comparable right); 30 | } 31 | -------------------------------------------------------------------------------- /src/scripts/tool-script.cmd.template: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Licensed to the Apache Software Foundation (ASF) under one or more 3 | :: contributor license agreements. See the NOTICE file distributed with 4 | :: this work for additional information regarding copyright ownership. 5 | :: The ASF licenses this file to You under the Apache License, Version 2.0 6 | :: (the "License"); you may not use this file except in compliance with 7 | :: the License. You may obtain a copy of the License at 8 | :: 9 | :: 10 | :: http://www.apache.org/licenses/LICENSE-2.0 11 | :: 12 | :: Unless required by applicable law or agreed to in writing, software 13 | :: distributed under the License is distributed on an "AS IS" BASIS, 14 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | :: See the License for the specific language governing permissions and 16 | :: limitations under the License. 17 | 18 | setlocal 19 | 20 | set prgm=%~f0 21 | set bin=%~dp0 22 | if "%bin:~-1%" == "\" ( 23 | set bin=%bin:~0,-1% 24 | ) 25 | 26 | call "%bin%\sqoop.cmd" SUBCOMMANDMARKER %* 27 | -------------------------------------------------------------------------------- /src/scripts/tool-script.sh.template: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright 2011 The Apache Software Foundation 4 | # 5 | # Licensed to the Apache Software Foundation (ASF) under one 6 | # or more contributor license agreements. See the NOTICE file 7 | # distributed with this work for additional information 8 | # regarding copyright ownership. The ASF licenses this file 9 | # to you under the Apache License, Version 2.0 (the 10 | # "License"); you may not use this file except in compliance 11 | # with the License. You may obtain a copy of the License at 12 | # 13 | # http://www.apache.org/licenses/LICENSE-2.0 14 | # 15 | # Unless required by applicable law or agreed to in writing, 16 | # software distributed under the License is distributed on an 17 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | # KIND, either express or implied. See the License for the 19 | # specific language governing permissions and limitations 20 | # under the License. 21 | 22 | prgm=`readlink -f $0` 23 | bin=`dirname ${prgm}` 24 | bin=`cd ${bin} && pwd` 25 | 26 | exec ${bin}/sqoop SUBCOMMANDMARKER "$@" 27 | -------------------------------------------------------------------------------- /src/test/checkstyle-java-header.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | -------------------------------------------------------------------------------- /src/test/com/cloudera/sqoop/mapreduce/db/TestIntegerSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Test that the IntegerSplitter generates sane splits. 23 | * 24 | * @deprecated use org.apache.sqoop.mapreduce.db.TestIntegerSplitter isntead. 25 | * @see org.apache.sqoop.mapreduce.db.TestIntegerSplitter 26 | */ 27 | public class TestIntegerSplitter 28 | extends org.apache.sqoop.mapreduce.db.TestIntegerSplitter { 29 | 30 | public void testDummy() { 31 | // Nothing to do 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/test/com/cloudera/sqoop/mapreduce/db/TestTextSplitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package com.cloudera.sqoop.mapreduce.db; 19 | 20 | 21 | /** 22 | * Test that the TextSplitter implementation creates a sane set of splits. 23 | * @deprecated use org.apache.sqoop.mapreduce.db.TestTextSplitter instead. 24 | * @see org.apache.sqoop.mapreduce.db.TestTextSplitter 25 | */ 26 | public class TestTextSplitter extends 27 | org.apache.sqoop.mapreduce.db.TestTextSplitter { 28 | 29 | public void testDummy() { 30 | // Nothing to do 31 | } 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/test/fi-site.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | fi.* 25 | 0.10 26 | 27 | Default probability level for all injected faults specified 28 | as a floating number between 0 and 1.00 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/test/org/apache/sqoop/manager/oracle/util/BinaryDoubleGenerator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.sqoop.manager.oracle.util; 20 | 21 | /** 22 | * Generates Double test data. Test data is distributed over the entire range of 23 | * possible doubles, including NaN, positive and negative infinity and positive 24 | * and negative zero. 25 | */ 26 | public class BinaryDoubleGenerator extends OraOopTestDataGenerator { 27 | @Override 28 | public Double next() { 29 | return Double.longBitsToDouble(rng.nextLong()); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/test/org/apache/sqoop/manager/oracle/util/BinaryFloatGenerator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.sqoop.manager.oracle.util; 20 | 21 | /** 22 | * Generates Float test data. Test data is distributed over the entire range of 23 | * possible floats, including NaN, positive and negative infinity and positive 24 | * and negative zero. 25 | */ 26 | public class BinaryFloatGenerator extends OraOopTestDataGenerator { 27 | @Override 28 | public Float next() { 29 | return Float.intBitsToFloat(rng.nextInt()); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /testdata/DatatypeTestData-export-lite.txt: -------------------------------------------------------------------------------- 1 | BIGINT,9223372036854775807,9223372036854775807,9223372036854775807,POS 2 | DECIMAL,999999999999999999,999999999999999999,999999999999999999,18,0,POS 3 | INT,2147483647,2147483647,2147483647,POS 4 | MONEY,9223372036,9223372036.0000,9223372036.0000,POS 5 | SMALLINT,-32768,-32768,-32768,POS 6 | TINYINT,0,0,0,POS 7 | FLOAT,-2.23E-308,-2.23E-308,-2.23E-308,POS 8 | REAL,1000.0001,1000.0001,1000.0001,POS 9 | DATE,0001-01-01,0001-01-01,0001-01-01,POS 10 | TIME,00:00:00.0000000,00:00:00.0000000,00:00:00,POS 11 | CHAR,P,P,P,1,POS 12 | VARCHAR,P,P,P,1,POS 13 | NCHAR,L,L,L,1,POS 14 | NVARCHAR,P,P,P,1,POS 15 | SMALLDATETIME, 1900-01-01 23:58:58,1900-01-01 23:59:00.0,1900-01-01 23:59:00.0,POS 16 | DATETIME2,9999-12-31 23:59:59.90,9999-12-31 23:59:59.9000000,9999-12-31 23:59:59.9,POS 17 | DATETIME,9999-12-31 23:59:59.997,9999-12-31 23:59:59.997,9999-12-31 23:59:59.997,POS 18 | -------------------------------------------------------------------------------- /testdata/DatatypeTestData-import-lite.txt: -------------------------------------------------------------------------------- 1 | BIGINT,-9223372036854775808,-9223372036854775808,-9223372036854775808,POS 2 | DECIMAL,1000.0001,1000.00010,1000.00010,10,5,POS 3 | INT,-2147483648,-2147483648,-2147483648,POS 4 | MONEY,92233720,92233720.0000,92233720.0000,POS 5 | SMALLINT,-32768,-32768,-32768,POS 6 | SMALLMONEY,-214748.3648,-214748.3648,-214748.3648,POS 7 | TINYINT,0,0,0,POS 8 | FLOAT,1.7976931348623157,1.7976931348623155,1.7976931348623155,POS 9 | REAL,3.4028234663852886,3.4028234,3.4028234,POS 10 | DATE,0001-01-01,0001-01-01,0001-01-01,POS 11 | DATETIME2,0001-01-01 00:00:00,0001-01-01 00:00:00.0000000,0001-01-01 00:00:00.0,POS 12 | SMALLDATETIME,1900-01-01,1900-01-01 00:00:00.0,1900-01-01 00:00:00.0,POS 13 | DATETIME,1753-01-01 00:00:00,1753-01-01 00:00:00.0,1753-01-01 00:00:00.0,POS 14 | TIME,00:00:00.0000000,00:00:00.0000000,00:00:00,POS 15 | CHAR,P,P,P,1,POS 16 | VARCHAR,P,P,P,1,POS 17 | NCHAR,L,L,L,1,POS 18 | NVARCHAR,P,P,P,1,POS 19 | BINARY,1,31,31,1,POS 20 | VARBINARY,1,31,31,100,POS -------------------------------------------------------------------------------- /testdata/aaa/a: -------------------------------------------------------------------------------- 1 | 1,2 2 | 3,4 3 | 4,5 4 | -------------------------------------------------------------------------------- /testdata/hcatalog/conf/hive-site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | kite.hive.allow-local-metastore 4 | true 5 | 6 | 7 | hive.metastore.local 8 | true 9 | 10 | 11 | hive.metastore.warehouse.dir 12 | ${test.build.data}/sqoop/warehouse 13 | 14 | 15 | hive.metastore.uris 16 | 17 | 18 | 19 | javax.jdo.option.ConnectionURL 20 | jdbc:derby:;databaseName=${test.build.data}/sqoop/metastore_db;create=true 21 | 22 | 23 | javax.jdo.option.ConnectionDriverName 24 | org.apache.derby.jdbc.EmbeddedDriver 25 | 26 | 27 | hive.querylog.location 28 | ${test.build.data}/sqoop/logs 29 | 30 | 31 | -------------------------------------------------------------------------------- /testdata/hive/scripts/createOnlyImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `CREATE_ONLY_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | -------------------------------------------------------------------------------- /testdata/hive/scripts/createOverwriteImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE `CREATE_OVERWRITE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | -------------------------------------------------------------------------------- /testdata/hive/scripts/customDelimImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `CUSTOM_DELIM_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\054' LINES TERMINATED BY '\174' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/CUSTOM_DELIM_IMPORT' INTO TABLE `CUSTOM_DELIM_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/dateImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `DATE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/DATE_HIVE_IMPORT' INTO TABLE `DATE_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/failingImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `DATE_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/DATE_HIVE_IMPORT' INTO TABLE `DATE_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/fieldWithNewlineImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `FIELD_WITH_NL_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/FIELD_WITH_NL_HIVE_IMPORT' INTO TABLE `FIELD_WITH_NL_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/fieldWithNewlineReplacementImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT' INTO TABLE `FIELD_WITH_NL_REPLACEMENT_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/normalImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `NORMAL_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/NORMAL_HIVE_IMPORT' INTO TABLE `NORMAL_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/normalImportAsParquet.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `NORMAL_HIVE_IMPORT_AS_PARQUET` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS PARQUET; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/NORMAL_HIVE_IMPORT_AS_PARQUET' INTO TABLE `NORMAL_HIVE_IMPORT_AS_PARQUET`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/numericImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `NUMERIC_HIVE_IMPORT` ( `DATA_COL0` DOUBLE, `DATA_COL1` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/NUMERIC_HIVE_IMPORT' INTO TABLE `NUMERIC_HIVE_IMPORT`; 18 | -------------------------------------------------------------------------------- /testdata/hive/scripts/partitionImport.q: -------------------------------------------------------------------------------- 1 | -- Licensed to the Apache Software Foundation (ASF) under one 2 | -- or more contributor license agreements. See the NOTICE file 3 | -- distributed with this work for additional information 4 | -- regarding copyright ownership. The ASF licenses this file 5 | -- to you under the Apache License, Version 2.0 (the 6 | -- "License"); you may not use this file except in compliance 7 | -- with the License. You may obtain a copy of the License at 8 | -- 9 | -- http://www.apache.org/licenses/LICENSE-2.0 10 | -- 11 | -- Unless required by applicable law or agreed to in writing, software 12 | -- distributed under the License is distributed on an "AS IS" BASIS, 13 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | -- See the License for the specific language governing permissions and 15 | -- limitations under the License. 16 | CREATE TABLE IF NOT EXISTS `PARTITION_HIVE_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) PARTITIONED BY (ds STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\001' LINES TERMINATED BY '\012' STORED AS TEXTFILE; 17 | LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/PARTITION_HIVE_IMPORT' INTO TABLE `PARTITION_HIVE_IMPORT` PARTITION (ds='20110413'); 18 | --------------------------------------------------------------------------------