Skip to content

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

@lwinus1

Description

@lwinus1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions