Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-8267] [Kinesis Connector] update Kinesis Producer example for setting Region key #5301

Closed
wants to merge 1 commit into from

Conversation

bowenli86
Copy link
Member

What is the purpose of the change

Update doc to guide users to use KPL's native keys to set regions.

This originates from a bug that we forgot to set region keys explicitly for kinesis connector, which has been fixed. According to the previous discussion between @tzulitai and I, we want to remove AWSConfigConstants in 2.0 because it basically copies/translates config keys of KPL/KCL, which doesn't add much value.

Guide users to use KPL's native keys to set regions can be the first step that facilitates the migration.

Brief change log

  • updated doc

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

Documentation

  • Does this pull request introduce a new feature? (no)

cc @tzulitai

@tzulitai
Copy link
Contributor

@bowenli86 can you squash the commits into a single one, with appropriate commit message? Thanks!

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the "Region" string defined in some KPL class, e.g. XXConstants?
If yes, maybe we should just demonstrate that class.
That would make it more clear that the KPL configuration keys are directly supported.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, KPL doesn't have such configs. KPL takes a string like 'Region' and tries to find its setter using reflection.

@bowenli86
Copy link
Member Author

Make sense. Updated the PR also squashed all commits (first time using squash!)

@bowenli86
Copy link
Member Author

cc @tzulitai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants