本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Amazon EMR WAL (EMRWAL) CLI 參考
EMRWAL 命令列界面 (EMRWAL CLI) 是一種統一的工具,用於管理 Amazon EMR 的預先寫入日誌 (WAL)。當您在建立叢集時啟用 WAL 時, EMRWAL CLI隨附 EMR 叢集。如需啟用 WAL 的詳細資訊,請參閱 Amazon EMR 的預先寫入日誌 (WAL)。
EMRWAL CLI 包含下列命令:
主題
createWorkspace
createWorkspace
命令會建立新的 Amazon EMR WAL 工作區。
用量:
emrwal createWorkspace [-tags <tags>] [-e
{endpoint}
] [-r{Region}
] -w{workspacename}
[-h]
範例:
emrwal createWorkspace -w
examplews
deleteWal
deleteWals
命令會刪除您指定的 Amazon EMR WAL。
用量:
emrwal deleteWal [-e
{endpoint}
] [-r{Region}
] [-w{workspacename}
] [-p <tablePrefix>] [-n <walName>] [-N <fullName>] [-R] [-m] [-h]
範例:
emrwal deleteWal -w
examplews
-p hbasetable -nexamplewal
deleteWorkspace
deleteWorkspace
命令會刪除您指定的 Amazon EMR WAL 工作區。
用量:
emrwal deleteWorkspace [-e
{endpoint}
] [-r{Region}
] -w{workspacename}
[-h]
範例:
emrwal deleteWorkspace -w
examplews
listTagsForResource
listTagsForResource
命令會列出您指定之 Amazon EMR WAL 工作區的所有鍵值對標籤。
用量:
emrwal listTagsForResource -arn
{resource-arn}
[-e{endpoint}
] [-r{Region}
] [-h]
範例:
emrwal listTagsForResource -arn arn:aws:emrwal::
1234567891234
:workspace/examplews
listWals
listWals
命令會列出您指定工作區中的所有 Amazon EMR WALs。
用量:
emrwal listWals [-nextToken
{token-string}
] [-pageSize{integer}
] [-e{endpoint}
] [-r{Region}
] [-w{workspacename}
] [-p <tablePrefix>] [-M{integer}
] [-h]
範例:
emrwal listWals -w
examplews
listWorkspaces
listWorkspaces
命令會列出您可用的所有 Amazon EMR WAL 工作區。
用量:
emrwal listWorkspaces [-nextToken
{token-string}
] [-pageSize{integer}
] [-e{endpoint}
] [-r{Region}
] [-M{integer}
] [-h]
範例:
emrwal listWorkspaces
tagResource
tagResource
命令會將一或多個鍵值對標籤指派給您指定的 Amazon EMR WAL 工作區。
用量:
emrwal tagResource -arn
{resource-arn}
-tags <tags> [-e{endpoint}
] [-r{Region}
] [-h]
範例:
emrwal tagResource -arn arn:aws:emrwal::
1234567891234
:workspace/examplews
-tagstag_key
=tag_value
untagResource
untagResource
命令會將一或多個鍵值對標籤取消指派給您指定的 Amazon EMR WAL 工作區。
用量:
emrwal untagResource -arn
{resource-arn}
-tagKeys <tagKeys> [-e{endpoint}
] [-r{Region}
] [-h]
範例:
emrwal untagResource -arn arn:aws:emrwal::
1234567891234
:workspace/examplews
-tagKeystag_key