{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20989","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20989/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20989/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20989/events","html_url":"https://github.com/apache/spark/pull/20989","id":311803482,"number":20989,"title":"[SPARK-23529][K8s] Support mounting hostPath volumes for executors","user":{"login":"madanadit","id":2262458,"avatar_url":"https://avatars1.githubusercontent.com/u/2262458?v=4","gravatar_id":"","url":"https://api.github.com/users/madanadit","html_url":"https://github.com/madanadit","followers_url":"https://api.github.com/users/madanadit/followers","following_url":"https://api.github.com/users/madanadit/following{/other_user}","gists_url":"https://api.github.com/users/madanadit/gists{/gist_id}","starred_url":"https://api.github.com/users/madanadit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madanadit/subscriptions","organizations_url":"https://api.github.com/users/madanadit/orgs","repos_url":"https://api.github.com/users/madanadit/repos","events_url":"https://api.github.com/users/madanadit/events{/privacy}","received_events_url":"https://api.github.com/users/madanadit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-05T23:32:56Z","updated_at":"2018-04-06T02:59:26Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20989","html_url":"https://github.com/apache/spark/pull/20989","diff_url":"https://github.com/apache/spark/pull/20989.diff","patch_url":"https://github.com/apache/spark/pull/20989.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR introduces a new config `spark.kubernetes.executor.volumes` taking a values of the form  `hostPath:containerPath[:ro|rw][,...]`; where  `hostPath` is the path for the executor pod volume, `containerPath` is the mount path and `ro` is read-only mode.\r\n\r\nThe use case is to enable short-circuit writes to distributed storage on k8s. The Alluxio File System uses domain sockets to enable short-circuit writes from the client to worker memory when co-located on the same host machine. A directory, lets say /tmp/domain on the host, is mounted on the Alluxio worker container as well as the Alluxio client ( = Spark executor) container. The worker creates a domain socket /tmp/domain/d and if the client container mounts the same directory, it can write directly to the Alluxio worker w/o passing through network stack. The end result is faster data access when data is local.\r\n\r\n## How was this patch tested?\r\n\r\nManual testing on a k8s v1.8 cluster.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/379135054","html_url":"https://github.com/apache/spark/pull/20989#issuecomment-379135054","issue_url":"https://api.github.com/repos/apache/spark/issues/20989","id":379135054,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T02:59:26Z","updated_at":"2018-04-06T02:59:26Z","author_association":"NONE","body":"Merged build finished. Test FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}