{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20460","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20460/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20460/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20460/events","html_url":"https://github.com/apache/spark/pull/20460","id":293319683,"number":20460,"title":"[SPARK-23285][K8S] Allow fractional values for spark.executor.cores","user":{"login":"liyinan926","id":3709137,"avatar_url":"https://avatars2.githubusercontent.com/u/3709137?v=4","gravatar_id":"","url":"https://api.github.com/users/liyinan926","html_url":"https://github.com/liyinan926","followers_url":"https://api.github.com/users/liyinan926/followers","following_url":"https://api.github.com/users/liyinan926/following{/other_user}","gists_url":"https://api.github.com/users/liyinan926/gists{/gist_id}","starred_url":"https://api.github.com/users/liyinan926/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyinan926/subscriptions","organizations_url":"https://api.github.com/users/liyinan926/orgs","repos_url":"https://api.github.com/users/liyinan926/repos","events_url":"https://api.github.com/users/liyinan926/events{/privacy}","received_events_url":"https://api.github.com/users/liyinan926/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-01-31T21:34:29Z","updated_at":"2018-02-01T01:18:41Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20460","html_url":"https://github.com/apache/spark/pull/20460","diff_url":"https://github.com/apache/spark/pull/20460.diff","patch_url":"https://github.com/apache/spark/pull/20460.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nK8s treats CPU as a \"compressible resource\" and can actually assign millicpus to individual containers, e.g., 0.1 or 100m. In https://github.com/apache/spark/blob/master/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodFactory.scala#L94, we already parse `spark.executor.cores` as a double value. This PR simply bypasses the check for integral values for the property in Kubernetes mode.\r\n\r\n## How was this patch tested?\r\n\r\nManual tests.\r\n\r\n@foxish @vanzin "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/362126485","html_url":"https://github.com/apache/spark/pull/20460#issuecomment-362126485","issue_url":"https://api.github.com/repos/apache/spark/issues/20460","id":362126485,"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-02-01T01:18:41Z","updated_at":"2018-02-01T01:18:41Z","author_association":"NONE","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/86890/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}