You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/10/06 16:00:44 UTC
[10/12] ambari git commit: AMBARI-18536. Components can't be started
because of failed webhdfs request (aonishuk)
AMBARI-18536. Components can't be started because of failed webhdfs request (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8b6e45e6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8b6e45e6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8b6e45e6
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 8b6e45e6220bd0304f3ce1cda1b7245ebb322669
Parents: 714d9b5
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Oct 6 07:34:17 2016 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Oct 6 07:34:17 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/8b6e45e6/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 ee41195..f1aa3e1 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
@@ -169,7 +169,7 @@ class WebHDFSUtil:
cmd = ["curl", "-sS","-L", "-w", "%{http_code}", "-X", method]
if file_to_put:
- cmd += ["--data-binary", "@"+file_to_put]
+ cmd += ["--data-binary", "@"+file_to_put, "-H", "Content-Type: application/octet-stream"]
if self.security_enabled:
cmd += ["--negotiate", "-u", ":"]
if self.is_https_enabled: