瀏覽代碼

YARN-3436. Fix URIs in documantion of YARN web service REST APIs. Contributed by Bibin A Chundatt.

Tsuyoshi Ozawa 10 年之前
父節點
當前提交
05007b45e5

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -198,6 +198,9 @@ Release 2.8.0 - UNRELEASED
     YARN-3266. RMContext#inactiveNodes should have NodeId as map key.
     (Chengbing Liu via jianhe)
 
+    YARN-3436. Fix URIs in documantion of YARN web service REST APIs.
+    (Bibin A Chundatt via ozawa)
+
 Release 2.7.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 3 - 3
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WebServicesIntro.md

@@ -97,7 +97,7 @@ After calling an HTTP request, an application should check the response status c
 
 #### JSON response with single resource
 
-HTTP Request: GET http://rmhost.domain:8088/ws/v1/cluster/app/application\_1324057493980\_0001
+HTTP Request: GET http://rmhost.domain:8088/ws/v1/cluster/apps/application\_1324057493980\_0001
 
 Response Status Line: HTTP/1.1 200 OK
 
@@ -137,7 +137,7 @@ Response Body:
 
 Here we request information about an application that doesn't exist yet.
 
-HTTP Request: GET http://rmhost.domain:8088/ws/v1/cluster/app/application\_1324057493980\_9999
+HTTP Request: GET http://rmhost.domain:8088/ws/v1/cluster/apps/application\_1324057493980\_9999
 
 Response Status Line: HTTP/1.1 404 Not Found
 
@@ -566,4 +566,4 @@ Output:
       "queue" : "a1"
    }
 }
-```
+```