HDFS-11000. webhdfs PUT does not work if requests are routed to call queue. Contributed by Kihwal Lee.

(cherry picked from commit 9454dc5e80)
This commit is contained in:
Kihwal Lee 2016-10-13 09:02:59 -05:00
parent c7780b066d
commit 78777d4a96
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ public class NamenodeWebHdfsMethods {
} else {
//generate a token
final Token<? extends TokenIdentifier> t = generateDelegationToken(
namenode, ugi, userPrincipal.getName());
namenode, ugi, null);
delegationQuery = "&" + new DelegationParam(t.encodeToUrlString());
}
final String query = op.toQueryString() + delegationQuery