【问题标题】:Apache Mesos: where is zkClient.sh?Apache Mesos:zkClient.sh 在哪里?
【发布时间】:2016-03-15 13:38:54
【问题描述】:

我在 Ubuntu 上。

我正在尝试遵循https://mesosphere.com/downloads/上的教程“启动 Mesos”

我在我的机器上找不到zkClient.shlocate zkClient.sh 不返回任何内容。

有什么帮助吗?


我的配置信息:

1)我已经安装并配置了zookeeper,在conf/zoo.cfg中使用了“独立配置”:

tickTime=2000   
dataDir=/var/lib/zookeeper  
clientPort=2181

2) 我已经通过 mesosphere 存储库中的 *​​.deb 文件安装了 Apache Mesos

3) 我已经使用

启动了 zookeper
sudo /usr/share/zookeeper/bin/zkServer.sh start 

然后每个进程使用

service mesos-slave start   # (sudo if needed)  
service mesos-master start  # (sudo if needed)

ps aux | grep mesos 向我返回的信息似乎表明 zookeer 服务器和客户端都已启动:

root     29190  0.2  0.1 1490628 22460 ?       Ssl  11:31   0:00 /usr/sbin/mesos-master --zk=zk://localhost:2181/mesos --port=5050 --log_dir=/var/log/mesos --quorum=1 --work_dir=/var/lib/mesos
root     29200  0.0  0.0  11360   604 ?        S    11:31   0:00 logger -p user.info -t mesos-master[29190]
root     29201  0.0  0.0  11360   708 ?        S    11:31   0:00 logger -p user.err -t mesos-master[29190]
root     29229  0.1  0.1 947316 18332 ?        Ssl  11:31   0:00 /usr/sbin/mesos-slave --master=zk://localhost:2181/mesos --log_dir=/var/log/mesos --launcher=posix
root     29237  0.0  0.0  11360   600 ?        S    11:31   0:00 logger -p user.info -t mesos-slave[29229]
root     29238  0.0  0.0  11360   712 ?        S    11:31   0:00 logger -p user.err -t mesos-slave[29229]
john   29260  0.0  0.0  13588   940 pts/3    R+   11:32   0:00 grep --color=auto mesos

但是教程说“一旦 Master(s) 启动,使用 ZooKeeper 来验证你的配置是否正确:使用 zkClient.sh 启动 ZooKeeper 客户端”

【问题讨论】:

    标签: ubuntu apache-zookeeper mesos


    【解决方案1】:

    应该是 zkCli.sh,你可以在 /usr/share/zookeeper/bin/zkCli.sh 找到它。 您可以按如下方式启动它

    sudo /usr/share/zookeeper/bin/zkCli.sh -server localhost:2181
    

    【讨论】:

    • 这种情况下可以去掉-server localhost:2181参数,因为它是默认值。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-30
    • 2013-06-12
    • 2017-08-13
    • 2018-06-04
    • 2015-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多