在AWS Glue CLI中,可以使用以下命令来设置作业参数:
aws glue start-job-run --job-name --arguments = = ...
其中,
是您要运行的作业的名称,
和
是您要设置的作业参数的名称和值。
例如,假设您要设置两个参数,一个名为input
,值为s3://my-bucket/input/
,另一个名为output
,值为s3://my-bucket/output/
。可以使用以下命令:
aws glue start-job-run --job-name my-job --arguments input=s3://my-bucket/input/ output=s3://my-bucket/output/
注意,如果参数值中包含空格或其他特殊字符,应将其放在引号中。
aws glue start-job-run --job-name my-job --arguments "input=s3://my-bucket/input/ with spaces" output=s3://my-bucket/output/