From common-issues-return-159757-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Oct 19 09:47:04 2018 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 7F1A5180652 for ; Fri, 19 Oct 2018 09:47:03 +0200 (CEST) Received: (qmail 77526 invoked by uid 500); 19 Oct 2018 07:47:02 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 77513 invoked by uid 99); 19 Oct 2018 07:47:02 -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; Fri, 19 Oct 2018 07:47:02 +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 AD992C75B9 for ; Fri, 19 Oct 2018 07:47:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, 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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id z2GLvXvHruNX for ; Fri, 19 Oct 2018 07:47:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ADE5C5F433 for ; Fri, 19 Oct 2018 07:47:00 +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 41322E0177 for ; Fri, 19 Oct 2018 07:47: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 0A70423F66 for ; Fri, 19 Oct 2018 07:47:00 +0000 (UTC) Date: Fri, 19 Oct 2018 07:47:00 +0000 (UTC) From: "He Xiaoqiao (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-15864) Job submitter / executor fail when SBN domain name can not resolved MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 He Xiaoqiao created HADOOP-15864: ------------------------------------ Summary: Job submitter / executor fail when SBN domain name ca= n not resolved Key: HADOOP-15864 URL: https://issues.apache.org/jira/browse/HADOOP-15864 Project: Hadoop Common Issue Type: Bug Reporter: He Xiaoqiao Assignee: He Xiaoqiao Job submit failure and Task executes failure if Standby NameNode domain nam= e can not resolved on HDFS HA with DelegationToken feature. This issue is triggered when create {{ConfiguredFailoverProxyProvider}} ins= tance which invoke {{HAUtil.cloneDelegationTokenForLogicalUri}} in HA mode = with Security. Since in HDFS HA mode UGI need include separate token for ea= ch NameNode in order to dealing with Active-Standby switch, the double toke= ns' content is same of course.=20 However when #setTokenService in {{HAUtil.cloneDelegationTokenForLogicalUri= }} it checks whether the address of NameNode has been resolved or not, if N= ot, throw #IllegalArgumentException upon, then job submitter/ task executor= fail. HDFS-8068 and HADOOP-12125 try to fix it, but I don't think the two tickets= resolve completely. Another questions many guys consider is why NameNode domain name can not re= solve? I think there are many scenarios, for instance node replace when mee= t fault, and refresh DNS sometimes. Anyway, Standby NameNode failure should= not impact Hadoop cluster stability in my opinion. a. code ref: org.apache.hadoop.security.SecurityUtil line373-386 {code:java} public static Text buildTokenService(InetSocketAddress addr) { String host =3D null; if (useIpForTokenService) { if (addr.isUnresolved()) { // host has no ip address throw new IllegalArgumentException( new UnknownHostException(addr.getHostName()) ); } host =3D addr.getAddress().getHostAddress(); } else { host =3D StringUtils.toLowerCase(addr.getHostName()); } return new Text(host + ":" + addr.getPort()); } {code} b.exception log ref: {code:xml} at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:227) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav= a:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:615) at java.lang.Thread.run(Thread.java:745) Caused by:=C2=A0java.io.IOException: Couldn't create proxy provider class o= rg.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider at org.apache.hadoop.hdfs.NameNodeProxies.createFailoverProxyProvider(NameN= odeProxies.java:515) at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:= 170) at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:761) at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:691) at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileS= ystem.java:150) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2713) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:93) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2747) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2729) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:385) at org.apache.hadoop.fs.viewfs.ChRootedFileSystem.(ChRootedFileSystem= .java:106) at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.getTargetFileSystem(ViewFil= eSystem.java:178) at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.getTargetFileSystem(ViewFil= eSystem.java:172) at org.apache.hadoop.fs.viewfs.InodeTree.createLink(InodeTree.java:303) at org.apache.hadoop.fs.viewfs.InodeTree.(InodeTree.java:377) at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.(ViewFileSystem.java:= 172) at org.apache.hadoop.fs.viewfs.ViewFileSystem.initialize(ViewFileSystem.jav= a:172) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2713) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:93) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2747) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2729) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:385) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:176) at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:665) ... 35 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons= tructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.hdfs.NameNodeProxies.createFailoverProxyProvider(NameN= odeProxies.java:498) ... 58 more Caused by: java.lang.IllegalArgumentException:=C2=A0java.net.UnknownHostExc= eption:=C2=A0standbynamenode at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.j= ava:390) at org.apache.hadoop.security.SecurityUtil.setTokenService(SecurityUtil.jav= a:369) at org.apache.hadoop.hdfs.HAUtil.cloneDelegationTokenForLogicalUri(HAUtil.j= ava:317) at org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvide= r.(ConfiguredFailoverProxyProvider.java:132) at org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvide= r.(ConfiguredFailoverProxyProvider.java:84) ... 62 more Caused by:=C2=A0java.net.UnknownHostException:=C2=A0standbynamenode ... 67 more {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org