You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by tb...@apache.org on 2014/05/30 11:59:16 UTC
git commit: AMBARI-5955 - Start and Stop tasks do not work on HDP 2.1
(Anatoly Nikonorov via tbeerbower)
Repository: ambari
Updated Branches:
refs/heads/trunk 31b7da998 -> fa9903f80
AMBARI-5955 - Start and Stop tasks do not work on HDP 2.1 (Anatoly Nikonorov via tbeerbower)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fa9903f8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fa9903f8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fa9903f8
Branch: refs/heads/trunk
Commit: fa9903f8080438e3c372ec542a5f6be0cdc67cc5
Parents: 31b7da9
Author: tbeerbower <tb...@hortonworks.com>
Authored: Fri May 30 05:58:34 2014 -0400
Committer: tbeerbower <tb...@hortonworks.com>
Committed: Fri May 30 05:58:34 2014 -0400
----------------------------------------------------------------------
.../management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/fa9903f8/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
index 11026b3..0675737 100644
--- a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
@@ -35,6 +35,7 @@ function InvokeRestAPI($uri, [string]$username, [string]$password) {
$credentials = [Convert]::ToBase64String([Text.Encoding]::Default.GetBytes($username + ':' + $password));
$request.Headers.Add('Authorization', "Basic $credentials")
+ $request.Headers.Add('X-Requested-By', "X-Requested-By")
$response = $request.GetResponse()
if ($response.StatusCode -ne [System.Net.HttpStatusCode]::OK) {
@@ -50,4 +51,4 @@ function InvokeRestAPI($uri, [string]$username, [string]$password) {
function JoinUri([string]$baseUri, [string]$segment) {
$baseUri.TrimEnd('/') + '/' + $segment.TrimStart('/')
-}
\ No newline at end of file
+}