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 B0BC7200CA3 for ; Thu, 1 Jun 2017 11:09:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AD659160BC4; Thu, 1 Jun 2017 09:09:10 +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 AC8CB160BB5 for ; Thu, 1 Jun 2017 11:09:09 +0200 (CEST) Received: (qmail 16581 invoked by uid 500); 1 Jun 2017 09:09:08 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 16572 invoked by uid 99); 1 Jun 2017 09:09:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2017 09:09:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0AA42C1380 for ; Thu, 1 Jun 2017 09:09:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id g8JxSVCeEGgb for ; Thu, 1 Jun 2017 09:09:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AD2205F2AE for ; Thu, 1 Jun 2017 09:09:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B7A6FE0BCA for ; Thu, 1 Jun 2017 09:09:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 35D1421B57 for ; Thu, 1 Jun 2017 09:09:04 +0000 (UTC) Date: Thu, 1 Jun 2017 09:09:04 +0000 (UTC) From: "chenerlu (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CARBONDATA-1116) Not able to connect with Carbonsession while starting carbon spark shell and beeline MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Jun 2017 09:09:10 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032668#comment-16032668 ] chenerlu commented on CARBONDATA-1116: -------------------------------------- Hi, I met same issue when I ran CarbonSessionExample on latest master branch. This issue may caused by creating a new SparkSqlParser with null as its parameter. Please help check and see if same problem. [~ravi.pesala] Thanks > Not able to connect with Carbonsession while starting carbon spark shell and beeline > ------------------------------------------------------------------------------------ > > Key: CARBONDATA-1116 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1116 > Project: CarbonData > Issue Type: Bug > Components: sql > Affects Versions: 1.2.0 > Environment: spark 2.1 > Reporter: Vandana Yadav > Priority: Blocker > > Not able to connect with Carbonsession while starting carbon spark shell and beeline > Steps to reproduce: > 1)Start thrift-server > a) cd $SPARK-HOME/bin > b) ./spark-submit --conf spark.sql.hive.thriftServer.singleSession=true --class org.apache.carbondata.spark.thriftserver.CarbonThriftServer /opt/spark/spark-2.1/carbonlib/carbondata_2.11-1.1.0-SNAPSHOT-shade-hadoop2.7.3.jar hdfs://localhost:54310/opt/prestocarbonStore > 2)Start Beeline > a) cd $SPARK-HOME/bin > b)./beeline > 3) Connect with carbondata via jdbc > !connect jdbc:hive2://localhost:10000 > Enter username for jdbc:hive2://localhost:10000: hduser > Enter password for jdbc:hive2://localhost:10000: ****** > 4) Actual Result: > Error: Could not establish connection to jdbc:hive2://localhost:10000: null (state=08S01,code=0) > 0: jdbc:hive2://localhost:10000 (closed)> > 5) Expected result : it should connect successfully with carbondata > 6)console logs: > 17/06/01 13:03:27 INFO ThriftCLIService: Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V8 > 17/06/01 13:03:27 INFO SessionState: Created local directory: /tmp/addaba65-46c5-4467-a02f-2bbdfd54329a_resources > 17/06/01 13:03:27 INFO SessionState: Created HDFS directory: /tmp/hive/hduser/addaba65-46c5-4467-a02f-2bbdfd54329a > 17/06/01 13:03:27 INFO SessionState: Created local directory: /tmp/hduser/addaba65-46c5-4467-a02f-2bbdfd54329a > 17/06/01 13:03:27 INFO SessionState: Created HDFS directory: /tmp/hive/hduser/addaba65-46c5-4467-a02f-2bbdfd54329a/_tmp_space.db > 17/06/01 13:03:27 INFO HiveSessionImpl: Operation log session directory is created: /tmp/hduser/operation_logs/addaba65-46c5-4467-a02f-2bbdfd54329a > 17/06/01 13:03:27 INFO CarbonSparkSqlParser: Parsing command: use default > Exception in thread "HiveServer2-Handler-Pool: Thread-84" java.lang.ExceptionInInitializerError > at org.apache.spark.sql.hive.CarbonSessionState$$anon$1.(CarbonSessionState.scala:133) > at org.apache.spark.sql.hive.CarbonSessionState.analyzer$lzycompute(CarbonSessionState.scala:128) > at org.apache.spark.sql.hive.CarbonSessionState.analyzer(CarbonSessionState.scala:127) > at org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:48) > at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:63) > at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:592) > at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:699) > at org.apache.spark.sql.hive.thriftserver.SparkSQLSessionManager.openSession(SparkSQLSessionManager.scala:83) > at org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:202) > at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:351) > at org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(ThriftCLIService.java:246) > at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1253) > at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1238) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) > at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.NullPointerException > at org.apache.spark.sql.hive.CarbonIUDAnalysisRule$.(CarbonAnalysisRules.scala:90) > at org.apache.spark.sql.hive.CarbonIUDAnalysisRule$.(CarbonAnalysisRules.scala) > ... 20 more -- This message was sent by Atlassian JIRA (v6.3.15#6346)