smartG
V2EX  ›  问与答

kafka 正常生产但却消费不了信息

  •  
  •   smartG · Jan 7, 2020 · 2829 views
    This topic created in 2491 days ago, the information mentioned may be changed or developed.

    在本地写了段测试代码,bootstrap.servers 设置成“localhost”时可以正常生产和消费信息,但是换成服务器地址后就只能生产消息,消费不了,在服务器上的 topic 也能正常创建,只是里面消息为空,有大佬知道问题出在哪里吗

    5 replies  •  2020-01-09 11:35:30 +08:00
    XJohn
    XJohn
    Jan 7, 2020 via iPhone
    1
    网络不通?
    smartG
    smartG
    OP
    Jan 7, 2020 via iPhone
    2
    @XJohn 不通的话 topic 也能正常创建吗,我刚接触 kafka,不太懂
    XJohn
    XJohn
    Jan 7, 2020 via iPhone
    3
    @smartG telnet 试试,消费不了没报错?
    smartG
    smartG
    OP
    Jan 8, 2020
    4
    @XJohn 刚才试了一下,telnet 连接不了,消费不了也没报错
    julyclyde
    julyclyde
    Jan 9, 2020
    5
    @smartG 那你还是想办法让他报错吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5177 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:19 · PVG 09:19 · LAX 17:19 · JFK 20:19
    ♥ Do have faith in what you're doing.