From issues-return-40221-archive-asf-public=cust-asf.ponee.io@tez.apache.org Tue Jan 22 08:46:06 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A2F45180634 for ; Tue, 22 Jan 2019 08:46:05 +0100 (CET) Received: (qmail 68720 invoked by uid 500); 22 Jan 2019 07:46:04 -0000 Mailing-List: contact issues-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list issues@tez.apache.org Received: (qmail 68711 invoked by uid 99); 22 Jan 2019 07:46:03 -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; Tue, 22 Jan 2019 07:46:03 +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 80152C85A0 for ; Tue, 22 Jan 2019 07:46:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] 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 5Y95cDCisytC for ; Tue, 22 Jan 2019 07:46:01 +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 5F30C5FB63 for ; Tue, 22 Jan 2019 07:46:01 +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 8F78DE2641 for ; Tue, 22 Jan 2019 07:46:00 +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 3BFF325688 for ; Tue, 22 Jan 2019 07:46:00 +0000 (UTC) Date: Tue, 22 Jan 2019 07:46:00 +0000 (UTC) From: "zhangbutao (JIRA)" To: issues@tez.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEZ-4032) TEZ will throw "Client cannot authenticate via:[TOKEN, KERBEROS]" when used with HDFS federation(non viewfs, only hdfs schema used). MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEZ-4032?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D167484= 66#comment-16748466 ]=20 zhangbutao commented on TEZ-4032: --------------------------------- This error is due to tez task not having namenode token=EF=BC=8Cand the t= ask only have token of default namenode=EF=BC=88hdfs://ns1=EF=BC=89. So = , tez job should obtain tokens of all namenodes before running, and the pa= tch fix the problem. > TEZ will throw "Client cannot authenticate via:[TOKEN, KERBEROS]" when u= sed with HDFS federation(non viewfs, only hdfs schema used).=20 > -------------------------------------------------------------------------= ------------------------------------------------------------- > > Key: TEZ-4032 > URL: https://issues.apache.org/jira/browse/TEZ-4032 > Project: Apache Tez > Issue Type: Bug > Affects Versions: 0.9.1 > Reporter: zhangbutao > Priority: Major > Fix For: 0.9.1 > > Attachments: TEZ-4032.001.patch > > > I execute hive tez job in HDFS federation and kerberos. The hadoop cluste= r has multiple namespace (hdfs://ns1,hdfs://ns2,hdfs://ns3 ...)and we don'= t use viewfs schema. Hive tez job will throw error as follows when the t= able is created in hdfs://ns2 (default configuration fs.defaluFS=3Dhdfs://= ns1)=EF=BC=9A > {code:java} > 2019-01-21 15:43:46,507 [WARN] [TezChild] |ipc.Client|: Exception encount= ered while connecting to the server : org.apache.hadoop.security.AccessCont= rolException: Client cannot authenticate via:[TOKEN, KERBEROS] > 2019-01-21 15:43:46,507 [INFO] [TezChild] |retry.RetryInvocationHandler|:= java.io.IOException: DestHost:destPort docker5.cmss.com:8020 , LocalHost:l= ocalPort docker1.cmss.com/10.254.10.116:0. Failed on local exception: java.= io.IOException: org.apache.hadoop.security.AccessControlException: Client c= annot authenticate via:[TOKEN, KERBEROS], while invoking ClientNamenodeProt= ocolTranslatorPB.getFileInfo over docker5.cmss.com/10.254.2.106:8020 after = 14 failover attempts. Trying to failover after sleeping for 10827ms. > 2019-01-21 15:43:57,338 [WARN] [TezChild] |ipc.Client|: Exception encount= ered while connecting to the server : org.apache.hadoop.security.AccessCont= rolException: Client cannot authenticate via:[TOKEN, KERBEROS] > 2019-01-21 15:43:57,363 [ERROR] [TezChild] |tez.MapRecordSource|: org.apa= che.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while process= ing writable (null) > =09at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java= :568) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRe= cordSource.java:92) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.pushRecord(MapRe= cordSource.java:76) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.run(MapRecord= Processor.java:419) > =09at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunPro= cessor(TezProcessor.java:267) > =09at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.ja= va:250) > =09at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOP= rocessorRuntimeTask.java:374) > =09at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Ca= llable.java:73) > =09at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Ca= llable.java:61) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:422) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1682) > =09at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRu= nner2Callable.java:61) > =09at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRu= nner2Callable.java:37) > =09at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36) > =09at com.google.common.util.concurrent.TrustedListenableFutureTask$Trust= edFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java= :108) > =09at com.google.common.util.concurrent.InterruptibleTask.run(Interruptib= leTask.java:41) > =09at com.google.common.util.concurrent.TrustedListenableFutureTask.run(T= rustedListenableFutureTask.java:77) > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1142) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:617) > =09at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.h= adoop.hive.ql.metadata.HiveException: java.io.IOException: DestHost:destPor= t docker4.cmss.com:8020 , LocalHost:localPort docker1.cmss.com/10.254.10.11= 6:0. Failed on local exception: java.io.IOException: org.apache.hadoop.secu= rity.AccessControlException: Client cannot authenticate via:[TOKEN, KERBERO= S] > =09at org.apache.hadoop.hive.ql.exec.FileSinkOperator.createBucketFiles(F= ileSinkOperator.java:742) > =09at org.apache.hadoop.hive.ql.exec.FileSinkOperator.process(FileSinkOpe= rator.java:897) > =09at org.apache.hadoop.hive.ql.exec.Operator.baseForward(Operator.java:9= 95) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:941) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:928) > =09at org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperato= r.java:95) > =09at org.apache.hadoop.hive.ql.exec.Operator.baseForward(Operator.java:9= 95) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:941) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:928) > =09at org.apache.hadoop.hive.ql.exec.UDTFOperator.forwardUDTFOutput(UDTFO= perator.java:133) > =09at org.apache.hadoop.hive.ql.udf.generic.UDTFCollector.collect(UDTFCol= lector.java:45) > =09at org.apache.hadoop.hive.ql.udf.generic.GenericUDTF.forward(GenericUD= TF.java:110) > =09at org.apache.hadoop.hive.ql.udf.generic.GenericUDTFInline.process(Gen= ericUDTFInline.java:64) > =09at org.apache.hadoop.hive.ql.exec.UDTFOperator.process(UDTFOperator.ja= va:116) > =09at org.apache.hadoop.hive.ql.exec.Operator.baseForward(Operator.java:9= 95) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:941) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:928) > =09at org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperato= r.java:95) > =09at org.apache.hadoop.hive.ql.exec.Operator.baseForward(Operator.java:9= 95) > =09at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:941) > =09at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanO= perator.java:125) > =09at org.apache.hadoop.hive.ql.exec.MapOperator$MapOpCtx.forward(MapOper= ator.java:153) > =09at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java= :555) > =09... 20 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)