Sqoop
is a tool designed to transfer data between Hadoop and relational databases.
You can use Sqoop to import data from a relational database management system
(RDBMS) such as MySQL or Oracle into the Hadoop Distributed File System (HDFS),
transform the data in Hadoop MapReduce, and then export the data back into an
RDBMS.
The eval tool allows users to quickly run simple SQL queries
against a database; results are printed to the console. This allows users to
preview their import queries to ensure they import the data they expect.
sqoop-eval
--connect jdbc:oracle:thin:@db.test.com:PORT:INSTANCE_NAME --select * from
DW_DATAMART.HCM_COMPANY_D