{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/16247","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/16247/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/16247/comments","events_url":"https://api.github.com/repos/apache/spark/issues/16247/events","html_url":"https://github.com/apache/spark/pull/16247","id":194794272,"number":16247,"title":"[SPARK-18817][SparkR] set default spark-warehouse path to tempdir()","user":{"login":"bdwyer2","id":19673623,"avatar_url":"https://avatars.githubusercontent.com/u/19673623?v=3","gravatar_id":"","url":"https://api.github.com/users/bdwyer2","html_url":"https://github.com/bdwyer2","followers_url":"https://api.github.com/users/bdwyer2/followers","following_url":"https://api.github.com/users/bdwyer2/following{/other_user}","gists_url":"https://api.github.com/users/bdwyer2/gists{/gist_id}","starred_url":"https://api.github.com/users/bdwyer2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdwyer2/subscriptions","organizations_url":"https://api.github.com/users/bdwyer2/orgs","repos_url":"https://api.github.com/users/bdwyer2/repos","events_url":"https://api.github.com/users/bdwyer2/events{/privacy}","received_events_url":"https://api.github.com/users/bdwyer2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-12-10T21:09:16Z","updated_at":"2016-12-13T19:12:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/16247","html_url":"https://github.com/apache/spark/pull/16247","diff_url":"https://github.com/apache/spark/pull/16247.diff","patch_url":"https://github.com/apache/spark/pull/16247.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nSet the default location of `spark.sql.warehouse.dir` to be compliant with the CRAN policy (https://cran.r-project.org/web/packages/policies.html) regarding writing files outside of the tmp directory. Previously a folder named `spark-warehouse` was created in the working directory when `sparkR.session()` was called.\r\n\r\nSee SPARK-15799 for discussion.\r\ncc @shivaram \r\n\r\n\r\n## How was this patch tested?\r\n\r\nAdded new test and manually verified nothing was created in my working directory after running the following code:\r\n```R\r\nsparkR.session(master = \"local[*]\",\r\n               sparkConfig = list(spark.driver.memory = \"2g\"),\r\n               enableHiveSupport = FALSE)\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/266832549","html_url":"https://github.com/apache/spark/pull/16247#issuecomment-266832549","issue_url":"https://api.github.com/repos/apache/spark/issues/16247","id":266832549,"user":{"login":"bdwyer2","id":19673623,"avatar_url":"https://avatars.githubusercontent.com/u/19673623?v=3","gravatar_id":"","url":"https://api.github.com/users/bdwyer2","html_url":"https://github.com/bdwyer2","followers_url":"https://api.github.com/users/bdwyer2/followers","following_url":"https://api.github.com/users/bdwyer2/following{/other_user}","gists_url":"https://api.github.com/users/bdwyer2/gists{/gist_id}","starred_url":"https://api.github.com/users/bdwyer2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdwyer2/subscriptions","organizations_url":"https://api.github.com/users/bdwyer2/orgs","repos_url":"https://api.github.com/users/bdwyer2/repos","events_url":"https://api.github.com/users/bdwyer2/events{/privacy}","received_events_url":"https://api.github.com/users/bdwyer2/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T19:12:49Z","updated_at":"2016-12-13T19:12:49Z","body":"Would calling the test with this be an acceptable solution?\r\n```R\r\nsparkR.session(enableHiveSupport = FALSE)\r\n```"}}
{"actor":{"display_login":"bdwyer2"}}