carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject [1/2] incubator-carbondata git commit: Update Quick-Start.md
Date Wed, 06 Jul 2016 09:50:24 GMT
Repository: incubator-carbondata
Updated Branches:
  refs/heads/master 39d45f778 -> d94cf2eb3


Update Quick-Start.md

fix typos

Update Quick-Start.md

fix typo

Update Quick-Start.md

Fix typo for Quick-Start


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

Branch: refs/heads/master
Commit: 31638963b424169381b376e28c080e8edbfdcb9f
Parents: 39d45f7
Author: iteblog <wyphao.2007@163.com>
Authored: Fri Jul 1 15:26:48 2016 +0800
Committer: chenliang613 <chenliang613@apache.org>
Committed: Wed Jul 6 15:18:37 2016 +0530

----------------------------------------------------------------------
 docs/Quick-Start.md | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/31638963/docs/Quick-Start.md
----------------------------------------------------------------------
diff --git a/docs/Quick-Start.md b/docs/Quick-Start.md
index 32c158c..dbc985d 100644
--- a/docs/Quick-Start.md
+++ b/docs/Quick-Start.md
@@ -60,12 +60,14 @@ $ ./bin/spark-shell --master local --jars ${carbondata_jar},${mysql_jar}
 import org.apache.spark.sql.CarbonContext
 import java.io.File
 import org.apache.hadoop.hive.conf.HiveConf
-val cc = new CarbonContext(sc, "./carbondata/store")
+val storePath = "hdfs://hacluster/Opt/CarbonStore"
+val cc = new CarbonContext(sc, storePath)
 cc.setConf("carbon.kettle.home","./carbondata/carbonplugins")
 val metadata = new File("").getCanonicalPath + "/carbondata/metadata"
 cc.setConf("hive.metastore.warehouse.dir", metadata)
 cc.setConf(HiveConf.ConfVars.HIVECHECKFILEFORMAT.varname, "false")
 ```
+*Note*: `storePath` can be a hdfs path or a local path , the path is used to store table
data.
 
 * Create table
 
@@ -92,9 +94,11 @@ val dataFilePath = new File("").getCanonicalPath + "/carbondata/sample.csv"
 cc.sql(s"load data inpath '$dataFilePath' into table table1")
 ```
 
+Note: Carbondata also support `LOAD DATA LOCAL INPATH 'folder_path' INTO TABLE [db_name.]table_name
OPTIONS(property_name=property_value, ...)` syntax, but right now there is no significant
meaning to local in carbondata.We just keep it to align with hive syntax. `dataFilePath` can
be hdfs path as well like `val dataFilePath = hdfs://hacluster//carbondata/sample.csv`  
+
 * Query data from table1
 
 ```
 cc.sql("select * from table1").show
 cc.sql("select city, avg(age), sum(age) from table1 group by city").show
-```
\ No newline at end of file
+```


Mime
View raw message