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

Unable to use http for Kinesis consumer when testing locally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.15.3
    • None
    • None

    Description

      I am attempting to run the StateFun docker image locally in a docker-compose stack. I have Kinesis running using Localstack and want to use it as a consumer. 

      The documentation says to use a custom endpoint you can use the following config with the io.statefun.kinesis.v1/ingress module:

      awsCredentials:
        type: custom-endpoint
        endpoint: https://localhost:4567
        id: us-west-1

      The above errors as the custom endpoint property is on the AWS region instead so it needs to be:

      awsRegion:
        id: us-east-1
        type: custom-endpoint
        endpoint: http://localstack:4566

      However, I am unable to use HTTP as it complains that:

      Caused by: java.lang.IllegalArgumentException: Invalid service endpoint url: http://localstack:4566; Only custom service endpoints using HTTPS are supported

      I tried using HTTPS but it errors with a certificate issue, I think this is an issue with Localstack.

      Some of the docs for the Kinesis connectors show HTTP being used with a custom endpoint

      https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/connectors/datastream/kinesis/#using-custom-kinesis-endpoints

      It would be nice if we can use HTTP when testing locally

      I see from this issue https://github.com/localstack/localstack/issues/893  there is a configuration option TRUST_ALL_CERTIFICATES that can be provided to the NettyNioAsyncHttpClient that allows the above to work for local dev.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pocockn Nicolas Pocock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: