Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A864018B06 for ; Tue, 24 Nov 2015 08:24:36 +0000 (UTC) Received: (qmail 23290 invoked by uid 500); 24 Nov 2015 08:24:34 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 23217 invoked by uid 500); 24 Nov 2015 08:24:34 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 23206 invoked by uid 99); 24 Nov 2015 08:24:34 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 08:24:34 +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 0BC62C2A4F for ; Tue, 24 Nov 2015 08:24:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.202 X-Spam-Level: **** X-Spam-Status: No, score=4.202 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, KAM_LINEPADDING=1.2, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=whishworks-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xuabZEuqtAOJ for ; Tue, 24 Nov 2015 08:24:21 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3E5B825E2F for ; Tue, 24 Nov 2015 08:24:20 +0000 (UTC) Received: by oige206 with SMTP id e206so5577558oig.2 for ; Tue, 24 Nov 2015 00:24:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whishworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DbPNLXlvnoKy3wgVZ9kc5r9us7VX3tIUdDr9E9E7lEw=; b=BW5ymhScIR0IEu1yGt4fPQrlGp58WVtaraAChIbyK5gucCKhS/1uZ9aJVANAGFbp4M qubH/lO+zsT7hCMimKEJwqzq71ZcYg7HmJRjF5uh4VuqOtD8KKBxaYcCoETVxlio8N6H W9hVzE0D1QrFnCMNwsLxmAsu7N3epkVALAIj3hkc8XzwUetzhIs96INLcaUM+NNvZaSc mQwMz8cX6bcyQxLprimGzrlpGpo8OtConpa5JMomIzGkRnm7bda2ZTqZk5pU66BJ89Xc DaPBX99gCJ3Y0Hfb/794E4Q2dZ/QOaI2WMd7nwRMQdzAueOJL8xsnesGkhSwutreb6SR APuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DbPNLXlvnoKy3wgVZ9kc5r9us7VX3tIUdDr9E9E7lEw=; b=TteJNnm0uS+ulVrbatnyofBmmeGOzOHHsnhuNPMcwVxzQCYgVVsHPrb5kyd7iP6tB3 GxA96SildNunagyVc8PAmxJ4CIT6HGMeVbM8LbQATuhQxC0tiOhHTvqEkSqTgfqJ46Jz iKTlTlkPpw2BSj6qd6T7l+lcHNmRiT6cFT/TO6twyAA3l30eF5m0d3OnjVbflAJEwNTi EA/S5TDDFIKRiVZRjMJX3mcpx9aE62atagmUX69n+bpHv3lQtPrmywED8oCPL5UHTtpd KNfhRLpbPWcf0AxBNUitQ4ZczYxPLcjmA+FCRpo1E/9d6XjvOTPxJoE8atOqnmXVAdPj XWgQ== X-Gm-Message-State: ALoCoQlpRiU/ZFIJNtRgKUFQSLxvocICZn93USEiZkwe1hHLuLv5qCjnTSywaZqHvXUPuxirwyQnw8BoQiJbZpmK7MDRj48HTOjEsClpLsqiNTaXRgR5gymah3I7RUBQkkqnj7GsshJL MIME-Version: 1.0 X-Received: by 10.202.72.143 with SMTP id v137mr18586493oia.120.1448353459079; Tue, 24 Nov 2015 00:24:19 -0800 (PST) Received: by 10.60.147.229 with HTTP; Tue, 24 Nov 2015 00:24:18 -0800 (PST) Received: by 10.60.147.229 with HTTP; Tue, 24 Nov 2015 00:24:18 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Nov 2015 08:24:18 +0000 Message-ID: Subject: Re: Unable to connect to beeline after kerberos is installed From: Arpan Rajani To: user@hive.apache.org Cc: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a1134f9da702d7a0525451143 --001a1134f9da702d7a0525451143 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jay, I faced this and fixed yesterday. There are two things. 1)Before connecting to Hive server do you have a valid TGT? Do $ kinit user@Realm.com and get a valid TGT 2) in the jdbc connect string use the hive principle Use "!connect jdbc:hive2://:/;principal=3D=E2=80=9D. Please make sure it is the hive=E2=80=99s principal, not the user's. Restart the affected services. And it should work. Regards, Arpan On 24 Nov 2015 1:55 am, "Kumar Jayapal" wrote: > Unable to connect to beeline after kerberos is installed I am getting thi= s > error. Let me know if an one has resolution for it. > > *Error: Could not open client transport with JDBC Uri: > jdbc:hive2://hiven001.np.mmc.com:10000/ > : Peer indicated failure: Unsupported > mechanism type PLAIN (state=3D08S01,code=3D0)* > > > 2015-11-24 00:54:21,869 ERROR org.apache.thrift.server.TThreadPoolServer: > Error occurred during processing of message. > java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Unsupported mechanism ty= pe > PLAIN > at > org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSa= slServerTransport.java:219) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingT= ransportFactory$1.run(HadoopThriftAuthBridge.java:739) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingT= ransportFactory$1.run(HadoopThriftAuthBridge.java:736) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:356) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation= .java:1651) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingT= ransportFactory.getTransport(HadoopThriftAuthBridge.java:736) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolS= erver.java:268) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java= :1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.thrift.transport.TTransportException: Unsupported > mechanism type PLAIN > at > org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTrans= port.java:232) > at > org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(T= SaslServerTransport.java:138) > at > org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271) > at > org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTranspor= t.java:41) > at > org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSa= slServerTransport.java:216) > ... 10 more > > > > > > > > Thanks > Jay > --=20 The contents of this e-mail are confidential and for the exclusive use of= =20 the intended recipient. If you receive this e-mail in error please delete= =20 it from your system immediately and notify us either by e-mail or=20 telephone. You should not copy, forward or otherwise disclose the content= =20 of the e-mail. The views expressed in this communication may not=20 necessarily be the view held by WHISHWORKS. --001a1134f9da702d7a0525451143 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi Jay,

