Install Sqoop RPMs.
On all nodes where you plan to use the Sqoop client, install the RPMs:
For RHEL/CentOS:
yum install sqoop
For SLES:
zypper install sqoop
Optional: Download and add database connector.
If you plan to migrate data from HDFS/Hive/HBase to database, you must have appropriate database connector (MySQL/Oracle/PostgreSQL) JAR file.
For MySQL:
Execute the following command on the Sqoop host machine:
For RHEL/CentOS:
yum install mysql-connector-java
For SLES:
zypper install mysql-connector-java
Copy the JAR file to
.$SQOOP_HOME
/lib$SQOOP_HOME
is by default set to/usr/lib/sqoop/
.Ensure that the JAR file has appropriate permissions.
For Oracle: Note that the following instructions are for OJDBC driver for Oracle 11g.
Download the Oracle JDBC (OJDBC) driver from here.
Copy the JAR file to
.$SQOOP_HOME
/lib$SQOOP_HOME
is by default set to/usr/lib/sqoop/
.Ensure that the JAR file has appropriate permissions.
For PostgreSQL:
Execute the following command on the Sqoop host machine:
For RHEL/CentOS:
yum install postgresql-jdbc
For SLES:
zypper install postgresql-jdbc
Copy the downloaded JAR file to
directory.$SQOOP_HOME
/lib$SQOOP_HOME
is by default set to/usr/lib/sqoop/
.Ensure that the JAR file has appropriate permissions.