You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ch...@apache.org on 2017/02/25 05:55:51 UTC

incubator-carbondata-site git commit: update quickstart as per PR

Repository: incubator-carbondata-site
Updated Branches:
  refs/heads/asf-site 89f370114 -> 1a11635a0


update quickstart as per PR


Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/commit/1a11635a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/tree/1a11635a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/diff/1a11635a

Branch: refs/heads/asf-site
Commit: 1a11635a0892bb52a1385f38d9d940d27eae2759
Parents: 89f3701
Author: chenliang613 <ch...@huawei.com>
Authored: Sat Feb 25 13:55:28 2017 +0800
Committer: chenliang613 <ch...@huawei.com>
Committed: Sat Feb 25 13:55:28 2017 +0800

----------------------------------------------------------------------
 content/docs/latest/quick-start-guide.html         | 7 ++++---
 src/main/webapp/docs/latest/quick-start-guide.html | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/1a11635a/content/docs/latest/quick-start-guide.html
----------------------------------------------------------------------
diff --git a/content/docs/latest/quick-start-guide.html b/content/docs/latest/quick-start-guide.html
index 8402e55..3c1bfda 100644
--- a/content/docs/latest/quick-start-guide.html
+++ b/content/docs/latest/quick-start-guide.html
@@ -6,9 +6,9 @@
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
-
+    
       http://www.apache.org/licenses/LICENSE-2.0
-
+    
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -50,7 +50,8 @@
 <ul>
     <li>Create a CarbonSession :</li>
 </ul><p><code>
-    val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession()
+    val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("<hdfs store path>")
+    NOTE: By default metastore location is pointed to "../carbon.metastore", user can provide own metastore location to CarbonSession like SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("<hdfs store path>", "<local metastore path>")
 </code></p><h4>Executing Queries</h4><h5>Creating a Table</h5><p><code>
     scala&gt;carbon.sql(&quot;CREATE TABLE IF NOT EXISTS test_table(id string, name string, city
     string, age Int) STORED BY &#39;carbondata&#39;&quot;)

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/1a11635a/src/main/webapp/docs/latest/quick-start-guide.html
----------------------------------------------------------------------
diff --git a/src/main/webapp/docs/latest/quick-start-guide.html b/src/main/webapp/docs/latest/quick-start-guide.html
index 8402e55..3c1bfda 100644
--- a/src/main/webapp/docs/latest/quick-start-guide.html
+++ b/src/main/webapp/docs/latest/quick-start-guide.html
@@ -6,9 +6,9 @@
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
-
+    
       http://www.apache.org/licenses/LICENSE-2.0
-
+    
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -50,7 +50,8 @@
 <ul>
     <li>Create a CarbonSession :</li>
 </ul><p><code>
-    val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession()
+    val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("<hdfs store path>")
+    NOTE: By default metastore location is pointed to "../carbon.metastore", user can provide own metastore location to CarbonSession like SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("<hdfs store path>", "<local metastore path>")
 </code></p><h4>Executing Queries</h4><h5>Creating a Table</h5><p><code>
     scala&gt;carbon.sql(&quot;CREATE TABLE IF NOT EXISTS test_table(id string, name string, city
     string, age Int) STORED BY &#39;carbondata&#39;&quot;)