美文网首页
Kafka | 启动报错Error exists in the

Kafka | 启动报错Error exists in the

作者: Ada54 | 来源:发表于2021-06-28 14:50 被阅读0次
    问题:

    启动kafka失败,查看logs目录下的kafkaServer.out启动日志,报错如下

    [2021-06-28 19:20:32,449] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log
    4jControllerRegistration) [2021-06-28 19:20:33,379] ERROR Exiting Kafka due to fatal exception (kafka.Kafka)
    java.lang.VerifyError: Uninitialized object exists on backward branch 79
    Exception Details:
    Location:
    scala/util/matching/Regex.unapplySeq(Lscala/util/matching/Regex$Match;)Lscala/Option; @126: g
    oto
    Reason:
    Error exists in the bytecode
    Bytecode:
    0000000: 2bb6 00b5 c700 07b2 0080 b02b b600 b8b6
    0000010: 00b9 2ab6 004b 4d59 c700 0b57 2cc6 000d
    0000020: a700 752c b600 bd99 006e b200 3757 bb00
    0000030: 5559 b200 5a57 2bb6 00be 3ebb 0060 59b7
    0000040: 0064 3a04 1904 1db9 006a 0200 0336 0515
    0000050: 051d a200 2f2b 1505 0460 b600 bf3a 0819
    0000060: 0801 3a08 3a07 1907 013a 073a 0619 0419
    0000070: 06b6 0072 5701 3a06 1505 0460 3605 a7ff
    0000080: d119 04b9 0076 0100 c000 7801 3a04 013a

    问题解决:

    jdk的版本兼容问题,需升级jdk版本。本人将1.8.0_11版本升级到1.8.0_161版本,kafka启动成功。

    jdk1.8.0_161下载地址:
    链接:https://pan.baidu.com/s/1VHDcTvB6uSzKFnXVRI1Rfg
    提取码:t9c8

    相关文章

      网友评论

          本文标题:Kafka | 启动报错Error exists in the

          本文链接:https://www.haomeiwen.com/subject/izhoyltx.html