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

Cannot pipe stdin to kafkacat #232

Open
Nekroze opened this issue Dec 19, 2018 · 2 comments
Open

Cannot pipe stdin to kafkacat #232

Nekroze opened this issue Dec 19, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@Nekroze
Copy link
Owner

Nekroze commented Dec 19, 2018

Bug Report

Describe the bug

Cannot pipe a file (eg. via cat) into the kafkacat app for writing data to kafka.

To Reproduce

Steps to reproduce the behavior:

  1. Run dab apps run kafkacat -C -b kafka -t test
  2. Run echo "test" | kafkacat -P -b kafka -t test
  3. See no test message in the consumer (first) command.

Expected behavior

Kafkacat should get the data and write it.

Example

None.

dab version output

Dab Version: 5f8f19f1a39c5b5b8c7a4ae160031e0dab38c24a
Server Version: 18.09.0
Runtimes: runc
Kernel Version: 4.14.88
Operating System: NixOS 18.09.1676.7e88992a8c7 (Jellyfish)
Architecture: x86_64

Additional context

None.

@Nekroze Nekroze added the bug Something isn't working label Dec 19, 2018
@Nekroze Nekroze added this to Needs triage in Triage Dec 30, 2018
@Nekroze Nekroze moved this from Needs triage to High priority in Triage Feb 18, 2019
@Nekroze
Copy link
Owner Author

Nekroze commented Feb 21, 2019

Issue is likely things being called in subshells are not propagating stdin etc. Could try detect and manually direct it in or perhaps using exec to replace the subshell process in the right places can keep stdin.

@Nekroze
Copy link
Owner Author

Nekroze commented Feb 21, 2019

At least for kafkacat producer mode you can still type stuff in manually but this issue also exists for piping stdout from dab into another command as well.

@Nekroze Nekroze moved this from High priority to Low priority in Triage Feb 21, 2019
@Nekroze Nekroze added this to Probably Soonish in Roadmap Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Roadmap
Probably Soonish
Triage
  
Low priority
Development

No branches or pull requests

1 participant