无法在马拉松框架的mesos群集上运行cassandra群集

时间:2018-07-20 03:17:30

标签: cassandra mesos marathon

我能够启动mesos集群和马拉松框架,并运行了一个演示应用程序,该应用程序可以打印问候。我可以在ec2实例上成功做到这一点。

现在,我在另一个ec2实例上启动了一个cassandra集群,它成功启动了,但是我无法使用marathon框架将cassandra集群部署到mesos集群上。

这是我的代码:

{
  "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

感谢您的提前帮助!

0 个答案:

没有答案