Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C54AE200B38 for ; Thu, 23 Jun 2016 16:16:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C3E98160A35; Thu, 23 Jun 2016 14:16:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1EDCD160A69 for ; Thu, 23 Jun 2016 16:16:01 +0200 (CEST) Received: (qmail 61622 invoked by uid 500); 23 Jun 2016 14:16:01 -0000 Mailing-List: contact commits-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list commits@carbondata.incubator.apache.org Received: (qmail 61613 invoked by uid 99); 23 Jun 2016 14:16:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 14:16:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CCDF1C12A2 for ; Thu, 23 Jun 2016 14:16:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.648 X-Spam-Level: X-Spam-Status: No, score=-4.648 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.428] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WWrDVMNgw4Ud for ; Thu, 23 Jun 2016 14:15:56 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 7BF6160E2F for ; Thu, 23 Jun 2016 14:15:52 +0000 (UTC) Received: (qmail 60980 invoked by uid 99); 23 Jun 2016 14:15:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 14:15:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1DA41EAD92; Thu, 23 Jun 2016 14:15:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jbonofre@apache.org To: commits@carbondata.incubator.apache.org Date: Thu, 23 Jun 2016 14:16:33 -0000 Message-Id: <1dc0b8bd993d45c9abb4dc849361a5d9@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [45/56] [abbrv] incubator-carbondata git commit: Add spark version print in example (#694) archived-at: Thu, 23 Jun 2016 14:16:02 -0000 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 Authored: Mon Jun 20 17:30:01 2016 +0800 Committer: Ravindra Pesala 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 +