GitHub user andrewor14 opened a pull request:

    https://github.com/apache/spark/pull/12847

    [SPARK-15068][SQL] Use proper metastore warehouse dir

    ## What changes were proposed in this pull request?
    
    Today, 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`.
    
    This 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.
    
    ## How was this patch tested?
    
    `HiveClientSuite`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewor14/spark default-db-path

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12847.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12847
    
----
commit 9e32e239e90aa3d665aa3dfb33ac5d7f8932d326
Author: Andrew Or <[email protected]>
Date:   2016-04-30T00:28:16Z

    Use configured warehouse path instead of empty string

commit a576861b66103b094ab67e524c6d3484eff466ea
Author: Andrew Or <[email protected]>
Date:   2016-05-02T19:34:17Z

    Resolve warehouse path from Spark and Hive confs

commit 9a4f0da2185d01d9e36e4faa7f03b4cfc5e617b6
Author: Andrew Or <[email protected]>
Date:   2016-05-02T19:35:10Z

    Merge branch 'master' of github.com:apache/spark into default-db-path

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to