Repository: ambari Updated Branches: refs/heads/branch-2.4 8327649e8 -> 4e8cfd490 refs/heads/trunk f96969a45 -> d51e75297
AMBARI-16835. WEBHDFS PUT fails on Amazon Linux (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d51e7529 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d51e7529 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d51e7529 Branch: refs/heads/trunk Commit: d51e752972ddfc0acfaeca1603a657fef7c8d5e8 Parents: f96969a Author: Andrew Onishuk <[email protected]> Authored: Thu May 26 19:52:57 2016 +0300 Committer: Andrew Onishuk <[email protected]> Committed: Thu May 26 19:52:57 2016 +0300 ---------------------------------------------------------------------- .../resource_management/libraries/providers/hdfs_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d51e7529/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py ---------------------------------------------------------------------- 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 a0396e8..de46c1c 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 @@ -172,7 +172,7 @@ class WebHDFSUtil: cmd = ["curl", "-sS","-L", "-w", "%{http_code}", "-X", method] if file_to_put: - cmd += ["-T", file_to_put] + cmd += ["--data-binary", "@"+file_to_put] if self.security_enabled: cmd += ["--negotiate", "-u", ":"] if self.is_https_enabled:
