aboutsummaryrefslogtreecommitdiff
path: root/examples/src
diff options
context:
space:
mode:
authorwangfei <wangfei1@huawei.com>2014-12-01 14:02:02 -0800
committerMichael Armbrust <michael@databricks.com>2014-12-01 14:02:02 -0800
commit7b79957879db4dfcc7c3601cb40ac4fd576259a5 (patch)
tree9438a8d3e90c19bc2cad5bc84a671f9476b1251c /examples/src
parentbc353819cc86c3b0ad75caf81b47744bfc2aeeb3 (diff)
downloadspark-7b79957879db4dfcc7c3601cb40ac4fd576259a5.tar.gz
spark-7b79957879db4dfcc7c3601cb40ac4fd576259a5.tar.bz2
spark-7b79957879db4dfcc7c3601cb40ac4fd576259a5.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
Diffstat (limited to 'examples/src')
-rw-r--r--examples/src/main/scala/org/apache/spark/examples/sql/hive/HiveFromSpark.scala7
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._