我正在尝试从用 Java 编写的 Lambda 代码调用 AWS Glue 中的作业。
但我无法获得 Glue 客户端。
就像我们有这样的 DynamoClient -
AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard().withRegion("us-east-1").build();
Glue Client 的等效项是什么?
AWSGlueClient glue = null; // how to instantiate client
StartJobRunRequest jobRunRequest = new StartJobRunRequest();
jobRunRequest.setJobName("TestJob");
StartJobRunResult jobRunResult = glue.startJobRun(jobRunRequest);
我没有看到 Amazon Glue ClientBuilder 类。
由于我是胶水新手,请告诉我是否做错了或者我可以使用其他方式来调用胶水作业。
我还使用以下 Maven 依赖项 -
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-glue</artifactId>
<version>1.11.289</version>
</dependency>
等价的是
AWSGlueClient.builder().withRegion("us-east-1").build()
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)