Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-30777

Allow Kinesis Table API Connector to specify shard assigner

    XMLWordPrintableJSON

Details

    Description

      As a follow up to the fix involving UniformShardAssigner (https://issues.apache.org/jira/browse/FLINK-24639), it would be good to allow users to pick something other than the default shard assigner, such as the recently introduced UniformShardAssigner, in the Kinesis Table API Connector. 

      This can be accomplished by introducing a new connector option called 'shard-assigner.' Something like below; note the introduction of a new option called 'shard-assigner'

       
       
      CREATE TABLE KinesisTable

      `user_id` BIGINT, 

      `item_id` BIGINT,

      `category_id` BIGINT,

      `behavior` STRING,

      `ts` TIMESTAMP(3))

      PARTITIONED BY (user_id, item_id)

      WITH

      (

      'connector' = 'kinesis',

      'stream' = 'user_behavior',

      'aws.region' = 'us-east-2',

      'scan.stream.initpos' = 'LATEST',

      'format' = 'csv',

      'shard-assigner' = 'uniform'

      );

      Attachments

        Activity

          People

            karthitect Karthi Thyagarajan
            karthitect Karthi Thyagarajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: