From a6197c1fa8ab48dcaca3941faea9c878c04b5d51 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Thu, 13 Oct 2016 08:48:33 -0500 Subject: [PATCH] HDFS-11000. webhdfs PUT does not work if requests are routed to call queue. Contributed by Kihwal Lee. (cherry picked from commit 9454dc5e8091354cd0a4b8c8aa5f4004529db5d5) --- .../server/namenode/web/resources/NamenodeWebHdfsMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java index a28576b9d97..59ad9f07e5d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java @@ -330,7 +330,7 @@ public class NamenodeWebHdfsMethods { } else { //generate a token final Token t = generateDelegationToken( - namenode, ugi, userPrincipal.getName()); + namenode, ugi, null); delegationQuery = "&" + new DelegationParam(t.encodeToUrlString()); } final String query = op.toQueryString() + delegationQuery