[ 
https://issues.apache.org/jira/browse/NIFI-8112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eduardo Mota Fontes reassigned NIFI-8112:
-----------------------------------------

    Assignee: Eduardo Mota Fontes

> DeleteHDFS Failed to find any Kerberos tgt after 10h of use.
> ------------------------------------------------------------
>
>                 Key: NIFI-8112
>                 URL: https://issues.apache.org/jira/browse/NIFI-8112
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.12.1
>            Reporter: Eduardo Mota Fontes
>            Assignee: Eduardo Mota Fontes
>            Priority: Major
>
> DeleteHDFS Processor (1.12.1) is giving kerberos tgt relogin error after 10h 
> of use.
> It works fine on 1.11.3 version.
> Stack trace:
> {code:java}
> 2021-01-02 16:00:51,194 ERROR [Timer-Driven Process Thread-5] 
> o.a.nifi.processors.hadoop.DeleteHDFS 
> DeleteHDFS[id=29895392-3bb7-35e4-8ac4-4632ff7e0294] Error processing delete 
> for flowfile 
> StandardFlowFileRecord[uuid=99f922a5-0d9b-4a63-bc3b-bd3f0ca32ad2,claim=StandardContentClaim
>  [resourceClaim=StandardResourceClaim[id=1609613814538-20639, 
> container=default, section=159], offset=55023, 
> length=164],offset=0,name=8ec20f5d-e3a1-4fb0-b5d4-0072a39356b9.csv,size=164] 
> due to DestHost:destPort hadoop.mydomain:8020 , LocalHost:localPort 
> nifi_node/ip:0. Failed on local exception: java.io.IOException: 
> javax.security.sasl.SaslException: GSS initiate failed [Caused by 
> GSSException: No valid credentials provided (Mechanism level: Failed to find 
> any Kerberos tgt)]: java.io.IOException: DestHost:destPort 
> hadoop.mydomain:8020 , LocalHost:localPort nifi_node/ip:0. Failed on local 
> exception: java.io.IOException: javax.security.sasl.SaslException: GSS 
> initiate failed [Caused by GSSException: No valid credentials provided 
> (Mechanism level: Failed to find any Kerberos tgt)]
> java.io.IOException: DestHost:destPort hadoop.mydomain:8020 , 
> LocalHost:localPort nifi_node/ip:0. Failed on local exception: 
> java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed 
> [Caused by GSSException: No valid credentials provided (Mechanism level: 
> Failed to find any Kerberos tgt)]
>         at sun.reflect.GeneratedConstructorAccessor1520.newInstance(Unknown 
> Source)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:833)
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:808)
>         at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1549)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1491)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1388)
>         at 
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)
>         at 
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:118)
>         at com.sun.proxy.$Proxy867.getFileInfo(Unknown Source)
>         at 
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:907)
>         at sun.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:422)
>         at 
> org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:165)
>         at 
> org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:157)
>         at 
> org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)
>         at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:359)
>         at com.sun.proxy.$Proxy885.getFileInfo(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1666)
>         at 
> org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1576)
>         at 
> org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1573)
>         at 
> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
>         at 
> org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1588)
>         at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1683)
>         at 
> org.apache.nifi.processors.hadoop.DeleteHDFS.onTrigger(DeleteHDFS.java:165)
>         at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>         at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1174)
>         at 
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
>         at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
>         at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: javax.security.sasl.SaslException: GSS 
> initiate failed [Caused by GSSException: No valid credentials provided 
> (Mechanism level: Failed to find any Kerberos tgt)]
>         at org.apache.hadoop.ipc.Client$Connection$1.run(Client.java:770)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:422)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
>         at 
> org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:733)
>         at 
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:827)
>         at 
> org.apache.hadoop.ipc.Client$Connection.access$3800(Client.java:421)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1606)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1435)
>         ... 33 common frames omitted
> Caused by: javax.security.sasl.SaslException: GSS initiate failed
>         at 
> com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
>         at 
> org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:408)
>         at 
> org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:627)
>         at 
> org.apache.hadoop.ipc.Client$Connection.access$2300(Client.java:421)
>         at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:814)
>         at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:810)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:422)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
>         at 
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:810)
>         ... 36 common frames omitted
> Caused by: org.ietf.jgss.GSSException: No valid credentials provided 
> (Mechanism level: Failed to find any Kerberos tgt)
>         at 
> sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:162)
>         at 
> sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
>         at 
> sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:189)
>         at 
> sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
>         at 
> sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
>         at 
> sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
>         at 
> com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:192)
>         ... 45 common frames omitted
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to