You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Manku Timma (JIRA)" <ji...@apache.org> on 2015/08/20 05:23:45 UTC

[jira] [Comment Edited] (SPARK-9944) hive.metastore.warehouse.dir is not respected

    [ https://issues.apache.org/jira/browse/SPARK-9944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14703098#comment-14703098 ] 

Manku Timma edited comment on SPARK-9944 at 8/20/15 3:23 AM:
-------------------------------------------------------------

Let me describe what I tried out:
1. set the hive.metastore.warehouse.dir in hive-site.xml
2. run a small sample program doing saveAsTable against spark-1.3.1. Data gets stored in the location pointed by hive.metastore.warehouse.dir
3. run the same program against spark-1.4.0 and the data is now stored as per the location configured in the metastore DB (DBS.DB_LOCATION_URI column) and the hive.metastore.warehouse.dir is not honoured.



was (Author: manku_timma):
Let me describe what I tried out:
1. set the hive.metastore.warehouse.dir in hive-site.xml
2. run a small sample program doing saveAsTable against spark-1.3.1. Data gets stored in the location pointed by hive.metastore.warehouse.dir
3. run the same program against spark-1.4.0 and the data is not stored as per the location configured in the metastore DB (DBS.DB_LOCATION_URI column)


> hive.metastore.warehouse.dir is not respected
> ---------------------------------------------
>
>                 Key: SPARK-9944
>                 URL: https://issues.apache.org/jira/browse/SPARK-9944
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.0, 1.4.1
>            Reporter: Manku Timma
>
> In 1.3.1, {{hive.metastore.warehouse.dir}} was honoured and table data was stored there. In 1.4.0, this is no longer used. Instead {{DBS.DB_LOCATION_URI}} of the metastore is used always. This breaks use cases where the param is used to override the warehouse location.
> To reproduce the issue, start spark-shell with {{hive.metastore.warehouse.dir}} set in hive-site.xml and run {{df.saveAsTable("x")}}. You will see that the param is not honoured.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org