Membuat cluster bayar-sesuai-pemakaian atau langganan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr:CreateCluster |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-acfmzabjyop**** |
| PaymentType |
string |
No |
Metode penagihan. Nilai yang valid:
Nilai default: PayAsYouGo. |
PayAsYouGo |
| SubscriptionConfig | SubscriptionConfig |
No |
Konfigurasi langganan. Parameter ini diperlukan jika Anda menyetel PaymentType ke Subscription. |
|
| ClusterType |
string |
Yes |
Tipe cluster. Nilai yang valid:
Jika Anda membuat cluster EMR untuk pertama kalinya setelah pukul 17:00 (UTC+8) pada 19 Desember 2022, Anda tidak dapat memilih HADOOP, DATA_SCIENCE, PRESTO, atau ZOOKEEPER sebagai tipe cluster. |
DATALAKE |
| ReleaseVersion |
string |
Yes |
Versi rilis EMR. Anda dapat menemukan versi rilis EMR di halaman pembelian cluster EMR. |
EMR-5.16.0 |
| ClusterName |
string |
Yes |
Nama cluster. Nama harus terdiri dari 1 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Tionghoa. Nama tidak boleh diawali dengan http:// atau https://. Nama dapat berisi huruf, digit, karakter Tionghoa, titik dua (:), garis bawah (_), titik (.), dan tanda hubung (-). |
emrtest |
| DeployMode |
string |
No |
Mode penyebaran aplikasi dalam cluster. Nilai yang valid:
|
HA |
| SecurityMode |
string |
No |
Mode keamanan Kerberos pada cluster. Nilai yang valid:
|
NORMAL |
| Applications |
array |
Yes |
Daftar aplikasi. Jumlah elemen array N harus berada dalam rentang 1 hingga 100. |
|
| Application |
No |
Aplikasi. |
||
| ApplicationConfigs |
array |
No |
Konfigurasi aplikasi. Jumlah elemen array N harus berada dalam rentang 1 hingga 1000. |
|
| ApplicationConfig |
No |
Konfigurasi aplikasi. |
||
| NodeAttributes | NodeAttributes |
Yes |
Atribut node. Parameter ini menentukan atribut dasar dari semua node Elastic Compute Service (ECS) dalam cluster. |
|
| NodeGroups |
array |
Yes |
Array konfigurasi grup node. Jumlah elemen array N harus berada dalam rentang 1 hingga 100. |
NORMAL |
| NodeGroupConfig |
No |
Konfigurasi grup node. |
||
| BootstrapScripts |
array |
No |
Array skrip bootstrap. Jumlah elemen array N harus berada dalam rentang 1 hingga 10. |
|
| Script |
No |
Skrip bootstrap. |
||
| Tags |
array |
No |
Tag. Jumlah elemen array N harus berada dalam rentang 0 hingga 20. |
A7D960FA-6DBA-5E07-8746-A63E3E4D**** |
| Tag |
No |
Tag. |
||
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Hasil dari beberapa panggilan yang menggunakan token klien yang sama adalah identik. Maksimal satu cluster dapat dibuat dengan token klien yang sama. |
A7D960FA-6DBA-5E07-8746-A63E3E4D**** |
| Description |
string |
No |
Deskripsi cluster. |
Emr cluster for ETL |
| DeletionProtection |
boolean |
No |
Menentukan apakah akan mengaktifkan perlindungan penghapusan untuk cluster. Nilai yang valid:
Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| ClusterId |
string |
ID cluster. |
c-b933c5aac7f7*** |
| OperationId |
string |
ID operasi. |
op-13c37a77c505**** |
| RequestId |
string |
ID permintaan. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Contoh
Respons sukses
JSONformat
{
"ClusterId": "c-b933c5aac7f7***",
"OperationId": "op-13c37a77c505****",
"RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied | The operation is invalid. %s | |
| 400 | OutOfStock | The requested resource is sold out in the specified zone, try other types of resources or other regions and zones. | |
| 400 | QuotaExceeded | Request fail due to quota exceed. %s | |
| 400 | AccountException | Account exception. %s | |
| 400 | ConflictParameters | Parameters that must not be used together. %s | |
| 400 | IncompleteSignature | The request signature is invalid. | |
| 400 | InvalidAction | The action %s requested is invalid. | |
| 400 | InvalidParameter | The specified parameter %s is not valid. | |
| 400 | InvalidParameterValue | The input parameter %s is invalid or out of range. | |
| 400 | MissingAction | The action %s requested is missing. | |
| 400 | MissingParameter | The input parameter %s that is mandatory for processing this request is not supplied. | |
| 400 | NotAuthorized | You do not have permission to perform this action. %s | |
| 400 | ThrottlingException | The request was denied due to request throttling. %s | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 404 | ResourceNotFound | The resource not found by %s. | |
| 503 | ServiceFailure | The request has failed due to a temporary failure of %s service. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.