--options-file 与 --connection-param-file 有何不同



>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

注释"应在命令行中指定其余选项"具有误导性。它只是为了表明可以在选项文件中添加注释。但是,这并不意味着您不能指定更多选项。

我正在使用 Sqoop 的选项文件,它们包含连接详细信息以及--num-mappers--fields-terminated-by

最新更新