Skip to content

Commit 98d2f1a

Browse files
committed
updated Glue examples
1 parent 1b17a7c commit 98d2f1a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

javav2/example_code/glue/src/main/java/com/example/glue/scenario/GlueScenario.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)