carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #547: Simplify the carbon session creation...
Date Tue, 17 Jan 2017 19:43:05 GMT
GitHub user ravipesala opened a pull request:

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

    Simplify the carbon session creation.

    Following is the way of creating carbon session in java code and spark-shell
    
    1. Spark Shell
      Start spark shell
      `$./spark-shell --jars <carbon-jar-path>`
     
      Just execute following commands to create carbon session
      ```
       scala>import org.apache.spark.sql.SparkSession
       scala>import org.apache.spark.sql.CarbonSession._
       scala> val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession()
      ```
     After executing above commands CarbonSession is created as carbon
    
    2.  With Java Code
    Please refer examples/spark2/src/main/scala/org/apache/carbondata/examples/CarbonSessionExample.scala

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

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

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

    https://github.com/apache/incubator-carbondata/pull/547.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 #547
    
----
commit 4eaf3e68755098f0e33af1a2137733965233a295
Author: ravipesala <ravi.pesala@gmail.com>
Date:   2017-01-17T19:34:30Z

    Simplify the carbon session creation.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message