我能够启动mesos集群和marathon框架,并运行了一个打印hello的演示应用程序。我能够在ec2示例上成功地完成这项工作。
现在我在另一个ec2示例上启动了一个cassandra集群,它成功地启动了,但是我无法使用marathon框架在mesos集群上部署cassandra集群。
这是我的密码:
{
"id": "/cassandra/dev-test",
"instances": 1,
"cpus" : 0.5 ,
"mem": 512,
"ports": [
0
],
"uris": [
"https://downloads.mesosphere.io/cassandra-mesos/artifacts/0.2.0-1/cassandra-mesos-0.2.0-1.tar.gz",
"https://downloads.mesosphere.io/java/jre-7u76-linux-x64.tar.gz"
],
"env": {
"MESOS_ZK": "zk://34.201.141.21:2181/mesos",
"JAVA_OPTS": "-Xms256m -Xmx256m",
"CASSANDRA_CLUSTER_NAME": "dev-test",
"CASSANDRA_ZK": "zk://34.201.141.21:2181/cassandra-mesos",
"CASSANDRA_NODE_COUNT": "3",
"CASSANDRA_SEED_COUNT": "2",
"CASSANDRA_SEEDS": "54.187.196.55,34.220.73.46 ",
"CASSANDRA_RESOURCE_CPU_CORES": "2.0",
"CASSANDRA_RESOURCE_MEM_MB": "2048",
"CASSANDRA_RESOURCE_DISK_MB": "2048",
"CASSANDRA_HEALTH_CHECK_INTERVAL_SECONDS": "60",
"CASSANDRA_FAILOVER_TIMEOUT_SECONDS": "604800",
"CASSANDRA_BOOTSTRAP_GRACE_TIME_SECONDS": "120",
"CASSANDRA_ZK_TIMEOUT_MS": "10000"
},
"cmd": "$(pwd)/jre*/bin/java $JAVA_OPTS -classpath cassandra-mesos-framework.jar io.mesosphere.mesos.frameworks.cassandra.framework.Main",
"healthChecks": [
{
"gracePeriodSeconds": 120,
"intervalSeconds": 30,
"maxConsecutiveFailures": 0,
"path": "/health/cluster",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
},
{
"gracePeriodSeconds": 120,
"intervalSeconds": 30,
"maxConsecutiveFailures": 3,
"path": "/health/process",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
}
]
}
这是代码的日志文件是非常大的,所以我不能附加在这里。
我使用的另一种方法是通过vagrant,但我无法通过它创建mesos集群。链接如下:https://github.com/jonasrosland/vagrant-mesos
提前谢谢你的帮助!!!
暂无答案!
目前还没有任何答案,快来回答吧!