群起kafka,发现只有一台节点有进程,其他节点均无进程

5 发表于: 2020-03-14   最后更新时间: 2021-09-29 09:56:44   1,610 游览
INFO KafkaConfig values: 
    advertised.host.name = null
    advertised.listeners = null
    advertised.port = null
    alter.config.policy.class.name = null
    authorizer.class.name = 
    auto.create.topics.enable = true
    auto.leader.rebalance.enable = true
    background.threads = 10
    broker.id = 0
    broker.id.generation.enable = true
    broker.rack = null
    compression.type = producer
    connections.max.idle.ms = 600000
    controlled.shutdown.enable = true
    controlled.shutdown.max.retries = 3
    controlled.shutdown.retry.backoff.ms = 5000
    controller.socket.timeout.ms = 30000
    create.topic.policy.class.name = null
    default.replication.factor = 1
    delete.records.purgatory.purge.interval.requests = 1
    delete.topic.enable = true
    fetch.purgatory.purge.interval.requests = 1000
    group.initial.rebalance.delay.ms = 0
    group.max.session.timeout.ms = 300000
    group.min.session.timeout.ms = 6000
    host.name = 
    inter.broker.listener.name = null
    inter.broker.protocol.version = 0.11.0-IV2
    leader.imbalance.check.interval.seconds = 300
    leader.imbalance.per.broker.percentage = 10
    listener.security.protocol.map = SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,TRACE:TRACE,SASL_SSL:SASL_SSL,PLAINTEXT:PLAINTEXT
    listeners = null
    log.cleaner.backoff.ms = 15000
    log.cleaner.dedupe.buffer.size = 134217728
    log.cleaner.delete.retention.ms = 86400000
    log.cleaner.enable = true
    log.cleaner.io.buffer.load.factor = 0.9
    log.cleaner.io.buffer.size = 524288
    log.cleaner.io.max.bytes.per.second = 1.7976931348623157E308
    log.cleaner.min.cleanable.ratio = 0.5
    log.cleaner.min.compaction.lag.ms = 0
    log.cleaner.threads = 1
    log.cleanup.policy = [delete]
    log.dir = /tmp/kafka-logs
    log.dirs = /home/hadoop/bd/kafka/logs
    log.flush.interval.messages = 9223372036854775807
    log.flush.interval.ms = null
    log.flush.offset.checkpoint.interval.ms = 60000
    log.flush.scheduler.interval.ms = 9223372036854775807
    log.flush.start.offset.checkpoint.interval.ms = 60000
    log.index.interval.bytes = 4096
    log.index.size.max.bytes = 10485760
    log.message.format.version = 0.11.0-IV2
    log.message.timestamp.difference.max.ms = 9223372036854775807
    log.message.timestamp.type = CreateTime
    log.preallocate = false
    log.retention.bytes = -1
    log.retention.check.interval.ms = 300000
    log.retention.hours = 168
    log.retention.minutes = null
    log.retention.ms = null
    log.roll.hours = 168
    log.roll.jitter.hours = 0
    log.roll.jitter.ms = null
    log.roll.ms = null
    log.segment.bytes = 1073741824
    log.segment.delete.delay.ms = 60000
    max.connections.per.ip = 2147483647
    max.connections.per.ip.overrides = 
    message.max.bytes = 1000012
    metric.reporters = []
    metrics.num.samples = 2
    metrics.recording.level = INFO
    metrics.sample.window.ms = 30000
    min.insync.replicas = 1
    num.io.threads = 8
    num.network.threads = 3
    num.partitions = 1
    num.recovery.threads.per.data.dir = 1
    num.replica.fetchers = 1
    offset.metadata.max.bytes = 4096
    offsets.commit.required.acks = -1
    offsets.commit.timeout.ms = 5000
    offsets.load.buffer.size = 5242880
    offsets.retention.check.interval.ms = 600000
    offsets.retention.minutes = 1440
    offsets.topic.compression.codec = 0
    offsets.topic.num.partitions = 50
    offsets.topic.replication.factor = 1
    offsets.topic.segment.bytes = 104857600
    port = 9092
    principal.builder.class = class org.apache.kafka.common.security.auth.DefaultPrincipalBuilder
    producer.purgatory.purge.interval.requests = 1000
    queued.max.requests = 500
    quota.consumer.default = 9223372036854775807
    quota.producer.default = 9223372036854775807
    quota.window.num = 11
    quota.window.size.seconds = 1
    replica.fetch.backoff.ms = 1000
    replica.fetch.max.bytes = 1048576
    replica.fetch.min.bytes = 1
    replica.fetch.response.max.bytes = 10485760
    replica.fetch.wait.max.ms = 500
    replica.high.watermark.checkpoint.interval.ms = 5000
    replica.lag.time.max.ms = 10000
    replica.socket.receive.buffer.bytes = 65536
    replica.socket.timeout.ms = 30000
    replication.quota.window.num = 11
    replication.quota.window.size.seconds = 1
    request.timeout.ms = 30000
    reserved.broker.max.id = 1000
    sasl.enabled.mechanisms = [GSSAPI]
    sasl.kerberos.kinit.cmd = /usr/bin/kinit
    sasl.kerberos.min.time.before.relogin = 60000
    sasl.kerberos.principal.to.local.rules = [DEFAULT]
    sasl.kerberos.service.name = null
    sasl.kerberos.ticket.renew.jitter = 0.05
    sasl.kerberos.ticket.renew.window.factor = 0.8
    sasl.mechanism.inter.broker.protocol = GSSAPI
    security.inter.broker.protocol = PLAINTEXT
    socket.receive.buffer.bytes = 102400
    socket.request.max.bytes = 104857600
    socket.send.buffer.bytes = 102400
    ssl.cipher.suites = null
    ssl.client.auth = none
    ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
    ssl.endpoint.identification.algorithm = null
    ssl.key.password = null
    ssl.keymanager.algorithm = SunX509
    ssl.keystore.location = null
    ssl.keystore.password = null
    ssl.keystore.type = JKS
    ssl.protocol = TLS
    ssl.provider = null
    ssl.secure.random.implementation = null
    ssl.trustmanager.algorithm = PKIX
    ssl.truststore.location = null
    ssl.truststore.password = null
    ssl.truststore.type = JKS
    transaction.abort.timed.out.transaction.cleanup.interval.ms = 60000
    transaction.max.timeout.ms = 900000
    transaction.remove.expired.transaction.cleanup.interval.ms = 3600000
    transaction.state.log.load.buffer.size = 5242880
    transaction.state.log.min.isr = 1
    transaction.state.log.num.partitions = 50
    transaction.state.log.replication.factor = 1
    transaction.state.log.segment.bytes = 104857600
    transactional.id.expiration.ms = 604800000
    unclean.leader.election.enable = false
    zookeeper.connect = hdp-01:2181,hdp-02:2181,hdp-03:2181
    zookeeper.connection.timeout.ms = 6000
    zookeeper.session.timeout.ms = 6000
    zookeeper.set.acl = false
    zookeeper.sync.time.ms = 2000
 (kafka.server.KafkaConfig)
