Command Line Upgrade
Also available as:
loading table of contents...

Configure and Start Apache Sqoop


The su commands in this section use keywords to represent the Service user. For example, "hdfs" is used to represent the HDFS Service user. If you are using another name for your Service users, you need to substitute your Service user name in each of the su commands.

  1. Replace your configuration after upgrading. Copy /etc/sqoop/conf from the template to the conf directory in sqoop hosts.

  2. Upload the Apache Sqoop tarball to HDFS. As the <HDFS_User>, for example 'hdfs':

    su - hdfs -c "hdfs dfs -mkdir -p /hdp/apps/<$version>/sqoop"

    su - hdfs -c "hdfs dfs -chmod -R 555 /hdp/apps/<$version>/sqoop"

    su - hdfs -c "hdfs dfs -chown -R hdfs:hadoop /hdp/apps/<$version>/sqoop"

    su - hdfs -c "hdfs dfs -put /usr/hdp/<$version>/sqoop/sqoop.tar.gz /hdp/apps/<$version>/sqoop/sqoop.tar.gz"

    su - hdfs -c "hdfs dfs -chmod 444 /hdp/apps/<$version>/sqoop/sqoop.tar.gz" hdfs

  3. To validate the Sqoop upgrade, run the following command. You should see the Sqoop version information displayed.

    sqoop version | grep 'Sqoop [0-9].*'

    Because Sqoop is a client tool with no server component, you need to run your own jobs to further validate the upgrade.