V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
smartG
V2EX  ›  问与答

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

  •  
  •   smartG · Jan 7, 2020 · 2406 views
    This topic created in 2302 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
        1
    XJohn  
       Jan 7, 2020 via iPhone
    网络不通?
    smartG
        2
    smartG  
    OP
       Jan 7, 2020 via iPhone
    @XJohn 不通的话 topic 也能正常创建吗,我刚接触 kafka,不太懂
    XJohn
        3
    XJohn  
       Jan 7, 2020 via iPhone
    @smartG telnet 试试,消费不了没报错?
    smartG
        4
    smartG  
    OP
       Jan 8, 2020
    @XJohn 刚才试了一下,telnet 连接不了,消费不了也没报错
    julyclyde
        5
    julyclyde  
       Jan 9, 2020
    @smartG 那你还是想办法让他报错吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:12 · PVG 09:12 · LAX 18:12 · JFK 21:12
    ♥ Do have faith in what you're doing.