zoukankan      html  css  js  c++  java
  • 启动zookeeper

    [root@localhost bin]# cd /
    [root@localhost /]# service zookeeper start
    JMX enabled by default
    Using config: /opt/soft/zookeeper-3.4.6/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
    [root@localhost /]# ps -aux|grep zookeeper
    root 4780 0.0 0.0 112704 972 pts/0 S+ 09:51 0:00 grep --color=auto zookeeper
    [root@localhost /]# cd /opt/soft/zookeeper-3.4.6/bin
    [root@localhost bin]# ll
    total 44
    -rwxr-xr-x 1 1000 mysql 238 Feb 20 2014 README.txt
    -rwxr-xr-x 1 1000 mysql 1937 Feb 20 2014 zkCleanup.sh
    -rwxr-xr-x 1 1000 mysql 1049 Feb 20 2014 zkCli.cmd
    -rwxr-xr-x 1 1000 mysql 1534 Feb 20 2014 zkCli.sh
    -rwxr-xr-x 1 1000 mysql 1333 Feb 20 2014 zkEnv.cmd
    -rwxr-xr-x 1 1000 mysql 2696 Feb 20 2014 zkEnv.sh
    -rwxr-xr-x 1 1000 mysql 1084 Feb 20 2014 zkServer.cmd
    -rwxr-xr-x 1 1000 mysql 5742 Feb 20 2014 zkServer.sh
    -rw-r--r-- 1 root root 4335 Apr 28 05:46 zookeeper.out
    [root@localhost bin]# ./zkServer.sh start
    JMX enabled by default
    Using config: /opt/soft/zookeeper-3.4.6/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
    [root@localhost bin]# ps -aux|grep zookeeper
    root 4824 7.0 0.4 4807028 39288 pts/0 Sl 09:51 0:00 java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /opt/soft/zookeeper-3.4.6/bin/../build/classes:/opt/soft/zookeeper-3.4.6/bin/../build/lib/*.jar:/opt/soft/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/soft/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/opt/soft/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/opt/soft/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/opt/soft/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/opt/soft/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/opt/soft/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/opt/soft/zookeeper-3.4.6/bin/../conf: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apachezookeeper.server.quorum.QuorumPeerMain /opt/soft/zookeeper-3.4.6/bin/../conf/zoo.cfg

    [root@localhost bin]# cd /opt/soft/kafka_2.11-0.10.0.0/bin
    [root@localhost bin]# ls
    connect-distributed.sh kafka-consumer-groups.sh kafka-reassign-partitions.sh kafka-simple-consumer-shell.sh zookeeper-server-start.sh
    connect-standalone.sh kafka-consumer-offset-checker.sh kafka-replay-log-producer.sh kafka-topics.sh zookeeper-server-stop.sh
    kafka-acls.sh kafka-consumer-perf-test.sh kafka-replica-verification.sh kafka-verifiable-consumer.sh zookeeper-shell.sh
    kafka-configs.sh kafka-mirror-maker.sh kafka-run-class.sh kafka-verifiable-producer.sh
    kafka-console-consumer.sh kafka-preferred-replica-election.sh kafka-server-start.sh windows
    kafka-console-producer.sh kafka-producer-perf-test.sh kafka-server-stop.sh zookeeper-security-migration.sh
    [root@localhost bin]# ./kafka-server-start.sh ../config/server.properties

    ./kafka-server-start.sh -daemon ../config/server.properties

    [2021-04-28 09:58:47,838] INFO KafkaConfig values:
    advertised.host.name = null
    metric.reporters = []
    quota.producer.default = 9223372036854775807
    offsets.topic.num.partitions = 50
    log.flush.interval.messages = 9223372036854775807
    auto.create.topics.enable = true
    controller.socket.timeout.ms = 30000
    log.flush.interval.ms = null

  • 相关阅读:
    MySQL插入数据慢解决办法
    java的 System.currentTimeMillis() 与时区
    单元测试断言系统 类似于 生活中如何说话
    IDEA、Eclipse 默认常用快捷键对比总结,visual studio快捷键总结
    使用过的正则匹配的例子
    filters的this问题
    vuex的使用
    offset/scroll/clien系列知识点
    promise对象的理解
    语义化标签的理解
  • 原文地址:https://www.cnblogs.com/myibm/p/14715964.html
Copyright © 2011-2022 走看看