I faced this and fixed yesterday.
There are two things.

1)Before connecting to Hive server do you have a valid TGT? =
Do $ kinit user@Realm.com and get a valid TGT

2) in the jdbc connect string use the hive principle
Use=C2=A0 "!connect jdbc:hive2://<host>:<port>/<db>;= principal=3D<Server_Principal_of_HiveServer2>=E2=80=9D.

Please make sure it is the hive=E2=80=99s principal, not the= user's.

Restart the affected services. And it should work.

Regards,
Arpan

On 24 Nov 2015 1:55 am, "Kumar Jayapal"= ; <kjayapal17@gmail.com> = wrote:
Unable to connect to beeline after kerberos is installed I am gett= ing this error. Let me know if an one has resolution for it.

=
Error: Could not open client = transport with JDBC Uri: jdbc:hive2://hiven001.np.mmc.com:10000/: Peer indicated f= ailure: Unsupported mechanism type PLAIN (state=3D08S01,code=3D0)
=


2015-11-24 00:54:21,869 ERROR= org.apache.thrift.server.TThreadPoolServer: Error occurred during processi= ng of message.
java.lang.RuntimeException: org.apache.thrift.tran= sport.TTransportException: Unsupported mechanism type PLAIN
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thrift.transport.TSaslServerTranspor= t$Factory.getTransport(TSaslServerTransport.java:219)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$S= erver$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:739)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.thrift.Hadoo= pThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAut= hBridge.java:736)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.security.Ac= cessController.doPrivileged(Native Method)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at javax.security.auth.Subject.doAs(Subject.java:356)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.security.UserGroupInformation= .doAs(UserGroupInformation.java:1651)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumin= gTransportFactory.getTransport(HadoopThriftAuthBridge.java:736)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thrift.server.TThreadPoolServer$W= orkerProcess.run(TThreadPoolServer.java:268)
=C2=A0 =C2=A0 =C2=A0= =C2=A0 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec= utor.java:1145)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurre= nt.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.thrift.transport.TTransportException: Unsupported me= chanism type PLAIN
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thri= ft.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:232)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thrift.transport.TSaslSer= verTransport.handleSaslStartMessage(TSaslServerTransport.java:138)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thrift.transport.TSaslTransport= .open(TSaslTransport.java:271)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org= .apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.jav= a:41)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.thrift.transport.= TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 10 more

<= div>




<= div>
Thanks
Jay

The conten= ts of this e-mail are confidential and for the exclusive use of the intende= d recipient. If you receive this e-mail in error please delete it from your= system immediately and notify us either by e-mail or telephone. You should= not copy, forward or otherwise disclose the content of the e-mail. The vie= ws expressed in this communication may not necessarily be the view held by = WHISHWORKS. --001a1134f9da702d7a0525451143--