Monday, November 30, 2015

Sqoop setting (CDH)

  1. Creating password file
    1. echo -n password > .password
    2. hdfs dfs -put .password /user/$USER/
  2. Installing the MySQL JDBC driver in CDH
    1. mkdir -p /var/lib/sqoop 
    2. chown sqoop:sqoop /var/lib/sqoop 
    3. chmod 755 /var/lib/sqoop
    4. donwload JDBC dirver from http://dev.mysql.com/downloads/connector/j/5.1.html
    5. sudo cp mysql-connector-java-version/mysql-connector-java-<version>-bin.jar /var/lib/sqoop/

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.