[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user asfgit closed the pull request at: https://github.com/apache/carbondata/pull/2992 ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user sraghunandan commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r243871487 --- Diff: docs/hive-guide.md --- @@ -55,7 +55,7 @@ $HADOOP_HOME/bin/hadoop fs -put sample.csv /sample.csv ``` import org.apache.spark.sql.SparkSession import org.apache.spark.sql.CarbonSession._ -val rootPath = "hdfs:user/hadoop/carbon" +val rootPath = "hdfs:///user/hadoop/carbon" --- End diff -- why 3 ///. ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user lamber-ken commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r243169433 --- Diff: docs/quick-start-guide.md --- @@ -80,43 +80,49 @@ import org.apache.spark.sql.CarbonSession._ * Create a CarbonSession : ``` -val carbon = SparkSession.builder().config(sc.getConf) - .getOrCreateCarbonSession("") +val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("") ``` -**NOTE**: By default metastore location points to `../carbon.metastore`, user can provide own metastore location to CarbonSession like `SparkSession.builder().config(sc.getConf) -.getOrCreateCarbonSession("", "")` +**NOTE** + - By default metastore location points to `../carbon.metastore`, user can provide own metastore location to CarbonSession like + `SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("", "")`. + - Data storage location can be specified by ``, like `/carbon/data/store`, `hdfs://localhost:9000/carbon/data/store` or `s3a://carbon/data/store`. Executing Queries ## Creating a Table ``` -scala>carbon.sql("CREATE TABLE -IF NOT EXISTS test_table( -id string, -name string, -city string, -age Int) - STORED AS carbondata") +carbon.sql( --- End diff -- thanks for review. guide doc should reproduce the flow simply. if not, user need to modify multi lines to make runnable, it will affect user. ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user KanakaKumar commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r243168227 --- Diff: docs/quick-start-guide.md --- @@ -80,43 +80,49 @@ import org.apache.spark.sql.CarbonSession._ * Create a CarbonSession : ``` -val carbon = SparkSession.builder().config(sc.getConf) - .getOrCreateCarbonSession("") +val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("") ``` -**NOTE**: By default metastore location points to `../carbon.metastore`, user can provide own metastore location to CarbonSession like `SparkSession.builder().config(sc.getConf) -.getOrCreateCarbonSession("", "")` +**NOTE** + - By default metastore location points to `../carbon.metastore`, user can provide own metastore location to CarbonSession like + `SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("", "")`. + - Data storage location can be specified by ``, like `/carbon/data/store`, `hdfs://localhost:9000/carbon/data/store` or `s3a://carbon/data/store`. Executing Queries ## Creating a Table ``` -scala>carbon.sql("CREATE TABLE -IF NOT EXISTS test_table( -id string, -name string, -city string, -age Int) - STORED AS carbondata") +carbon.sql( --- End diff -- This is scala code format. I think examples need not follow scala code format. I think the examples are wrapped to multiple lines for readability (Even if document converted to PDF) @sraghunandan , @sgururajshetty please help to confirm the standard convention followed. ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user lamber-ken commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r243144133 --- Diff: docs/ddl-of-carbondata.md --- @@ -157,22 +157,22 @@ CarbonData DDL statements are documented here,which includes: * GLOBAL_SORT: It increases the query performance, especially high concurrent point query. And if you care about loading resources isolation strictly, because the system uses the spark GroupBy to sort data, the resource can be controlled by spark. -### Example: --- End diff -- > There are many Examples in the fileï¼ we should unify it. ok ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user xubo245 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r242803409 --- Diff: docs/ddl-of-carbondata.md --- @@ -157,22 +157,22 @@ CarbonData DDL statements are documented here,which includes: * GLOBAL_SORT: It increases the query performance, especially high concurrent point query. And if you care about loading resources isolation strictly, because the system uses the spark GroupBy to sort data, the resource can be controlled by spark. -### Example: --- End diff -- There are many Examples in the fileï¼ we should unify it. ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
Github user xubo245 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2992#discussion_r242007651 --- Diff: docs/quick-start-guide.md --- @@ -91,32 +90,31 @@ val carbon = SparkSession.builder().config(sc.getConf) ## Creating a Table ``` -scala>carbon.sql("CREATE TABLE -IF NOT EXISTS test_table( -id string, -name string, -city string, -age Int) - STORED AS carbondata") +carbon.sql("""CREATE TABLE IF NOT EXISTS test_table( +id string, +name string, +city string, +age Int) + STORED AS carbondata""") ``` ## Loading Data to a Table ``` -scala>carbon.sql("LOAD DATA INPATH '/path/to/sample.csv' - INTO TABLE test_table") +carbon.sql("LOAD DATA INPATH '/path/to/sample.csv' INTO TABLE test_table") --- End diff -- Can you optimize the path? it's hdfs path when creating CarbonSession, but it's local path when loading data ---
[GitHub] carbondata pull request #2992: [CARBONDATA-3176] Optimize quick-start-guide ...
GitHub user lamber-ken opened a pull request: https://github.com/apache/carbondata/pull/2992 [CARBONDATA-3176] Optimize quick-start-guide documentation Be sure to do all of the following checklist to help us incorporate your contribution quickly and easily: - [ ] Any interfaces changed? - [ ] Any backward compatibility impacted? - [ ] Document update required? - [ ] Testing done Please provide details on - Whether new unit test cases have been added or why no new tests are required? - How it is tested? Please attach test report. - Is it a performance related change? Please attach the performance test report. - Any additional information to help reviewers in testing this change. - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. You can merge this pull request into a Git repository by running: $ git pull https://github.com/BigDataArtisans/carbondata optimize-quick-start-guide-documentation Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2992.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2992 commit ee91443a7449a53105bda1b8e818b8451d4a5d54 Author: lamber-ken <2217232293@...> Date: 2018-12-16T17:17:55Z [CARBONDATA-3176] Optimize quick-start-guide documentation ---