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