sqoop文档展示了 --options-file
作为:
#
# Options file for Sqoop import
#
# Specifies the tool being invoked
import
# Connect parameter and value
--connect
jdbc:mysql://localhost/db
# Username parameter and value
--username
foo
#
# Remaining options should be specified in the command line.
#
如上所述,如果它只是连接信息,并且根据注解,所有剩余的选项都应该在命令行中指定,为什么它在命令行中 --options-file
而不是 --connection-param-file
?
1条答案
按热度按时间qhhrdooz1#
应在命令行中指定注解剩余选项会产生误导。它只是显示在选项文件中可以有注解。但是,这并不意味着不能指定更多选项。
我正在使用sqoop的选项文件,它们包含连接详细信息以及
--num-mappers
或者--fields-terminated-by
.