carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [45/56] [abbrv] incubator-carbondata git commit: Add spark version print in example (#694)
Date Thu, 23 Jun 2016 14:16:33 GMT
Add spark version print in example (#694)

* add spark version print in example

* fix style


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

Branch: refs/heads/master
Commit: bf7557d18c48e1db9349bc03b5a9f576f5b46ec4
Parents: 8777640
Author: Jacky Li <jacky.likun@huawei.com>
Authored: Mon Jun 20 17:30:01 2016 +0800
Committer: Ravindra Pesala <ravi.pesala@gmail.com>
Committed: Mon Jun 20 15:00:01 2016 +0530

----------------------------------------------------------------------
 .../scala/org/carbondata/examples/util/InitForExamples.scala   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/bf7557d1/examples/src/main/scala/org/carbondata/examples/util/InitForExamples.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/carbondata/examples/util/InitForExamples.scala b/examples/src/main/scala/org/carbondata/examples/util/InitForExamples.scala
index 2d193c0..4fa4ce9 100644
--- a/examples/src/main/scala/org/carbondata/examples/util/InitForExamples.scala
+++ b/examples/src/main/scala/org/carbondata/examples/util/InitForExamples.scala
@@ -25,6 +25,8 @@ import org.apache.spark.sql.CarbonContext
 
 import org.carbondata.core.util.CarbonProperties
 
+// scalastyle:off println
+
 object InitForExamples {
 
   def currentPath: String = new File(this.getClass.getResource("/").getPath + "/../../")
@@ -39,6 +41,8 @@ object InitForExamples {
       .setMaster("local[2]"))
     sc.setLogLevel("ERROR")
 
+    println(s"Starting $appName using spark version ${sc.version}")
+
     val cc = new CarbonContext(sc, storeLocation)
     cc.setConf("carbon.kettle.home", kettleHome)
     cc.setConf("hive.metastore.warehouse.dir", hiveMetaPath)
@@ -51,3 +55,5 @@ object InitForExamples {
     cc
   }
 }
+// scalastyle:on println
+


Mime
View raw message