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

When running 'kafka-connect create' from cron, we are getting failures #5

Open
sasa-tomic opened this issue Oct 30, 2018 · 1 comment

Comments

@sasa-tomic
Copy link

sasa-tomic commented Oct 30, 2018

The command line we are using is

kafka-connect create -c connect-config connect-name

and that works when running outside of a cron job.
But when running inside of a cron job, we're getting the following error:

kafka-connect: error: --from-file and --config cannot be used with input from stdin
@sasa-tomic
Copy link
Author

Just figured out (after looking at the source code) that the following works:

cat connector-config | kafka-connect create connector-name

Looks like there is a bug in the code which determines whether configuration is provided on the command line. If there's no TTY (and there isn't one in scripted executions such as cron jobs), then kafka-connect doesn't check the --config <connect-config> argument.

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

No branches or pull requests

1 participant