Quest® Data Connector for Oracle and Hadoop is an optional plugin to Sqoop. It facilitates the movement of data between Oracle and Hadoop.
To check the source code out you will need Git.
You will need to have the following in order to compile the project:
You will also need to install the Oracle JDBC driver into your local maven repository with the following command:
mvn install:install-file -Dfile=ojdbc6.jar -Dpackaging=jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.2.0
-
To get a copy of the source code:
git clone http://github.com/QuestSoftwareTCD/OracleSQOOPconnector.git
-
To compile and generate jar archive:
cd OracleSQOOPConnector mvn package -DskipTests
-
To compile and generate jar archive including running tests:
-
Modify
src/test/resources/oraoop-test-env.properties
to suit your environment. The user should have all the required privileges as documented in the user guide. -
Run maven without skipping the tests:
mvn package
-
-
Generate the Eclipse project with the following:
mvn eclipse:eclipse
-
Import the project into the Eclipse workspace.
-
Create a new Run Configuration for the project.
-
Specify com.cloudera.sqoop.Sqoop as the main class.
-
Set the working directory - by default data will be created in the working directory.
-
You can now pass program arguments as normal, for example:
import -Dsqoop.connection.factories=com.quest.oraoop.OraOopManagerFactory --connect jdbc:oracle:thin:@//hostname:port:service --username username --password password --table oracle_table --target-dir target_dir
This will run Sqoop with the default configuration - you can set the SQOOP_CONF_DIR
environment variable if needed. It will pick up the oraoop-site-template.xml and oraoop-site.xml configuration files by default.