{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/21709","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/21709/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/21709/comments","events_url":"https://api.github.com/repos/apache/spark/issues/21709/events","html_url":"https://github.com/apache/spark/pull/21709","id":338096784,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTE1Mjcw","number":21709,"title":"[SPARK-5152][CORE] Read metrics config file from Hadoop file system","user":{"login":"jzhuge","id":1883812,"node_id":"MDQ6VXNlcjE4ODM4MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1883812?v=4","gravatar_id":"","url":"https://api.github.com/users/jzhuge","html_url":"https://github.com/jzhuge","followers_url":"https://api.github.com/users/jzhuge/followers","following_url":"https://api.github.com/users/jzhuge/following{/other_user}","gists_url":"https://api.github.com/users/jzhuge/gists{/gist_id}","starred_url":"https://api.github.com/users/jzhuge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzhuge/subscriptions","organizations_url":"https://api.github.com/users/jzhuge/orgs","repos_url":"https://api.github.com/users/jzhuge/repos","events_url":"https://api.github.com/users/jzhuge/events{/privacy}","received_events_url":"https://api.github.com/users/jzhuge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-04T00:52:44Z","updated_at":"2018-07-06T05:20:10Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/21709","html_url":"https://github.com/apache/spark/pull/21709","diff_url":"https://github.com/apache/spark/pull/21709.diff","patch_url":"https://github.com/apache/spark/pull/21709.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nEnable metrics config file to be read directly from Hadoop file system.\r\n```\r\nspark-submit --conf spark.metrics.conf=hdfs://<nn>:8020/config/spark-metrics.properties\r\nspark-submit --conf spark.metrics.conf=s3a://<bucket>/config/spark-metrics.properties\r\n```\r\n\r\nThere is no need to distribute the config file if either HDFS or S3A is used.\r\n\r\nIf no URI scheme is specified, assume file://. This ensures backwards compatibility.\r\n\r\n## How was this patch tested?\r\n\r\nUnit tests:\r\n- MetricsSystemSuite\r\n- MetricsConfigSuite\r\n- TaskContextSuite\r\n\r\nManual tests:\r\n- Local file without URI scheme\r\n- Local file with file://\r\n- HDFS file path\r\n- S3 file path\r\n\r\nAuthor: John Zhuge <jzhuge@apache.org>"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/402928758","html_url":"https://github.com/apache/spark/pull/21709#issuecomment-402928758","issue_url":"https://api.github.com/repos/apache/spark/issues/21709","id":402928758,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjkyODc1OA==","user":{"login":"jzhuge","id":1883812,"node_id":"MDQ6VXNlcjE4ODM4MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1883812?v=4","gravatar_id":"","url":"https://api.github.com/users/jzhuge","html_url":"https://github.com/jzhuge","followers_url":"https://api.github.com/users/jzhuge/followers","following_url":"https://api.github.com/users/jzhuge/following{/other_user}","gists_url":"https://api.github.com/users/jzhuge/gists{/gist_id}","starred_url":"https://api.github.com/users/jzhuge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzhuge/subscriptions","organizations_url":"https://api.github.com/users/jzhuge/orgs","repos_url":"https://api.github.com/users/jzhuge/repos","events_url":"https://api.github.com/users/jzhuge/events{/privacy}","received_events_url":"https://api.github.com/users/jzhuge/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T05:20:10Z","updated_at":"2018-07-06T05:20:10Z","author_association":"NONE","body":"Not quite there with SparkConf. We already uses option `--properties-file` for a different purpose and spark-submit does not allow multiple occurrences of `--properties-file`.\r\n\r\nHow about the enhancement to allow multiple occurrences of `--properties-file`?\r\nThat will solve this issue and serve other use cases as well."}}
{"actor":{"display_login":"jzhuge"}}