Forward kafka consumer over ssh tunnel
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Kafka broker is 10.2.1.
This works:
$ ssh me@jumpbox
me@jumpbox:~$ kafka-console-consumer.sh --bootstrap-server
"10.200.1.1:9092,10.200.1.2:9092"
--topic "mytopic"
This doesn't:
$ ssh me@jumpbox -L 9998:10.200.1.1:9092
-L 9999:10.200.1.2:9092
### in a new terminal:
$ kafka-console-consumer --bootstrap-server "localhost:9998,localhost:9999"
--topic "mytopic"
Why not?
ssh port-forwarding
add a comment |Â
up vote
2
down vote
favorite
Kafka broker is 10.2.1.
This works:
$ ssh me@jumpbox
me@jumpbox:~$ kafka-console-consumer.sh --bootstrap-server
"10.200.1.1:9092,10.200.1.2:9092"
--topic "mytopic"
This doesn't:
$ ssh me@jumpbox -L 9998:10.200.1.1:9092
-L 9999:10.200.1.2:9092
### in a new terminal:
$ kafka-console-consumer --bootstrap-server "localhost:9998,localhost:9999"
--topic "mytopic"
Why not?
ssh port-forwarding
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Kafka broker is 10.2.1.
This works:
$ ssh me@jumpbox
me@jumpbox:~$ kafka-console-consumer.sh --bootstrap-server
"10.200.1.1:9092,10.200.1.2:9092"
--topic "mytopic"
This doesn't:
$ ssh me@jumpbox -L 9998:10.200.1.1:9092
-L 9999:10.200.1.2:9092
### in a new terminal:
$ kafka-console-consumer --bootstrap-server "localhost:9998,localhost:9999"
--topic "mytopic"
Why not?
ssh port-forwarding
Kafka broker is 10.2.1.
This works:
$ ssh me@jumpbox
me@jumpbox:~$ kafka-console-consumer.sh --bootstrap-server
"10.200.1.1:9092,10.200.1.2:9092"
--topic "mytopic"
This doesn't:
$ ssh me@jumpbox -L 9998:10.200.1.1:9092
-L 9999:10.200.1.2:9092
### in a new terminal:
$ kafka-console-consumer --bootstrap-server "localhost:9998,localhost:9999"
--topic "mytopic"
Why not?
ssh port-forwarding
asked Mar 23 at 21:06
Josh
1113
1113
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433158%2fforward-kafka-consumer-over-ssh-tunnel%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password