Github user bolkedebruin commented on the pull request:

    https://github.com/apache/spark/pull/7489#issuecomment-122565721
  
    @harishreedharan the details are in the linked issue and I tried on two 
different setups. Are you sure you are using "--master yarn-cluster" as it does 
work with "--master yarn-client"? Note the trace below wit specific attention 
to "RMDelegationTokenSelector" not being able to find a delegation token and 
thus failing to connect. I *am* surprised no-one else has encountered this as 
including the delegation token seems pretty standard stuff (and yet it wasn't 
done).
    
    ```
    15/07/14 11:03:49 DEBUG UserGroupInformation: PrivilegedAction as:yx66jx 
(auth:SIMPLE) 
from:org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:717)
    15/07/14 11:03:49 DEBUG SaslRpcClient: Sending sasl message state: NEGOTIATE
    15/07/14 11:03:49 DEBUG SaslRpcClient: Received SASL message state: 
NEGOTIATE
    auths
    { method: "TOKEN" mechanism: "DIGEST-MD5" protocol: "" serverId: "default" 
challenge: 
"realm=\"default\",nonce=\"XXX\",qop=\"auth\",charset=utf-8,algorithm=md5-sess" 
}
    auths
    { method: "KERBEROS" mechanism: "GSSAPI" protocol: "rm" serverId: 
"lxhnl002.ad.ing.net" }
    15/07/14 11:03:49 DEBUG SaslRpcClient: Get token info proto:interface 
org.apache.hadoop.yarn.api.ApplicationClientProtocolPB 
info:org.apache.hadoop.yarn.security.client.ClientRMSecurityInfo$2@5c53714b
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Looking for a token with 
service 10.111.114.16:8032
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
YARN_AM_RM_TOKEN and the token's service name is 
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
HIVE_DELEGATION_TOKEN and the token's service name is 
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
TIMELINE_DELEGATION_TOKEN and the token's service name is 10.111.114.16:8188
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
HDFS_DELEGATION_TOKEN and the token's service name is 10.111.114.16:8020
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
HDFS_DELEGATION_TOKEN and the token's service name is 10.111.114.17:8020
    15/07/14 11:03:49 DEBUG RMDelegationTokenSelector: Token kind is 
HDFS_DELEGATION_TOKEN and the token's service name is ha-hdfs:hdpnlcb
    15/07/14 11:03:49 DEBUG UserGroupInformation: PrivilegedActionException 
as:yx66jx (auth:SIMPLE) 
cause:org.apache.hadoop.security.AccessControlException: Client cannot 
authenticate via:[TOKEN, KERBEROS]
    15/07/14 11:03:49 DEBUG UserGroupInformation: PrivilegedAction as:yx66jx 
(auth:SIMPLE) 
from:org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:643)
    15/07/14 11:03:49 WARN Client: Exception encountered while connecting to 
the server : org.apache.hadoop.security.AccessControlException: Client cannot 
authenticate via:[TOKEN, KERBEROS]
    15/07/14 11:03:49 DEBUG UserGroupInformation: PrivilegedActionException 
as:yx66jx (auth:SIMPLE) cause:java.io.IOException: 
org.apache.hadoop.security.AccessControlException: Client cannot authenticate 
via:[TOKEN, KERBEROS]
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to