[ 
https://issues.apache.org/jira/browse/FLINK-3923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302254#comment-15302254
 ] 

ASF GitHub Bot commented on FLINK-3923:
---------------------------------------

Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2016#discussion_r64767022
  
    --- Diff: 
flink-streaming-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/FlinkKinesisProducer.java
 ---
    @@ -160,12 +168,13 @@ public void 
setCustomPartitioner(KinesisPartitioner<OUT> partitioner) {
        public void open(Configuration parameters) throws Exception {
                super.open(parameters);
     
    -           KinesisProducerConfiguration config = new 
KinesisProducerConfiguration();
    -           config.setRegion(this.region);
    -           config.setCredentialsProvider(new StaticCredentialsProvider(new 
BasicAWSCredentials(this.accessKey, this.secretKey)));
    +           KinesisProducerConfiguration producerConfig = new 
KinesisProducerConfiguration();
    +
    +           
producerConfig.setRegion(configProps.getProperty(KinesisConfigConstants.CONFIG_AWS_REGION));
    +           
producerConfig.setCredentialsProvider(AWSUtil.getCredentialsProvider(configProps));
                //config.setCollectionMaxCount(1);
                //config.setAggregationMaxCount(1);
    --- End diff --
    
    I agree that using the KPL is in general a good idea.
    The problem is that the license of the KPL (the Amazon Software License) is 
not compatible with the Apache Software License, therefore, projects at Apache 
can not depend on such code.
    We will not release the Flink kinesis connector with the next Flink release 
for that reason (unless we somehow fix this issue).
    
    Are you working at Amazon? If so, can you contact me at robert (at) 
data-artisans.com ?


> Unify configuration conventions of the Kinesis producer to the same as the 
> consumer
> -----------------------------------------------------------------------------------
>
>                 Key: FLINK-3923
>                 URL: https://issues.apache.org/jira/browse/FLINK-3923
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Kinesis Connector, Streaming Connectors
>    Affects Versions: 1.1.0
>            Reporter: Robert Metzger
>            Assignee: Abdullah Ozturk
>
> Currently, the Kinesis consumer and producer are configured differently.
> The producer expects a list of arguments for the access key, secret, region, 
> stream. The consumer is accepting properties (similar to the Kafka connector).
> The objective of this issue is to change the producer so that it is also 
> using a properties-based configuration (including an input validation step)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to