mesos/src/examples/python/test\u framework.py第25行,找不到mesos.native

hfwmuf9z  于 2021-06-21  发布在  Mesos
关注(0)|答案(1)|浏览(252)

我在ubuntu14.04上部署了apachemesos-0.23这个错误来自最后一步


# Run Python framework (Exits after successfully running some tasks.).

$ ./src/examples/python/test-framework 127.0.0.1:5050
source code:
----
25 import mesos.native
-----
Mesos/src/examples/python/test_framework.py  line 25, mesos.native could not found

谁能帮我解决这个问题?

pw136qt2

pw136qt21#

您可以尝试通过yum或apt-get安装mesos
https://open.mesosphere.com/getting-started/datacenter/install/
乌班图:


# Setup

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)

# Add the repository

echo "deb http://repos.mesosphere.com/${DISTRO} ${CODENAME} main" | \
  sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
sudo apt-get -y install mesos

centos 6公司:


# Add the repository

sudo rpm -Uvh http://repos.mesosphere.com/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm
sudo yum -y install mesos

我可以在这方面取得成功。

相关问题