GitHub user manku-timma opened a pull request:

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

    [SPARK-9944] [SQL] [WIP] Allow hive.metastore.warehouse.dir to override 
db_location_uri

    When you run `dataframe.saveAsTable("tablename")`, the warehouse directory 
in the metastore (DBS.DB_LOCATION_URI) is used as the location to store data. 
This should have been overrideable with hive.metastore.warehouse.dir. But with 
1.4.x, this override is broken.
    
    The solution I have is to prefer hive.metastore.warehouse.dir to 
DBS.DB_LOCATION_URI. I am not fully sure this is the right place to put the fix 
and if there is a better Hive method to call.
    
    cc: @marmbrus 

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

    $ git pull https://github.com/manku-timma/spark-1 SPARK-9944

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

    https://github.com/apache/spark/pull/8186.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 #8186
    
----
commit bd9481fee18fd2cfe73c93bca9a0f459feec1a32
Author: Manku Timma <[email protected]>
Date:   2015-08-14T01:43:20Z

    [WIP] [SQL] Allow hive.metastore.warehouse.dir to override db_location_uri

----


---
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