
schema.sparkCluster.json Maven / Gradle / Ivy
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "A Spark cluster configuration",
"type": "object",
"extends": {
"type": "object",
"existingJavaType": "io.radanalytics.operator.common.EntityInfo"
},
"properties": {
"master": {
"$ref": "#/definitions/RCSpec"
},
"worker": {
"$ref": "#/definitions/RCSpec"
},
"customImage": {
"type": "string",
"default": "quay.io/jkremser/openshift-spark:2.4.0"
},
"metrics": {
"type": "boolean",
"default": "false"
},
"sparkConfigurationMap": {
"type": "string"
},
"env": {
"$ref": "#/definitions/NameValue"
},
"sparkConfiguration": { "$ref": "#/definitions/NameValue" },
"labels" : {
"existingJavaType" : "java.util.Map",
"type" : "object"
},
"downloadData": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": { "type": "string" },
"to": { "type": "string" }
},
"required": ["url", "to"]
}
}
},
"required": [ ],
"definitions": {
"RCSpec": {
"type": "object",
"properties": {
"instances": {
"type": "integer",
"default": "1",
"minimum": "0"
},
"memory": {
"type": "string"
},
"cpu": {
"type": "string"
},
"labels" : {
"existingJavaType" : "java.util.Map",
"type" : "string",
"pattern": "([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]"
}
}
},
"NameValue": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"value": { "type": "string" }
},
"required": ["name", "value"]
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy