我在DCOS中安装了Apache点火
{
"volumes": null,
"id": "/ignite",
"cmd": "cd $MESOS_SANDBOX; java -Xmx2048m -jar ignite-mesos-2.0.0.jar",
"args": null,
"user": null,
"env": {
"IGNITE_MEMORY_PER_NODE": "3072",
"IGNITE_NODE_COUNT": "3",
"IGNITE_VERSION": "2.0.0",
"MESOS_MASTER_URL": "zk://localhost:2181/mesos",
"IGNITE_RUN_CPU_PER_NODE": "0.1"
},
"cpus": 1,
"mem": 3072.0,
"instances": 1,
"uris": ["http://servername/ignite/ignite-mesos-2.0.0.jar"],
"container": {
"type": "DOCKER",
"docker": {
"image": "openjdk:8-alpine",
"network": "HOST",
"portMappings": [
{ "containerPort": 0, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }
]
}
},
"labels": {
"DCOS_SERVICE_SCHEME": "http",
"DCOS_SERVICE_NAME": "ignite",
"DCOS_SERVICE_PORT_INDEX": "0"
},
"acceptedResourceRoles": ["*","slave_public"]
}
我得到以下错误 线程“main”中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有mesos 在java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
我试着保留“MESOS_NATIVE_JAVA_LIBRARY”:“/ usr / lib / libmesos.so”,但仍然是同样的错误
答案 0 :(得分:1)
尝试将.so显式添加到java.library.path并保持env变量" MESOS_NATIVE_JAVA_LIBRARY"构造
此外,使用root权限启动作业服务器。