Skip to content

SNS producer #2221

@ctaity

Description

@ctaity

Hi i am using docker and the realese 1.44 of maxwell with de following config:

 maxwell:
   image: zendesk/maxwell:latest
   container_name: maxwell
   depends_on:
     - localstack
   command: >
     bin/maxwell
     --host=database-mysql.dev.treinta.co
     --user=tr31nt4D3v
     --password=K5nXWLjXCHp9cdXxLArC
     --producer=sns
     --sns_topic=arn:aws:sns:us-east-1:000000000000:products
     --sns_service_endpoint=http://localstack:4566
     --sns_signing_region=us-east-1
   environment:
     AWS_ACCESS_KEY_ID: test
     AWS_SECRET_ACCESS_KEY: test
     AWS_REGION: us-east-1

And i am getting the same error:

maxwell     | joptsimple.UnrecognizedOptionException: sns_service_endpoint is not a recognized option
maxwell     |   at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
maxwell     |   at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
maxwell     |   at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
maxwell     |   at joptsimple.OptionParser.parse(OptionParser.java:396)
maxwell     |   at com.zendesk.maxwell.MaxwellConfig.parse(MaxwellConfig.java:1007)
maxwell     |   at com.zendesk.maxwell.MaxwellConfig.<init>(MaxwellConfig.java:666)
maxwell     |   at com.zendesk.maxwell.Maxwell.main(Maxwell.java:316)
maxwell     | 2025-08-30 18:30:58 ERROR Maxwell - Maxwell saw an exception and is exiting...
maxwell     | joptsimple.UnrecognizedOptionException: sns_service_endpoint is not a recognized option
maxwell     |   at joptsimple.OptionException.unrecognizedOption(OptionException.java:108) ~[jopt-simple-5.0.4.jar:?]
maxwell     |   at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510) ~[jopt-simple-5.0.4.jar:?]
maxwell     |   at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56) ~[jopt-simple-5.0.4.jar:?]
maxwell     |   at joptsimple.OptionParser.parse(OptionParser.java:396) ~[jopt-simple-5.0.4.jar:?]
maxwell     |   at com.zendesk.maxwell.MaxwellConfig.parse(MaxwellConfig.java:1007) ~[maxwell-1.43.2.jar:1.43.2]
maxwell     |   at com.zendesk.maxwell.MaxwellConfig.<init>(MaxwellConfig.java:666) ~[maxwell-1.43.2.jar:1.43.2]
maxwell     |   at com.zendesk.maxwell.Maxwell.main(Maxwell.java:316) [maxwell-1.43.2.jar:1.43.2]
maxwell exited with code 1

So, i compiled maxwell from master branch and is working. Someone kwons what could happens here?

I would like to use the offical docker image with the SNS producer. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions