You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2018/08/14 00:11:57 UTC
[ambari] branch branch-2.7 updated: AMBARI-24454. WebHdfs calls
being made from yarn/docker container to NameNode hosted on bare metal host
fails. (jaimin) (#2018)
This is an automated email from the ASF dual-hosted git repository.
jaimin pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new c9ad808 AMBARI-24454. WebHdfs calls being made from yarn/docker container to NameNode hosted on bare metal host fails. (jaimin) (#2018)
c9ad808 is described below
commit c9ad808a17091ba3614a04b060f9c3c3d05cbfda
Author: Jetly <ja...@hortonworks.com>
AuthorDate: Mon Aug 13 17:11:55 2018 -0700
AMBARI-24454. WebHdfs calls being made from yarn/docker container to NameNode hosted on bare metal host fails. (jaimin) (#2018)
---
.../python/resource_management/libraries/providers/hdfs_resource.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
index ccd3407..e1e5ec6 100644
--- a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
+++ b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
@@ -265,6 +265,8 @@ class WebHDFSUtil:
if file_to_put:
cmd += ["--data-binary", "@"+file_to_put, "-H", "Content-Type: application/octet-stream"]
+ else:
+ cmd += ["-d", "", "-H", "Content-Length: 0"]
if self.security_enabled:
cmd += ["--negotiate", "-u", ":"]