You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2016/10/28 14:47:53 UTC
ambari git commit: AMBARI-18702. Fix typos (magyari_sandor)
Repository: ambari
Updated Branches:
refs/heads/trunk 86d494b0e -> 57037feff
AMBARI-18702. Fix typos (magyari_sandor)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/57037fef
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/57037fef
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/57037fef
Branch: refs/heads/trunk
Commit: 57037feff9be4fb94808e0f01235df6bdf4fbf4c
Parents: 86d494b
Author: Sandor Magyari <sm...@hortonworks.com>
Authored: Fri Oct 28 17:47:24 2016 +0300
Committer: Sandor Magyari <sm...@hortonworks.com>
Committed: Fri Oct 28 17:47:24 2016 +0300
----------------------------------------------------------------------
ambari-server/docs/api/v1/configuration.md | 28 ++++++++++++--------
ambari-server/docs/api/v1/create-cluster.md | 2 +-
.../docs/api/v1/host-component-resources.md | 2 +-
ambari-server/docs/api/v1/index.md | 6 ++---
ambari-server/docs/api/v1/schemas.md | 2 +-
ambari-server/docs/api/v1/update-service.md | 4 +--
ambari-server/docs/api/v1/update-services.md | 2 +-
7 files changed, 26 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/configuration.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/configuration.md b/ambari-server/docs/api/v1/configuration.md
index e3c3be6..2c338d8 100644
--- a/ambari-server/docs/api/v1/configuration.md
+++ b/ambari-server/docs/api/v1/configuration.md
@@ -34,15 +34,16 @@ To list all the configurations defined in a cluster:
GET /api/v1/clusters/c1/configurations
{
- "items" : [
- {
- "tag" : "version1",
- "type" : "global",
- "Config" : {
- "cluster_name" : "c1"
- }
- },
- /* etc */
+ "items" : [
+ {
+ "tag" : "version1",
+ "type" : "global",
+ "Config" : {
+ "cluster_name" : "c1"
+ }
+ },
+ /* etc */
+ ]
}
To view the real set of key/value pairs, use the `type` and `tag` as request parameters:
@@ -60,7 +61,7 @@ To view the real set of key/value pairs, use the `type` and `tag` as request par
"hive_lib" : "/usr/lib/hive/lib/",
/* etc */
}
- }
+ ]}
}
To create a new configuration, the below call can be made. Creating a configuration is different than applying a configuration.
@@ -105,7 +106,8 @@ and then apply it to the cluster:
"Clusters": {
"desired_config": {
"type": "core-site",
- "tag": "version2",
+ "tag": "version2"
+ }
}
}
@@ -121,6 +123,7 @@ The other, more efficient way is to create and apply a configuration on a cluste
"a": "b",
/* etc */
}
+ }
}
}
@@ -208,4 +211,7 @@ The most common use-case for actual configuration is knowing when a service or c
/* etc */
]
}
+ ]
+ }
+
The actual configurations are used at the host_component level to indicate which services are different from the desired configurations. Any differences requires a restart of the component (or the entire service, if needed). This is because components of the the same service may be on different hosts.
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/create-cluster.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/create-cluster.md b/ambari-server/docs/api/v1/create-cluster.md
index 07197b8..4107f71 100644
--- a/ambari-server/docs/api/v1/create-cluster.md
+++ b/ambari-server/docs/api/v1/create-cluster.md
@@ -69,7 +69,7 @@ Create a cluster named \u2018c1\u2019 with the property \u2018Clusters/version\u2019 = \u2018HD
{
"Clusters": {
- "version" : "HDP-1.2.0\u201d
+ "version" : "HDP-1.2.0"
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/host-component-resources.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/host-component-resources.md b/ambari-server/docs/api/v1/host-component-resources.md
index c7cf7a2..f6bd67e 100644
--- a/ambari-server/docs/api/v1/host-component-resources.md
+++ b/ambari-server/docs/api/v1/host-component-resources.md
@@ -45,7 +45,7 @@ limitations under the License.
</tr>
<tr>
<td>HostRoles/component_name</td>
- <td>The name of the parenbt component</td>
+ <td>The name of the parent component</td>
</tr>
<tr>
<td>HostRoles/state</td>
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/index.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/index.md b/ambari-server/docs/api/v1/index.md
index 55c3461..da05d75 100644
--- a/ambari-server/docs/api/v1/index.md
+++ b/ambari-server/docs/api/v1/index.md
@@ -142,7 +142,7 @@ Start the HDFS service (update the state of the HDFS service to be \u2018STARTED\u2019
{
"ServiceInfo": {
- "state" : "STARTED\u201d
+ "state" : "STARTED"
}
}
@@ -836,7 +836,7 @@ Operator functions behave like relational operators and provide additional funct
PUT /api/v1/clusters/c1/services?ServiceInfo/state=INSTALLED
{
"ServiceInfo": {
- "state" : "STARTED\u201d
+ "state" : "STARTED"
}
}
@@ -892,7 +892,7 @@ RequestInfo allows the user to specify additional properties in the body of a re
###query
-The query property allows the user to specify yhe query string as part of the request body. This is sometimes required in the case of a very long query string that causes the request to exceed the limits of the URL.
+The query property allows the user to specify the query string as part of the request body. This is sometimes required in the case of a very long query string that causes the request to exceed the limits of the URL.
**Example \u2013 Specifying the query string in the request body**
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/schemas.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/schemas.md b/ambari-server/docs/api/v1/schemas.md
index b0f805a..f52bc10 100644
--- a/ambari-server/docs/api/v1/schemas.md
+++ b/ambari-server/docs/api/v1/schemas.md
@@ -3012,7 +3012,7 @@ POST/PUT/DELETE resource
PUT /clusters/c1/services/HDFS/
{
"ServiceInfo": {
- "state" : "STARTED\u201d
+ "state" : "STARTED"
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/update-service.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/update-service.md b/ambari-server/docs/api/v1/update-service.md
index 2f47ccd..89e3943 100644
--- a/ambari-server/docs/api/v1/update-service.md
+++ b/ambari-server/docs/api/v1/update-service.md
@@ -70,7 +70,7 @@ Start the HDFS service (update the state of the HDFS service to be \u2018STARTED\u2019
PUT /clusters/c1/services/HDFS
{
"ServiceInfo": {
- "state" : "STARTED\u201d
+ "state" : "STARTED"
}
}
@@ -91,7 +91,7 @@ Stop the HDFS service (update the state of the HDFS service to be \u2018INSTALLED
PUT /clusters/c1/services/HDFS/
{
"ServiceInfo": {
- "state" : "INSTALLED\u201d
+ "state" : "INSTALLED"
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/57037fef/ambari-server/docs/api/v1/update-services.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/update-services.md b/ambari-server/docs/api/v1/update-services.md
index a230ae6..96b7e80 100644
--- a/ambari-server/docs/api/v1/update-services.md
+++ b/ambari-server/docs/api/v1/update-services.md
@@ -71,7 +71,7 @@ Update the state of all \u2018INSTALLED\u2019 services to be \u2018STARTED\u2019 for the clu
{
"ServiceInfo": {
- "state" : "STARTED\u201d
+ "state" : "STARTED"
}
}