Return-Path: X-Original-To: apmail-spark-dev-archive@minotaur.apache.org Delivered-To: apmail-spark-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9641217509 for ; Tue, 14 Apr 2015 16:51:03 +0000 (UTC) Received: (qmail 29728 invoked by uid 500); 14 Apr 2015 16:51:02 -0000 Delivered-To: apmail-spark-dev-archive@spark.apache.org Received: (qmail 29653 invoked by uid 500); 14 Apr 2015 16:51:01 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 29641 invoked by uid 99); 14 Apr 2015 16:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 16:51:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lian.cs.zju@gmail.com designates 209.85.192.171 as permitted sender) Received: from [209.85.192.171] (HELO mail-pd0-f171.google.com) (209.85.192.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 16:50:55 +0000 Received: by pdbqd1 with SMTP id qd1so18352483pdb.2 for ; Tue, 14 Apr 2015 09:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=43cbcgaZr6JuY3o7Km43Xy8IP+UqZb8OxgBHVa1JVLg=; b=YomlujVNyeLYuAKo1qnGxuX7+k93+1GrTajMfSMpJo9knMGTCUZjmMdqKiDGiQVQs+ +XBRZd6iVfb6lx1LbZXem71irC9tQvpvQ1IDKMVa24u0RkXU3uJExR+/7bYIukP92X6X lXblxflDdG8Y5kRfWou1+zWUUbusBfr2Y/RPacXCmNeE+7n3ZLmq96pbHe+MAYPB+Pkf jIWWZ5JBFS3UugbcY9T3GxOn5mQS1YWbwLW0mYX2D99zyL3xqTAclK5tmSqHWG3LSvs0 YK3Bmdx8BXN1w7QpajP2b5g17J6YFmO5jLusfDgTp4ZnB5hJke5lWsOk1T+TjomKlpis N6ZQ== X-Received: by 10.66.185.161 with SMTP id fd1mr37972794pac.51.1429030235000; Tue, 14 Apr 2015 09:50:35 -0700 (PDT) Received: from [10.10.0.18] (li751-165.members.linode.com. [106.185.40.165]) by mx.google.com with ESMTPSA id cj2sm1615805pbb.10.2015.04.14.09.50.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 09:50:34 -0700 (PDT) Message-ID: <552D4559.6010606@gmail.com> Date: Wed, 15 Apr 2015 00:50:33 +0800 From: Cheng Lian User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Andrew Lee , "dev@spark.apache.org" Subject: Re: Spark ThriftServer encounter java.lang.IllegalArgumentException: Unknown auth type: null Allowed values are: [auth-int, auth-conf, auth] References: ,<55058326.3000203@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------090403030304000203060702" X-Virus-Checked: Checked by ClamAV on apache.org --------------090403030304000203060702 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Yeah, SQL is the right component. Thanks! Cheng On 4/14/15 12:47 AM, Andrew Lee wrote: > Hi Cheng, > > I couldn't find the component for Spark ThriftServer, will that be > 'SQL' component? > > JIRA created. > https://issues.apache.org/jira/browse/SPARK-6882 > > > > Date: Sun, 15 Mar 2015 21:03:34 +0800 > > From: lian.cs.zju@gmail.com > > To: alee526@hotmail.com; dev@spark.apache.org > > Subject: Re: Spark ThriftServer encounter > java.lang.IllegalArgumentException: Unknown auth type: null Allowed > values are: [auth-int, auth-conf, auth] > > > > Hey Andrew, > > > > Would you please create a JIRA ticket for this? To preserve > > compatibility with existing Hive JDBC/ODBC drivers, Spark SQL's > > HiveThriftServer intercepts some HiveServer2 components and injects > > Spark stuff into it. This makes the implementation details are somewhat > > hacky (e.g. a bunch of reflection tricks were used). We haven't include > > KRB tests in Spark unit/integration test suites, and it's possible that > > HiveThriftServer2 somehow breaks Hive's KRB feature. > > > > Cheng > > > > On 3/14/15 3:43 AM, Andrew Lee wrote: > > > When Kerberos is enabled, I get the following exceptions. (Spark > 1.2.1 git commit > > > > > > > > > > > > > > > > > > > > > > > > > > > b6eaf77d4332bfb0a698849b1f5f917d20d70e97, Hive 0.13.1, Apache > Hadoop 2.4.1) when starting Spark ThriftServer. > > > Command to start thriftserver > > > ./start-thriftserver.sh --hiveconf hive.server2.thrift.port=20000 > --hiveconf hive.server2.thrift.bind.host=$(hostname) --master yarn-client > > > Error message in spark.log > > > > > > 2015-03-13 18:26:05,363 ERROR > org.apache.hive.service.cli.thrift.ThriftCLIService > (ThriftBinaryCLIService.java:run(93)) - Error: > > > java.lang.IllegalArgumentException: Unknown auth type: null > Allowed values are: [auth-int, auth-conf, auth] > > > at org.apache.hive.service.auth.SaslQOP.fromString(SaslQOP.java:56) > > > at > org.apache.hive.service.auth.HiveAuthFactory.getSaslProperties(HiveAuthFactory.java:118) > > > at > org.apache.hive.service.auth.HiveAuthFactory.getAuthTransFactory(HiveAuthFactory.java:133) > > > at > org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:43) > > > at java.lang.Thread.run(Thread.java:744) > > > > > > I'm wondering if this is due to the same problem described in > HIVE-8154 HIVE-7620 due to an older code based for the Spark ThriftServer? > > > Any insights are appreciated. Currently, I can't get Spark > ThriftServer to run against a Kerberos cluster (Apache 2.4.1). > > > > > > My hive-site.xml looks like the following for spark/conf. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > hive.semantic.analyzer.factory.impl > > > org.apache.hcatalog.cli.HCatSemanticAnalyzerFactory > > > > > > > > > hive.metastore.execute.setugi > > > true > > > > > > > > > hive.stats.autogather > > > false > > > > > > > > > hive.session.history.enabled > > > true > > > > > > > > > hive.querylog.location > > > /home/hive/log/${user.name} > > > > > > > > > hive.exec.local.scratchdir > > > /tmp/hive/scratch/${user.name} > > > > > > > > > hive.metastore.uris > > > thrift://somehostname:9083 > > > > > > > > > > > > hive.server2.authentication > > > KERBEROS > > > > > > > > > hive.server2.authentication.kerberos.principal > > > *** > > > > > > > > > hive.server2.authentication.kerberos.keytab > > > *** > > > > > > > > > hive.server2.thrift.sasl.qop > > > auth > > > Sasl QOP value; one of 'auth', 'auth-int' and > 'auth-conf' > > > > > > > > > hive.server2.enable.impersonation > > > Enable user impersonation for HiveServer2 > > > true > > > > > > > > > > > > hive.metastore.sasl.enabled > > > true > > > > > > > > > hive.metastore.kerberos.keytab.file > > > *** > > > > > > > > > hive.metastore.kerberos.principal > > > *** > > > > > > > > > hive.metastore.cache.pinobjtypes > > > Table,Database,Type,FieldSchema,Order > > > > > > > > > hdfs_sentinel_file > > > *** > > > > > > > > > hive.metastore.warehouse.dir > > > /hive > > > > > > > > > hive.metastore.client.socket.timeout > > > 600 > > > > > > > > > hive.warehouse.subdir.inherit.perms > > > true > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org > > For additional commands, e-mail: dev-help@spark.apache.org > > --------------090403030304000203060702--