[ 
https://issues.apache.org/jira/browse/CARBONDATA-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15370545#comment-15370545
 ] 

ASF GitHub Bot commented on CARBONDATA-11:
------------------------------------------

GitHub user ravipesala opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/34

    [CARBONDATA-11]Supported Carbon Spark Shell to enhance usability

    It extends the code of Spark shell. It has readily available following 
contexts in Carbon Spark shell.
    1. **sc** is available as SparkContext
    2. **cc** is available as CarbonContext
    
    **Example :** 
    ```
    carbondata/bin$ ./carbon-spark-shell
    Carbon context available as cc.
    scala> cc.sql("CREATE TABLE test_table (country String, name String, 
phonetype String, serialname String, salary Int) STORED BY 
'org.apache.carbondata.format'")
    
    scala> cc.sql("LOAD DATA INPATH 
'/home/root1/carbon/carbondata/examples/src/main/resources/data.csv' into table 
test_table")
    
    scala> cc.sql("select count(*) as count from test_table").show()
    +-----+
    |count|
    +-----+
    | 1000|
    +-----+
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ravipesala/incubator-carbondata spark-shell

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-carbondata/pull/34.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 #34
    
----
commit 15ba925c277ff8bb42bbe2d7c0716905cb1a00eb
Author: ravipesala <[email protected]>
Date:   2016-07-11T05:46:30Z

    Added Carbon spark shell

commit dd6babc86e29a9abf988e673e2503fc8e450fe9f
Author: ravipesala <[email protected]>
Date:   2016-07-11T10:26:20Z

    Added Carbon spark shell

----


> Support carbon carbon spark shell in carbondata to simplify operations for 
> first time users
> -------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-11
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-11
>             Project: CarbonData
>          Issue Type: Improvement
>            Reporter: Ravindra Pesala
>            Assignee: Ravindra Pesala
>
> Currently in carbon there is no dedicated carbon shell in carbon so for first 
> time users to use carbon is no so easy. This feature simplify operations for 
> first time users and have good experience.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to