# !/bin/sh
# You can list excluded table here or you can list it in some file and call
# it here.
exclude_tables="tab1,tab2"
import-all-tables --connect jdbc:mysql://192.168.0.101/mysql -username test \
-P --warehouse-dir /home/user_all_tables --exclude-tables $exclude_tables -m 1
echo "Sqoop import completed."
exit 0
1条答案
按热度按时间kninwzqo1#
您可以通过编写类似这样的shell脚本来实现它。