[2020-03-14 09:15:07,093] INFO starting (kafka.server.KafkaServer)
[2020-03-14 09:15:07,094] INFO Connecting to zookeeper on hdp-01:2181,hdp-02:2181,hdp-03:2181 (kafka.server.KafkaServer)
[2020-03-14 09:15:07,113] INFO Client environment:zookeeper.version=3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 03/23/2017 10:13 GMT (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:host.name=hdp-01 (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.version=1.8.0_211 (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.vendor=Oracle Corporation (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.home=/home/zzz/jdk1.8.0_211/jre (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.class.path=:/home/hadoop/bd/kafka/bin/../libs/aopalliance-repackaged-2.5.0-b05.jar:/home/hadoop/bd/kafka/bin/../libs/argparse4j-0.7.0.jar:/home/hadoop/bd/kafka/bin/../libs/commons-lang3-3.5.jar:/home/hadoop/bd/kafka/bin/../libs/connect-api-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/connect-file-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/connect-json-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/connect-runtime-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/connect-transforms-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/guava-20.0.jar:/home/hadoop/bd/kafka/bin/../libs/hk2-api-2.5.0-b05.jar:/home/hadoop/bd/kafka/bin/../libs/hk2-locator-2.5.0-b05.jar:/home/hadoop/bd/kafka/bin/../libs/hk2-utils-2.5.0-b05.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-annotations-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-core-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-databind-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-jaxrs-base-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-jaxrs-json-provider-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/jackson-module-jaxb-annotations-2.8.5.jar:/home/hadoop/bd/kafka/bin/../libs/javassist-3.21.0-GA.jar:/home/hadoop/bd/kafka/bin/../libs/javax.annotation-api-1.2.jar:/home/hadoop/bd/kafka/bin/../libs/javax.inject-1.jar:/home/hadoop/bd/kafka/bin/../libs/javax.inject-2.5.0-b05.jar:/home/hadoop/bd/kafka/bin/../libs/javax.servlet-api-3.1.0.jar:/home/hadoop/bd/kafka/bin/../libs/javax.ws.rs-api-2.0.1.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-client-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-common-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-container-servlet-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-container-servlet-core-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-guava-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-media-jaxb-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jersey-server-2.24.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-continuation-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-http-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-io-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-security-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-server-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-servlet-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-servlets-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jetty-util-9.2.22.v20170606.jar:/home/hadoop/bd/kafka/bin/../libs/jopt-simple-5.0.3.jar:/home/hadoop/bd/kafka/bin/../libs/kafka_2.11-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/kafka_2.11-0.11.0.2-sources.jar:/home/hadoop/bd/kafka/bin/../libs/kafka_2.11-0.11.0.2-test-sources.jar:/home/hadoop/bd/kafka/bin/../libs/kafka-clients-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/kafka-log4j-appender-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/kafka-streams-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/kafka-streams-examples-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/kafka-tools-0.11.0.2.jar:/home/hadoop/bd/kafka/bin/../libs/log4j-1.2.17.jar:/home/hadoop/bd/kafka/bin/../libs/lz4-1.3.0.jar:/home/hadoop/bd/kafka/bin/../libs/maven-artifact-3.5.0.jar:/home/hadoop/bd/kafka/bin/../libs/metrics-core-2.2.0.jar:/home/hadoop/bd/kafka/bin/../libs/osgi-resource-locator-1.0.1.jar:/home/hadoop/bd/kafka/bin/../libs/plexus-utils-3.0.24.jar:/home/hadoop/bd/kafka/bin/../libs/reflections-0.9.11.jar:/home/hadoop/bd/kafka/bin/../libs/rocksdbjni-5.0.1.jar:/home/hadoop/bd/kafka/bin/../libs/scala-library-2.11.11.jar:/home/hadoop/bd/kafka/bin/../libs/scala-parser-combinators_2.11-1.0.4.jar:/home/hadoop/bd/kafka/bin/../libs/slf4j-api-1.7.25.jar:/home/hadoop/bd/kafka/bin/../libs/slf4j-log4j12-1.7.25.jar:/home/hadoop/bd/kafka/bin/../libs/snappy-java-1.1.2.6.jar:/home/hadoop/bd/kafka/bin/../libs/validation-api-1.1.0.Final.jar:/home/hadoop/bd/kafka/bin/../libs/zkclient-0.10.jar:/home/hadoop/bd/kafka/bin/../libs/zookeeper-3.4.10.jar (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.io.tmpdir=/tmp (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:java.compiler=<NA> (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,114] INFO Client environment:os.name=Linux (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Client environment:os.arch=amd64 (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Client environment:os.version=3.10.0-957.el7.x86_64 (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Client environment:user.name=hadoop (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Client environment:user.home=/home/hadoop (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Client environment:user.dir=/home/hadoop/bd/kafka/bin (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,115] INFO Initiating client connection, connectString=hdp-01:2181,hdp-02:2181,hdp-03:2181 sessionTimeout=6000 watcher=org.I0Itec.zkclient.ZkClient@7334aada (org.apache.zookeeper.ZooKeeper)
[2020-03-14 09:15:07,119] INFO Starting ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)
[2020-03-14 09:15:07,130] INFO Opening socket connection to server hdp-02/192.168.137.21:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2020-03-14 09:15:07,136] INFO Socket connection established to hdp-02/192.168.137.21:2181, initiating session (org.apache.zookeeper.ClientCnxn)
[2020-03-14 09:15:07,141] INFO Waiting for keeper state SyncConnected (org.I0Itec.zkclient.ZkClient)
[2020-03-14 09:15:07,152] INFO Session establishment complete on server hdp-02/192.168.137.21:2181, sessionid = 0x270d92b29b90000, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn)
[2020-03-14 09:15:07,154] INFO zookeeper state changed (SyncConnected) (org.I0Itec.zkclient.ZkClient)
[2020-03-14 09:15:07,283] INFO Cluster ID = BjtKGq6QTjOS-XBvObdM1g (kafka.server.KafkaServer)
[2020-03-14 09:15:07,313] INFO [ThrottledRequestReaper-Fetch]: Starting (kafka.server.ClientQuotaManager$ThrottledRequestReaper)
[2020-03-14 09:15:07,314] INFO [ThrottledRequestReaper-Produce]: Starting (kafka.server.ClientQuotaManager$ThrottledRequestReaper)
[2020-03-14 09:15:07,331] INFO [ThrottledRequestReaper-Request]: Starting (kafka.server.ClientQuotaManager$ThrottledRequestReaper)
[2020-03-14 09:15:07,348] INFO Loading logs. (kafka.log.LogManager)
[2020-03-14 09:15:07,353] INFO Logs loading complete in 4 ms. (kafka.log.LogManager)
[2020-03-14 09:15:07,529] INFO Starting log cleanup with a period of 300000 ms. (kafka.log.LogManager)
[2020-03-14 09:15:07,532] INFO Starting log flusher with a default period of 9223372036854775807 ms. (kafka.log.LogManager)
[2020-03-14 09:15:07,575] INFO Awaiting socket connections on 0.0.0.0:9092. (kafka.network.Acceptor)
[2020-03-14 09:15:07,582] INFO [Socket Server on Broker 0], Started 1 acceptor threads (kafka.network.SocketServer)
[2020-03-14 09:15:07,613] INFO [ExpirationReaper-0-Produce]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,624] INFO [ExpirationReaper-0-Fetch]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,633] INFO [ExpirationReaper-0-DeleteRecords]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,692] INFO [ExpirationReaper-0-topic]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,699] INFO Creating /controller (is it secure? false) (kafka.utils.ZKCheckedEphemeral)
[2020-03-14 09:15:07,715] INFO [ExpirationReaper-0-Heartbeat]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,723] INFO Result of znode creation is: OK (kafka.utils.ZKCheckedEphemeral)
[2020-03-14 09:15:07,744] INFO [ExpirationReaper-0-Rebalance]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
[2020-03-14 09:15:07,764] INFO [GroupCoordinator 0]: Starting up. (kafka.coordinator.group.GroupCoordinator)
[2020-03-14 09:15:07,772] INFO [GroupCoordinator 0]: Startup complete. (kafka.coordinator.group.GroupCoordinator)
[2020-03-14 09:15:07,800] INFO [Group Metadata Manager on Broker 0]: Removed 0 expired offsets in 2 milliseconds. (kafka.coordinator.group.GroupMetadataManager)
[2020-03-14 09:15:07,808] INFO [ProducerId Manager 0]: Acquired new producerId block (brokerId:0,blockStartProducerId:12000,blockEndProducerId:12999) by writing to Zk with path version 13 (kafka.coordinator.transaction.ProducerIdManager)
[2020-03-14 09:15:07,876] INFO [Transaction Coordinator 0]: Starting up. (kafka.coordinator.transaction.TransactionCoordinator)
[2020-03-14 09:15:07,915] INFO [Transaction Coordinator 0]: Startup complete. (kafka.coordinator.transaction.TransactionCoordinator)
[2020-03-14 09:15:07,926] INFO [Transaction Marker Channel Manager 0]: Starting (kafka.coordinator.transaction.TransactionMarkerChannelManager)
[2020-03-14 09:15:08,031] INFO Will not load MX4J, mx4j-tools.jar is not in the classpath (kafka.utils.Mx4jLoader$)
[2020-03-14 09:15:08,127] INFO Creating /brokers/ids/0 (is it secure? false) (kafka.utils.ZKCheckedEphemeral)
[2020-03-14 09:15:08,144] INFO Result of znode creation is: OK (kafka.utils.ZKCheckedEphemeral)
[2020-03-14 09:15:08,145] INFO Registered broker 0 at path /brokers/ids/0 with addresses: EndPoint(hdp-01,9092,ListenerName(PLAINTEXT),PLAINTEXT) (kafka.utils.ZkUtils)
[2020-03-14 09:15:08,147] INFO Kafka version : 0.11.0.2 (org.apache.kafka.common.utils.AppInfoParser)
[2020-03-14 09:15:08,147] INFO Kafka commitId : 73be1e1168f91ee2 (org.apache.kafka.common.utils.AppInfoParser)
[2020-03-14 09:15:08,148] INFO [Kafka Server 0], started (kafka.server.KafkaServer)
发表于 2020-03-14
5
添加评论

你是不是没用后台进程启动kafka。

nohup ./kafka-server-start.sh ../config/server.properties &
你的答案

查看kafka相关的其他问题或提一个您自己的问题