daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Apr 27th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sqoop list-databases \
  2.  --connect "jdbc:mysql://39.108.134.224:3306" \
  3.  --username huhy \
  4.  --password 1q2w3e4r
  5.  
  6. sqoop list-tables \
  7.  --connect "jdbc:mysql://39.108.134.224:3306/duilu_ext" \
  8.  --username huhy \
  9.  --password 1q2w3e4r
  10.  
  11. sqoop import \
  12.  --connect "jdbc:mysql://39.108.134.224:3306/duilu_ext" \
  13.  --username huhy \
  14.  --password 1q2w3e4r \
  15.  --table sqoop_test \
  16.  --fields-terminated-by '\t' \
  17.  --target-dir /user/root/test1 \
  18.  -m 1
  19.  
  20. sqoop export \
  21.  --connect "jdbc:mysql://39.108.134.224:3306/duilu_ext" \
  22.  --username huhy \
  23.  --password 1q2w3e4r \
  24.  --table sqoop_test_back \
  25.  --export-dir hdfs://master:9000/user/root/test1 \
  26.  --input-fields-terminated-by '\t' \
  27.  --input-lines-terminated-by '\n' \
  28.  -m 1 \
  29.  --update-key timestrap \
  30.  --update-mode allowinsert
  31.  
  32.  sqoop export \
  33.  --connect jdbc:mysql://39.108.134.224:3306/mapreduce \
  34.  --username huhy \
  35.  --password 1q2w3e4r \
  36.  --table ecommerce_visit \
  37.  --export-dir hdfs://master:9000/mapreduce/output/PvUvCount/`date -d last-day +%Y-%m-%d`/ \
  38.  --input-fields-terminated-by '\t' \
  39.  --input-lines-terminated-by '\n' \
  40.  -m 1 \
  41.  --update-key 'channel_id,date' \
  42.  --update-mode allowinsert
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top