You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/28 08:09:50 UTC

[GitHub] [spark] yaooqinn opened a new pull request #24235: [SPARK-27301][Dstream]

yaooqinn opened a new pull request #24235: [SPARK-27301][Dstream]
URL: https://github.com/apache/spark/pull/24235
 
 
   
   ## What changes were proposed in this pull request?
   
   The cached FileSystem's token will expire if no tokens explicitly are add into it.
   
   ```scala
   19/03/28 13:40:16 INFO storage.BlockManager: Removing RDD 83189
   19/03/28 13:40:16 INFO rdd.MapPartitionsRDD: Removing RDD 82860 from persistence list
   19/03/28 13:40:16 INFO spark.ContextCleaner: Cleaned shuffle 6005
   19/03/28 13:40:16 INFO storage.BlockManager: Removing RDD 82860
   19/03/28 13:40:16 INFO scheduler.ReceivedBlockTracker: Deleting batches:
   19/03/28 13:40:16 INFO scheduler.InputInfoTracker: remove old batch metadata: 1553750250000 ms
   19/03/28 13:40:17 WARN security.UserGroupInformation: PriviledgedActionException as:urs@HADOOP.HZ.NETEASE.COM (auth:KERBEROS) cause:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token 53240500 for urs) is expired, current time: 2019-03-28 13:40:17,010+0800 expected renewal time: 2019-03-28 13:39:48,523+0800
   19/03/28 13:40:17 WARN ipc.Client: Exception encountered while connecting to the server : org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token 53240500 for urs) is expired, current time: 2019-03-28 13:40:17,010+0800 expected renewal time: 2019-03-28 13:39:48,523+0800
   19/03/28 13:40:17 WARN security.UserGroupInformation: PriviledgedActionException as:urs@HADOOP.HZ.NETEASE.COM (auth:KERBEROS) cause:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token 53240500 for urs) is expired, current time: 2019-03-28 13:40:17,010+0800 expected renewal time: 2019-03-28 13:39:48,523+0800
   19/03/28 13:40:17 WARN hdfs.LeaseRenewer: Failed to renew lease for [DFSClient_NONMAPREDUCE_-1396157959_1] for 53 seconds. Will retry shortly ...
   org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token 53240500 for urs) is expired, current time: 2019-03-28 13:40:17,010+0800 expected renewal time: 2019-03-28 13:39:48,523+0800
   at org.apache.hadoop.ipc.Client.call(Client.java:1468)
   at org.apache.hadoop.ipc.Client.call(Client.java:1399)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
   at com.sun.proxy.$Proxy11.renewLease(Unknown Source)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.renewLease(ClientNamenodeProtocolTranslatorPB.java:571)
   at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
   at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
   at com.sun.proxy.$Proxy12.renewLease(Unknown Source)
   at org.apache.hadoop.hdfs.DFSClient.renewLease(DFSClient.java:878)
   at org.apache.hadoop.hdfs.LeaseRenewer.renew(LeaseRenewer.java:417)
   at org.apache.hadoop.hdfs.LeaseRenewer.run(LeaseRenewer.java:442)
   at org.apache.hadoop.hdfs.LeaseRenewer.access$700(LeaseRenewer.java:71)
   at org.apache.hadoop.hdfs.LeaseRenewer$1.run(LeaseRenewer.java:298)
   at java.lang.Thread.run(Thread.java:748)
   ```
   
   This PR shorten the FileSystem cached life cycle to the cleanup method inner scope in case of token expiry.
    
   ## How was this patch tested?
   
   existing ut
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org