diff options
author | xin Wu <xinwu@us.ibm.com> | 2015-11-08 12:28:19 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-08 12:28:19 -0800 |
commit | 26739059bc39cd7aa7e0b1c16089c1cf8d8e4d7d (patch) | |
tree | 0e379cc7bcc33f66eaa2a90de923c1a88fde4ab6 /docs/sql-programming-guide.md | |
parent | 30c8ba71a76788cbc6916bc1ba6bc8522925fc2b (diff) | |
download | spark-26739059bc39cd7aa7e0b1c16089c1cf8d8e4d7d.tar.gz spark-26739059bc39cd7aa7e0b1c16089c1cf8d8e4d7d.tar.bz2 spark-26739059bc39cd7aa7e0b1c16089c1cf8d8e4d7d.zip |
[SPARK-10046][SQL] Hive warehouse dir not set in current directory when not …
Doc change to align with HiveConf default in terms of where to create `warehouse` directory.
Author: xin Wu <xinwu@us.ibm.com>
Closes #9365 from xwu0226/spark-10046-commit.
Diffstat (limited to 'docs/sql-programming-guide.md')
-rw-r--r-- | docs/sql-programming-guide.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 085874133d..52e03b951f 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -1627,8 +1627,10 @@ YARN cluster. The convenient way to do this is adding them through the `--jars` When working with Hive one must construct a `HiveContext`, which inherits from `SQLContext`, and adds support for finding tables in the MetaStore and writing queries using HiveQL. Users who do not have an existing Hive deployment can still create a `HiveContext`. When not configured by the -hive-site.xml, the context automatically creates `metastore_db` and `warehouse` in the current -directory. +hive-site.xml, the context automatically creates `metastore_db` in the current directory and +creates `warehouse` directory indicated by HiveConf, which defaults to `/user/hive/warehouse`. +Note that you may need to grant write privilege on `/user/hive/warehouse` to the user who starts +the spark application. {% highlight scala %} // sc is an existing SparkContext. |