{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12847","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12847/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12847/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12847/events","html_url":"https://github.com/apache/spark/pull/12847","id":152628245,"number":12847,"title":"[SPARK-15068][SQL] Use proper metastore warehouse dir","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-02T19:42:57Z","updated_at":"2016-05-02T23:13:46Z","closed_at":"2016-05-02T22:40:08Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12847","html_url":"https://github.com/apache/spark/pull/12847","diff_url":"https://github.com/apache/spark/pull/12847.diff","patch_url":"https://github.com/apache/spark/pull/12847.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nToday, we use `\"\"` for the metastore warehouse dir without Hive, and `/user/hive/warehouse` with Hive. These are somewhat arbitrary and unlikely to exist on the box running Spark. A better default is something under `user.dir`.\r\n\r\nThis patch also allows the user to configure the warehouse dir using `spark.sql.warehouse.dir`. Alternatively, the user can also set `hive.metastore.warehouse.dir`. If both are set, the Spark one takes precedence.\r\n\r\n## How was this patch tested?\r\n\r\n`SessionCatalogSuite`, `HiveClientSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/216392235","html_url":"https://github.com/apache/spark/pull/12847#issuecomment-216392235","issue_url":"https://api.github.com/repos/apache/spark/issues/12847","id":216392235,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","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":"2016-05-02T23:13:46Z","updated_at":"2016-05-02T23:13:46Z","body":"Merged build finished. Test FAILed."}}