public void cancelHadoopTokens ( final Logger logger ) { if ( tokenFile == null ) { return ; } try { hadoopSecurityManager . cancelTokens ( tokenFile , userToProxy , logger ) ; } catch ( HadoopSecurityManagerException e ) { logger . error ( e . getCause ( ) + e . getMessage ( ) ) ; } catch ( Exception e ) { logger . error ( e . getCause ( ) + e . getMessage ( ) ) ; } if ( tokenFile . exists ( ) ) { tokenFile . delete ( ) ; } }
Cancel Hadoop Tokens