bowenli86 closed pull request #5301: [FLINK-8267] [Kinesis Connector] update Kinesis Producer example for setting Region key URL: https://github.com/apache/flink/pull/5301
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/dev/connectors/kinesis.md b/docs/dev/connectors/kinesis.md index 9bcd70a7534..674d0350f1f 100644 --- a/docs/dev/connectors/kinesis.md +++ b/docs/dev/connectors/kinesis.md @@ -271,9 +271,9 @@ For the monitoring to work, the user accessing the stream needs access to the Cl {% highlight java %} Properties producerConfig = new Properties(); // Required configs -producerConfig.put(AWSConfigConstants.AWS_REGION, "us-east-1"); producerConfig.put(AWSConfigConstants.AWS_ACCESS_KEY_ID, "aws_access_key_id"); producerConfig.put(AWSConfigConstants.AWS_SECRET_ACCESS_KEY, "aws_secret_access_key"); +producerConfig.put("Region", "us-east-1"); // Optional configs producerConfig.put("AggregationMaxCount", "4294967295"); producerConfig.put("CollectionMaxCount", "1000"); @@ -297,9 +297,9 @@ simpleStringStream.addSink(kinesis); {% highlight scala %} val producerConfig = new Properties() // Required configs -producerConfig.put(AWSConfigConstants.AWS_REGION, "us-east-1") producerConfig.put(AWSConfigConstants.AWS_ACCESS_KEY_ID, "aws_access_key_id") producerConfig.put(AWSConfigConstants.AWS_SECRET_ACCESS_KEY, "aws_secret_access_key") +producerConfig.put("Region", "us-east-1") // Optional KPL configs producerConfig.put("AggregationMaxCount", "4294967295") producerConfig.put("CollectionMaxCount", "1000") @@ -351,19 +351,19 @@ The following example shows how one might supply the `AWSConfigConstants.AWS_END <div data-lang="java" markdown="1"> {% highlight java %} Properties producerConfig = new Properties(); -producerConfig.put(AWSConfigConstants.AWS_REGION, "us-east-1"); producerConfig.put(AWSConfigConstants.AWS_ACCESS_KEY_ID, "aws_access_key_id"); producerConfig.put(AWSConfigConstants.AWS_SECRET_ACCESS_KEY, "aws_secret_access_key"); producerConfig.put(AWSConfigConstants.AWS_ENDPOINT, "http://localhost:4567"); +producerConfig.put("Region", "us-east-1"); {% endhighlight %} </div> <div data-lang="scala" markdown="1"> {% highlight scala %} val producerConfig = new Properties() -producerConfig.put(AWSConfigConstants.AWS_REGION, "us-east-1") producerConfig.put(AWSConfigConstants.AWS_ACCESS_KEY_ID, "aws_access_key_id") producerConfig.put(AWSConfigConstants.AWS_SECRET_ACCESS_KEY, "aws_secret_access_key") producerConfig.put(AWSConfigConstants.AWS_ENDPOINT, "http://localhost:4567") +producerConfig.put("Region", "us-east-1") {% endhighlight %} </div> </div> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services