Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

using resource staging server - driver unable to load config map or secret #505

@luck02

Description

@luck02

I get this result when trying to initialize the driver:

MountVolume.SetUp failed for volume "spark-init-properties" : configmaps "kmderived-1506142014799-init-config" not found

"volumes": [
      {
        "name": "spark-init-properties",
        "configMap": {
          "name": "kmderived-1506142014799-init-config",
          "items": [
            {
              "key": "download-submitted-files",
              "path": "spark-init.properties"
            }
          ],
          "defaultMode": 420
        }
⇒  kubectl describe configmap kmderived-1506142014799-init-config
Name:		kmderived-1506142014799-init-config
Namespace:	default
Labels:		<none>
Annotations:	<none>

Data
====
download-submitted-files:
----
#Java properties built from Kubernetes config map with name: kmderived-1506142014799-init-config and config map key: $configMapKey
#Fri Sep 22 21:48:39 PDT 2017
spark.kubernetes.initcontainer.downloadJarsSecretLocation=/mnt/secrets/spark-init/downloadSubmittedJarsSecret
spark.kubernetes.initcontainer.downloadFilesSecretLocation=/mnt/secrets/spark-init/downloadSubmittedFilesSecret
spark.kubernetes.initcontainer.downloadJarsResourceIdentifier=eed35aaa-427e-478d-bef3-5a1db65027fb
spark.kubernetes.initcontainer.downloadFilesResourceIdentifier=ca549af3-f58a-4a48-bd79-749cb959c5ea
spark.ssl.kubernetes.resourceStagingServer.enabled=false
spark.kubernetes.resourceStagingServer.uri=http\://asfdsafsdaf-23423423432.us-east-1.elb.amazonaws.com\:10000
spark.kubernetes.mountdependencies.filesDownloadDir=/var/spark-data/spark-files
spark.kubernetes.mountdependencies.jarsDownloadDir=/var/spark-data/spark-jars

Events:	<none>

This config map does exist, same situation with the secret.

Also, the spark submit call hangs for quite awhile:

2017-09-22 21:46:55 WARN  ConfigurationUtils:66 - Configuration with key spark.kubernetes.driver.labels is deprecated. Use configurations with prefix spark.kubernetes.driver.label.<key> instead.
2017-09-22 21:46:55 WARN  NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2017-09-22 21:46:55 INFO  SecurityManager:54 - Changing view acls to: garylucas
2017-09-22 21:46:55 INFO  SecurityManager:54 - Changing modify acls to: garylucas
2017-09-22 21:46:55 INFO  SecurityManager:54 - Changing view acls groups to:
2017-09-22 21:46:55 INFO  SecurityManager:54 - Changing modify acls groups to:
2017-09-22 21:46:55 INFO  SecurityManager:54 - SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(garylucas); groups with view permissions: Set(); users  with modify permissions: Set(garylucas); groups with modify permissions: Set()
---- Output hangs here for at least 2-3 minutes
2017-09-22 21:48:41 INFO  LoggingPodStatusWatcherImpl:54 - State changed, new state:

Note the nearly 2 minutes between the last set and the pod status updates? Is that normal?

I've got about 13mb of jar's that are uploading, so that may be normal... However it seems pretty slow

      --packages org.apache.hadoop:hadoop-aws:2.7.3,joda-time:joda-time:2.9.3,mysql:mysql-connector-java:5.1.35,com.amazonaws:aws-java-sdk:1.7.4\

If it's that slow, that's fine. But I'm more wondering if something isn't timing out on the back end.

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