我还尝试运行一个简单的json应用程序,打印“ hi”并显示所需的输出。
如果我可以获得可以在Marathon Framework上发布的Cassandra-Cluster json文件?
我尝试在Marathon Framework上运行此应用程序,但该应用程序在那里显示了延迟状态。
我认为“音量驱动器”的值存在问题
{
"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"
}
]
}
}
}