diff options
author | wangfei <wangfei1@huawei.com> | 2014-12-01 14:02:02 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-12-01 14:02:28 -0800 |
commit | 31cf51bfaa0e332b903cb5d7f511dfa76d36bdc5 (patch) | |
tree | e28efd0bb03d3b7e891edbc5744418e802fc9fdd /examples | |
parent | b39cfee0620ccd9c4e966a7d9bbd6017e35023cd (diff) | |
download | spark-31cf51bfaa0e332b903cb5d7f511dfa76d36bdc5.tar.gz spark-31cf51bfaa0e332b903cb5d7f511dfa76d36bdc5.tar.bz2 spark-31cf51bfaa0e332b903cb5d7f511dfa76d36bdc5.zip |
[SQL] Minor fix for doc and comment
Author: wangfei <wangfei1@huawei.com>
Closes #3533 from scwf/sql-doc1 and squashes the following commits:
962910b [wangfei] doc and comment fix
(cherry picked from commit 7b79957879db4dfcc7c3601cb40ac4fd576259a5)
Signed-off-by: Michael Armbrust <michael@databricks.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala b/examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala index 227acc1175..138923c4d7 100644 --- a/examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala +++ b/examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala @@ -29,9 +29,10 @@ object HiveFromSpark { val sc = new SparkContext(sparkConf) val path = s"${System.getenv("SPARK_HOME")}/examples/src/main/resources/kv1.txt" - // A local hive context creates an instance of the Hive Metastore in process, storing - // the warehouse data in the current directory. This location can be overridden by - // specifying a second parameter to the constructor. + // A hive context 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. val hiveContext = new HiveContext(sc) import hiveContext._ |