CSCfi / spark-openshift

Run Apache Spark on Openshift
MIT License
9 stars 9 forks source link

cannot unmarshal string into Go struct field DeploymentConfigSpec.spec.replicas of type int32 #22

Open lwinus opened 1 year ago

lwinus commented 1 year ago

I'm getting below error message. I see that jupyter-notebook and spark-master were created but no worker was created in OpenShift. Thanks in advanced!

$ oc process -f spark-template.yml -p CLUSTER_NAME=sample-etl -p USERNAME=johndoe -p PASSWORD=$(oc whoami -t) -p WORKER_REPLICAS=1 | oc apply -f -
persistentvolumeclaim/sample-etl-pvc created
secret/sample-etl-secret created
configmap/sample-etl-nginx-config-spark created
configmap/sample-etl-nginx-config-jupyter created
configmap/sample-etl-jupyter-notebook-config created
service/sample-etl-spark-master created
service/sample-etl-spark-master-ui created
service/sample-etl-jupyter-notebook created
route.route.openshift.io/sample-etl-spark-master-route created
route.route.openshift.io/sample-etl-jupyter-notebook-route created
deploymentconfig.apps.openshift.io/sample-etl-spark-master created
deploymentconfig.apps.openshift.io/sample-etl-jupyter-notebook created
Error from server (BadRequest): error when creating "STDIN": DeploymentConfig in version "v1" cannot be handled as a DeploymentConfig: json: cannot unmarshal string into Go struct field DeploymentConfigSpec.spec.replicas of type int32