Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # Example command to run: ./sqoop_warehouse_to_hive_db warehouse_table_name table_partition_column
  2.  
  3. echo "Running sqoop import on table: $1 with key $2. If this is not correct, exit now with CTRL-C - Nick"
  4. sleep 5
  5. sqoop import --connect jdbc:db2://server.host.name:port/DatabaseName --username user123 --password pass456 \
  6. --table $1 --split-by $2 --fields-terminated-by '\t' \
  7. --hive-overwrite --hive-import --hive-table $1 --hive-database warehouse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement