Membuat klaster dengan model pay-as-you-go atau subscription.
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 wilayah. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmzabjyop**** |
| PaymentType |
string |
No |
Metode penagihan. Nilai yang valid:
Nilai default: PayAsYouGo. |
PayAsYouGo |
| SubscriptionConfig | SubscriptionConfig |
No |
Konfigurasi subscription. Parameter ini wajib jika Anda mengatur PaymentType ke Subscription. |
|
| ClusterType |
string |
Yes |
Jenis klaster. Nilai yang valid:
Jika Anda membuat klaster 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 jenis klaster. |
DATALAKE |
| ReleaseVersion |
string |
Yes |
Versi rilis EMR. Anda dapat menemukan versi rilis EMR di halaman pembelian klaster EMR. |
EMR-5.16.0 |
| ClusterName |
string |
Yes |
Nama klaster. Nama harus terdiri dari 1 hingga 128 karakter. Nama harus dimulai dengan huruf atau karakter Tionghoa. Nama tidak boleh dimulai dengan http:// atau https://. Nama dapat berisi huruf, angka, karakter Tionghoa, titik dua (:), garis bawah (_), titik (.), dan tanda hubung (-). |
emrtest |
| DeployMode |
string |
No |
Mode penyebaran aplikasi dalam klaster. Nilai yang valid:
|
HA |
| SecurityMode |
string |
No |
Mode keamanan Kerberos klaster. 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 semua node Elastic Compute Service (ECS) dalam klaster. |
|
| NodeGroups |
array |
Yes |
Array konfigurasi kelompok node. Jumlah elemen array N harus berada dalam rentang 1 hingga 100. |
NORMAL |
| NodeGroupConfig |
No |
Konfigurasi kelompok 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 client yang digunakan untuk memastikan idempotensi permintaan. Hasil dari beberapa panggilan yang menggunakan token client yang sama akan identik. Maksimal satu klaster dapat dibuat dengan token client yang sama. |
A7D960FA-6DBA-5E07-8746-A63E3E4D**** |
| Description |
string |
No |
Deskripsi klaster. |
Emr cluster for ETL |
| DeletionProtection |
boolean |
No |
Menentukan apakah perlindungan penghapusan untuk klaster diaktifkan. Nilai yang valid:
Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| ClusterId |
string |
ID klaster. |
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.