HDFS-11000. webhdfs PUT does not work if requests are routed to call queue. Contributed by Kihwal Lee.
This commit is contained in:
parent
901eca004d
commit
9454dc5e80
|
@ -332,7 +332,7 @@ public class NamenodeWebHdfsMethods {
|
||||||
} else {
|
} else {
|
||||||
//generate a token
|
//generate a token
|
||||||
final Token<? extends TokenIdentifier> t = generateDelegationToken(
|
final Token<? extends TokenIdentifier> t = generateDelegationToken(
|
||||||
namenode, ugi, userPrincipal.getName());
|
namenode, ugi, null);
|
||||||
delegationQuery = "&" + new DelegationParam(t.encodeToUrlString());
|
delegationQuery = "&" + new DelegationParam(t.encodeToUrlString());
|
||||||
}
|
}
|
||||||
final String query = op.toQueryString() + delegationQuery
|
final String query = op.toQueryString() + delegationQuery
|
||||||
|
|
Loading…
Reference in New Issue