Compare commits
15 Commits
propose-mr
...
main
Author | SHA1 | Date | |
---|---|---|---|
fb950a3655 | |||
74c287ece0 | |||
3493830b7e | |||
a6f28c7c85 | |||
773d44336c | |||
85a785fe87 | |||
c034443e6c | |||
54945e8a61 | |||
a88879ea69 | |||
1b54a57256 | |||
d592bc9081 | |||
e942f9b4bb | |||
d68f08e7c3 | |||
aeffc8bd60 | |||
acbebc1d6e |
14
api-ref/source/apis/auto_scaling_apis_v2/index.rst
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
:original_name: mrs_02_0199.html
|
||||||
|
|
||||||
|
.. _mrs_02_0199:
|
||||||
|
|
||||||
|
Auto Scaling APIs (V2)
|
||||||
|
======================
|
||||||
|
|
||||||
|
- :ref:`Viewing Auto Scaling Policies <mrs_02_0200>`
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
viewing_auto_scaling_policies
|
@ -0,0 +1,95 @@
|
|||||||
|
:original_name: mrs_02_0201.html
|
||||||
|
|
||||||
|
.. _mrs_02_0201:
|
||||||
|
|
||||||
|
Changing a Cluster Name
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Function
|
||||||
|
--------
|
||||||
|
|
||||||
|
This API is used to change a cluster name.
|
||||||
|
|
||||||
|
URI
|
||||||
|
---
|
||||||
|
|
||||||
|
PUT /v2/{project_id}/clusters/{cluster_id}/cluster-name
|
||||||
|
|
||||||
|
.. table:: **Table 1** URI parameters
|
||||||
|
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| Parameter | Mandatory | Type | Description |
|
||||||
|
+============+===========+========+==================================================================================================================+
|
||||||
|
| project_id | Yes | String | The project ID. For details about how to obtain the project ID, see :ref:`Obtaining a Project ID <mrs_02_0011>`. |
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| cluster_id | Yes | String | The cluster ID. For details about how to obtain the cluster ID, see :ref:`Obtaining a Project ID <mrs_02_0011>`. |
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. table:: **Table 2** Request body parameter
|
||||||
|
|
||||||
|
============ ========= ====== =====================
|
||||||
|
Parameter Mandatory Type Description
|
||||||
|
============ ========= ====== =====================
|
||||||
|
cluster_name Yes String The new cluster name.
|
||||||
|
============ ========= ====== =====================
|
||||||
|
|
||||||
|
Response Parameters
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
**Status code: 200**
|
||||||
|
|
||||||
|
.. table:: **Table 3** Response body parameter
|
||||||
|
|
||||||
|
+-----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
+===========+========+==================================================================================================================================================================================+
|
||||||
|
| result | String | The operation result of the mapping update request. Value \**succeeded*\* indicates that the operation is successful, and value \**failed*\* indicates that the operation fails. |
|
||||||
|
+-----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
|
**Status code: 400**
|
||||||
|
|
||||||
|
.. table:: **Table 4** Response body parameters
|
||||||
|
|
||||||
|
========== ====== ==================
|
||||||
|
Parameter Type Description
|
||||||
|
========== ====== ==================
|
||||||
|
error_code String The error code.
|
||||||
|
error_msg String The error message.
|
||||||
|
========== ====== ==================
|
||||||
|
|
||||||
|
Example Request
|
||||||
|
---------------
|
||||||
|
|
||||||
|
Change the MRS cluster name to **mrs_jdRU_dm01**.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
{
|
||||||
|
"cluster_name" : "mrs_jdRU_dm01"
|
||||||
|
}
|
||||||
|
|
||||||
|
Example Response
|
||||||
|
----------------
|
||||||
|
|
||||||
|
**Status code: 200**
|
||||||
|
|
||||||
|
The cluster name is changed.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
{
|
||||||
|
"result" : "succeeded"
|
||||||
|
}
|
||||||
|
|
||||||
|
Status Codes
|
||||||
|
------------
|
||||||
|
|
||||||
|
See :ref:`Status Codes <mrs_02_0015>`.
|
||||||
|
|
||||||
|
Error Codes
|
||||||
|
-----------
|
||||||
|
|
||||||
|
See :ref:`Error Code <mrs_02_0014>`.
|
@ -6,9 +6,11 @@ Cluster management APIs (V2)
|
|||||||
============================
|
============================
|
||||||
|
|
||||||
- :ref:`Creating Clusters <mrs_02_0101>`
|
- :ref:`Creating Clusters <mrs_02_0101>`
|
||||||
|
- :ref:`Changing a Cluster Name <mrs_02_0201>`
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
:hidden:
|
:hidden:
|
||||||
|
|
||||||
creating_clusters
|
creating_clusters
|
||||||
|
changing_a_cluster_name
|
||||||
|
@ -11,6 +11,7 @@ APIs
|
|||||||
- :ref:`Job Binary Object APIs <mrs_02_0033>`
|
- :ref:`Job Binary Object APIs <mrs_02_0033>`
|
||||||
- :ref:`Job Object APIs (V1, Not Recommended) <mrs_02_0039>`
|
- :ref:`Job Object APIs (V1, Not Recommended) <mrs_02_0039>`
|
||||||
- :ref:`Job Execution Object APIs (V1, Not Recommended) <mrs_02_0049>`
|
- :ref:`Job Execution Object APIs (V1, Not Recommended) <mrs_02_0049>`
|
||||||
|
- :ref:`Auto Scaling APIs (V2) <mrs_02_0199>`
|
||||||
- :ref:`Job Object APIs (V2) <mrs_02_0084>`
|
- :ref:`Job Object APIs (V2) <mrs_02_0084>`
|
||||||
- :ref:`Auto Scaling APIs <mrs_02_0054>`
|
- :ref:`Auto Scaling APIs <mrs_02_0054>`
|
||||||
- :ref:`Tag Management APIs <mrs_02_0070>`
|
- :ref:`Tag Management APIs <mrs_02_0070>`
|
||||||
@ -25,6 +26,7 @@ APIs
|
|||||||
job_binary_object_apis/index
|
job_binary_object_apis/index
|
||||||
job_object_apis_v1_not_recommended/index
|
job_object_apis_v1_not_recommended/index
|
||||||
job_execution_object_apis_v1_not_recommended/index
|
job_execution_object_apis_v1_not_recommended/index
|
||||||
|
auto_scaling_apis_v2/index
|
||||||
job_object_apis_v2/index
|
job_object_apis_v2/index
|
||||||
auto_scaling_apis/index
|
auto_scaling_apis/index
|
||||||
tag_management_apis/index
|
tag_management_apis/index
|
||||||
|
360
api-ref/source/appendix/error_code.rst
Normal file
@ -7,10 +7,11 @@ Appendix
|
|||||||
|
|
||||||
- :ref:`ECS Specifications Used by MRS <mrs_01_9005>`
|
- :ref:`ECS Specifications Used by MRS <mrs_01_9005>`
|
||||||
- :ref:`Status Codes <mrs_02_0015>`
|
- :ref:`Status Codes <mrs_02_0015>`
|
||||||
|
- :ref:`Error Code <mrs_02_0014>`
|
||||||
- :ref:`Obtaining a Project ID <mrs_02_0011>`
|
- :ref:`Obtaining a Project ID <mrs_02_0011>`
|
||||||
- :ref:`Obtaining Account ID <mrs_02_0016>`
|
- :ref:`Obtaining Account ID <mrs_02_0016>`
|
||||||
- :ref:`Obtain MRS Cluster Information <mrs_02_0091>`
|
- :ref:`Obtain MRS Cluster Information <mrs_02_0091>`
|
||||||
- :ref:`Roles and components supported by MRS11 <mrs_02_0106>`
|
- :ref:`Roles and components supported by MRS <mrs_02_0106>`
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
@ -18,7 +19,8 @@ Appendix
|
|||||||
|
|
||||||
ecs_specifications_used_by_mrs
|
ecs_specifications_used_by_mrs
|
||||||
status_codes
|
status_codes
|
||||||
|
error_code
|
||||||
obtaining_a_project_id
|
obtaining_a_project_id
|
||||||
obtaining_account_id
|
obtaining_account_id
|
||||||
obtain_mrs_cluster_information
|
obtain_mrs_cluster_information
|
||||||
roles_and_components_supported_by_mrs11
|
roles_and_components_supported_by_mrs
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
.. _mrs_02_0106:
|
.. _mrs_02_0106:
|
||||||
|
|
||||||
Roles and components supported by MRS11
|
Roles and components supported by MRS
|
||||||
=======================================
|
=====================================
|
||||||
|
|
||||||
.. table:: **Table 1** Roles and components supported by MRS
|
.. table:: **Table 1** Roles and components supported by MRS
|
||||||
|
|
||||||
@ -52,4 +52,11 @@ Roles and components supported by MRS11
|
|||||||
TezUI Tez
|
TezUI Tez
|
||||||
RangerAdmin Ranger
|
RangerAdmin Ranger
|
||||||
RangerUserSync Ranger
|
RangerUserSync Ranger
|
||||||
|
HSBroker HetuEngine
|
||||||
|
HSConsole HetuEngine
|
||||||
|
QAS HetuEngine
|
||||||
|
CDLConnector CDL
|
||||||
|
CDLService CDL
|
||||||
|
IoTDBServer IoTDB
|
||||||
|
ConfigNode IoTDB
|
||||||
================ ==========
|
================ ==========
|
@ -8,10 +8,21 @@ Change History
|
|||||||
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Release Date | What's New |
|
| Release Date | What's New |
|
||||||
+===================================+==============================================================================================================================================================================================================+
|
+===================================+==============================================================================================================================================================================================================+
|
||||||
|
| 2023-09-06 | - Added an API for changing a cluster name. For details, see :ref:`Changing a Cluster Name <mrs_02_0201>`. |
|
||||||
|
| | |
|
||||||
|
| | - Added an API for checking auto scaling policies. For details, see :ref:`Viewing Auto Scaling Policies <mrs_02_0200>`. |
|
||||||
|
| | - Updated the description of the MRS cluster version based on the site requirements. For details, see :ref:`Creating Clusters <mrs_02_0101>` and :ref:`Creating a Cluster and Running a Job <mrs_02_0028>`. |
|
||||||
|
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| 2023-08-03 | - Modified the available specifications for MRS clusters. For details, see :ref:`ECS Specifications Used by MRS <mrs_01_9005>`. |
|
||||||
|
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| 2023-05-04 | - Added the support for MRS 3.2.0-LTS.1. For details, see :ref:`Creating Clusters <mrs_02_0101>`. |
|
||||||
|
| | - Added error code reference. For details, see :ref:`Error Code <mrs_02_0014>`. |
|
||||||
|
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| 2022-9-29 | Modified the following content: |
|
| 2022-9-29 | Modified the following content: |
|
||||||
| | |
|
| | |
|
||||||
| | - Added MRS 1.9.2 and MRS 2.1.0 hybrid cluster components. For details, see :ref:`Creating Clusters <mrs_02_0101>`. |
|
| | - Added MRS 1.9.2 and MRS 2.1.0 hybrid cluster components. For details, see :ref:`Creating Clusters <mrs_02_0101>`. |
|
||||||
| | - Add component lists for MRS 3.1.2-LTS.3 and 3.1.0-LTS.1. For details, see :ref:`Querying Cluster Details <mrs_02_0031>`. |
|
| | - Add component lists for MRS 3.1.2-LTS.3 and 3.1.0-LTS.1. For details, see :ref:`Querying Cluster Details <mrs_02_0031>`. |
|
||||||
|
| | - Rectified the ECS specification issue. |
|
||||||
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| 2022-07-05 | Modified the following content: |
|
| 2022-07-05 | Modified the following content: |
|
||||||
| | |
|
| | |
|
||||||
|
@ -18,7 +18,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme'
|
'otcdocstheme',
|
||||||
]
|
]
|
||||||
|
|
||||||
otcdocs_auto_name = False
|
otcdocs_auto_name = False
|
||||||
@ -30,6 +30,17 @@ otcdocs_repo_name = 'docs/mapreduce-service'
|
|||||||
otcdocs_git_fqdn = 'gitea.eco.tsi-dev.otc-service.com'
|
otcdocs_git_fqdn = 'gitea.eco.tsi-dev.otc-service.com'
|
||||||
otcdocs_git_type = 'gitea'
|
otcdocs_git_type = 'gitea'
|
||||||
|
|
||||||
|
# Those variables are needed for indexing into OpenSearch
|
||||||
|
otcdocs_doc_environment = 'internal'
|
||||||
|
otcdocs_doc_link = '/mapreduce-service/api-ref/'
|
||||||
|
otcdocs_doc_title = 'API Reference'
|
||||||
|
otcdocs_doc_type = 'api-ref'
|
||||||
|
otcdocs_service_category = 'big_data'
|
||||||
|
otcdocs_service_title = 'MapReduce Service'
|
||||||
|
otcdocs_service_type = 'mrs'
|
||||||
|
otcdocs_search_environment = 'hc_de'
|
||||||
|
otcdocs_search_url = "https://opensearch.eco.tsi-dev.otc-service.com/"
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
0
doc/best-practice/source/_static/.placeholder
Normal file
117
doc/best-practice/source/conf.py
Normal file
2
doc/best-practice/source/docutils.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[html writers]
|
||||||
|
table-style: table, caption-top
|
4
doc/best-practice/source/index.rst
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
=================================
|
||||||
|
MapReduce Service - Best Practice
|
||||||
|
=================================
|
||||||
|
|
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 219 KiB |
Before Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 413 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 154 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 8.5 KiB |