@@ -102,20 +102,20 @@ public static void main(String[] args) throws InterruptedException {
102102 bucketNameSc - The Amazon S3 bucket name used when creating a job
103103 """ ;
104104
105- // if (args.length != 9) {
106- // System.out.println(usage);
107- // return;
108- // }
105+ if (args .length != 9 ) {
106+ System .out .println (usage );
107+ return ;
108+ }
109109 Scanner scanner = new Scanner (System .in );
110- String iam = "arn:aws:iam::814548047983:role/AWSGlueServiceRoleDefault" ; // args[0];
111- String s3Path = "s3://glue-demo-scott/read" ; // args[1];
112- String cron = "cron(15 12 * * ? *)" ; // args[2];
113- String dbName = "glue-db2" ; // args[3];
114- String crawlerName = "crawl2019" ; // args[4];
115- String jobName = "glue-job61" ; // args[5];
116- String scriptLocation = "s3://aws-glue-scripts-814548047983-us-east-1/PowerUserScott/flight_etl_job_script.py" ; // args[6];
117- String locationUri = "s3://crawler-public-us-east-1/flight/2016/csv/" ; // args[7];
118- String bucketNameSc = "glue-demo-scott" ; // args[8];
110+ String iam = args [0 ];
111+ String s3Path = args [1 ];
112+ String cron = args [2 ];
113+ String dbName = args [3 ];
114+ String crawlerName = args [4 ];
115+ String jobName = args [5 ];
116+ String scriptLocation = args [6 ];
117+ String locationUri = args [7 ];
118+ String bucketNameSc = args [8 ];
119119
120120 Region region = Region .US_EAST_1 ;
121121 GlueClient glueClient = GlueClient .builder ()
0 commit comments