Skip to content

vrangan/OracleSQOOPconnector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quest® Data Connector for Oracle and Hadoop

Quest® Data Connector for Oracle and Hadoop is an optional plugin to Sqoop. It facilitates the movement of data between Oracle and Hadoop.

Development Prerequisites

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

Getting Started

  1. To get a copy of the source code:

     git clone http://github.com/QuestSoftwareTCD/OracleSQOOPconnector.git
    
  2. To compile and generate jar archive:

     cd OracleSQOOPConnector
     mvn package -DskipTests
    
  3. 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
      

Using Eclipse

  1. Generate the Eclipse project with the following:

     mvn eclipse:eclipse
    
  2. Import the project into the Eclipse workspace.

  3. Create a new Run Configuration for the project.

  4. Specify com.cloudera.sqoop.Sqoop as the main class.

  5. Set the working directory - by default data will be created in the working directory.

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

About

Quest Data Connector for Oracle and Hadoop

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.4%
  • Shell 1.6%