# Extract Sqoop tar tar -xf sqoop- <version>-bin-hadoop <hadoop-version>.tar.gz # Move decompressed content to any location (you can also setup soft links to sqoop directory) mv sqoop- <version>-bin-hadoop <hadoop version>.tar.gz /opt/apache/sqoop # Change working directory cd /opt/apache/sqoop
./bin/addtowar.sh -hadoop-auto
./bin/addtowar.sh -hadoop-version 2.0 -hadoop-path /usr/lib/hadoop-common:/usr/lib/hadoop-hdfs:/usr/lib/hadoop-yarn
./bin/addtowar.sh -jars /path/to/jar/mysql-connector-java-*-bin.jar
./bin/sqoop.sh server start ./bin/sqoop.sh server stop
bin/sqoop.sh client
# Configure our Sqoop 2 server automatically set server --host sqoop2.company.net # Run in verbose mode by default set option --name verbose --value true