如何使用marathon框架在mesos上运行cassandra集群?

wfsdck30  于 2021-06-26  发布在  Mesos
关注(0)|答案(0)|浏览(239)

我还试着运行一个简单的json应用程序,打印“hi”并显示理想的输出。
如果我能得到cassandra集群json文件,我可以发布在marathon框架上?
我试着在marathon框架上运行这个应用程序,但是它在那里显示延迟状态。
我认为“音量驱动”的价值有问题

{
"id": "cassandra-seed",
"instances": 1,
"cpus": 1,
"mem": 2048,
"env": {
    "CASSANDRA_CLUSTER_NAME": "DemoCluster",
    "CASSANDRA_SEEDS": "54.187.196.55"
},
"container": {
    "type": "DOCKER",
    "docker": {
        "image": "cassandra:3.10",
        "parameters": [
            {
                "key": "volume-driver",
                "value": "pxd"
            },
            {
                "key": "volume",
                "value": "size=2,name=CassandraSeed:/var/lib/cassandra"
            }
        ],
        "portMappings": [
            {
                "containerPort": 7000,
                "hostPort": 0,
                "name": "storage",
                "protocol": "tcp"
            },
            {
                "containerPort": 7001,
                "hostPort": 0,
                "name": "ssl",
                "protocol": "tcp"
            },
            {
                "containerPort": 7199,
                "hostPort": 0,
                "name": "jmx",
                "protocol": "tcp"
            },
            {
                "containerPort": 9042,
                "hostPort": 0,
                "name": "native-client",
                "protocol": "tcp"
            },
            {
                "containerPort": 9160,
                "hostPort": 0,
                "name": "thrift-client",
                "protocol": "tcp"
            }
        ]
    }
}
}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题