From issues-return-194410-archive-asf-public=cust-asf.ponee.io@spark.apache.org Wed Jun 20 04:30:09 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 5245818067A for ; Wed, 20 Jun 2018 04:30:08 +0200 (CEST) Received: (qmail 87794 invoked by uid 500); 20 Jun 2018 02:30:07 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 87684 invoked by uid 99); 20 Jun 2018 02:30:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2018 02:30:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B06F81807D0 for ; Wed, 20 Jun 2018 02:30:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.011 X-Spam-Level: X-Spam-Status: No, score=-109.011 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FNbAjOnBGiXL for ; Wed, 20 Jun 2018 02:30:05 +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 C9FE95F58F for ; Wed, 20 Jun 2018 02:30:04 +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 1B1B5E0E3E for ; Wed, 20 Jun 2018 02:30:03 +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 2235E21842 for ; Wed, 20 Jun 2018 02:30:03 +0000 (UTC) Date: Wed, 20 Jun 2018 02:30:03 +0000 (UTC) From: "Saisai Shao (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-24493) Kerberos Ticket Renewal is failing in Hadoop 2.8+ and Hadoop 3 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/SPARK-24493?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 17720#comment-16517720 ]=20 Saisai Shao commented on SPARK-24493: ------------------------------------- This BUG is fixed in HDFS-12670, Spark should bump its supported Hadoop3 ve= rsion to 3.1.1 when released. > Kerberos Ticket Renewal is failing in Hadoop 2.8+ and Hadoop 3 > -------------------------------------------------------------- > > Key: SPARK-24493 > URL: https://issues.apache.org/jira/browse/SPARK-24493 > Project: Spark > Issue Type: Bug > Components: Spark Core, YARN > Affects Versions: 2.3.0 > Reporter: Asif M > Priority: Major > > Kerberos Ticket Renewal is failing on long running spark job. I have adde= d below 2 kerberos properties in the HDFS configuration and ran a spark str= eaming job=C2=A0([hdfs_wordcount.py|https://github.com/apache/spark/blob/ma= ster/examples/src/main/python/streaming/hdfs_wordcount.py]) > {noformat} > dfs.namenode.delegation.token.max-lifetime=3D1800000 (30min) > dfs.namenode.delegation.token.renew-interval=3D900000 (15min) > {noformat} > =C2=A0 > Spark Job failed at 15min with below error: > {noformat} > 18/06/04 18:56:51 INFO DAGScheduler: ShuffleMapStage 10896 (call at /usr/= hdp/current/spark2-client/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.= py:2381) failed in 0.218 s due to Job aborted due to stage failure: Task 0 = in stage 10896.0 failed 4 times, most recent failure: Lost task 0.3 in stag= e 10896.0 (TID 7290, , executor 1): org.apache.hadoop.= ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidT= oken): token (token for abcd: HDFS_DELEGATION_TOKEN owner=3Dabcd@EXAMPLE.CO= M, renewer=3Dyarn, realUser=3D, issueDate=3D1528136773875, maxDate=3D152813= 8573875, sequenceNumber=3D38, masterKeyId=3D6) is expired, current time: 20= 18-06-04 18:56:51,276+0000 expected renewal time: 2018-06-04 18:56:13,875+0= 000 > at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1499) > at org.apache.hadoop.ipc.Client.call(Client.java:1445) > at org.apache.hadoop.ipc.Client.call(Client.java:1355) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngi= ne.java:228) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngi= ne.java:116) > at com.sun.proxy.$Proxy18.getBlockLocations(Unknown Source) > at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.g= etBlockLocations(ClientNamenodeProtocolTranslatorPB.java:317) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryIn= vocationHandler.java:422) > at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(Re= tryInvocationHandler.java:165) > at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInv= ocationHandler.java:157) > at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(Retr= yInvocationHandler.java:95) > at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocati= onHandler.java:359) > at com.sun.proxy.$Proxy19.getBlockLocations(Unknown Source) > at org.apache.hadoop.hdfs.DFSClient.callGetBlockLocations(DFSClient.java:= 856) > at org.apache.hadoop.hdfs.DFSClient.getLocatedBlocks(DFSClient.java:845) > at org.apache.hadoop.hdfs.DFSClient.getLocatedBlocks(DFSClient.java:834) > at org.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:998) > at org.apache.hadoop.hdfs.DistributedFileSystem$4.doCall(DistributedFileS= ystem.java:326) > at org.apache.hadoop.hdfs.DistributedFileSystem$4.doCall(DistributedFileS= ystem.java:322) > at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkReso= lver.java:81) > at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSyste= m.java:334) > at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:950) > at org.apache.hadoop.mapreduce.lib.input.LineRecordReader.initialize(Line= RecordReader.java:86) > at org.apache.spark.rdd.NewHadoopRDD$$anon$1.liftedTree1$1(NewHadoopRDD.s= cala:189) > at org.apache.spark.rdd.NewHadoopRDD$$anon$1.(NewHadoopRDD.scala:18= 6) > at org.apache.spark.rdd.NewHadoopRDD.compute(NewHadoopRDD.scala:141) > at org.apache.spark.rdd.NewHadoopRDD.compute(NewHadoopRDD.scala:70) > at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324) > at org.apache.spark.rdd.RDD.iterator(RDD.scala:288) > at org.apache.spark.rdd.UnionRDD.compute(UnionRDD.scala:105) > at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324) > at org.apache.spark.rdd.RDD.iterator(RDD.scala:288) > at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:3= 8) > at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324) > at org.apache.spark.rdd.RDD.iterator(RDD.scala:288) > at org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:64) > at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324) > at org.apache.spark.rdd.RDD.iterator(RDD.scala:288) > at org.apache.spark.api.python.PairwiseRDD.compute(PythonRDD.scala:99) > at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324) > at org.apache.spark.rdd.RDD.iterator(RDD.scala:288) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala= :96) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala= :53) > at org.apache.spark.scheduler.Task.run(Task.scala:109) > at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1149) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:624) > at java.lang.Thread.run(Thread.java:748) > {noformat} > *Steps to Reproduce:* > # Add {{dfs.namenode.delegation.token.max-lifetime}} and {{dfs.namenode.= delegation.token.renew-interval}} properties in the HDFS config and restart= the affected services. > # Run spark streaming job on gateway node of the cluster in one terminal= tab > {noformat} > /bin/spark-submit --master yarn --principal --keytab hdfs_wordcount.py "/tmp/streaming_input" 2>&1 | tee driver.log{no= format} > After 15min the spark application is terminated with the above mentioned = error. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org