亚马逊 EMR WAL () EMRWAL CLI 参考 - Amazon EMR
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

亚马逊 EMR WAL () EMRWAL CLI 参考

EMRWAL命令行界面 (EMRWAL CLI) 是一个统一的工具,用于管理 Amazon EMR 的预写日志 (WAL)。当您在创建集群时启用 WAL 时,EMR 集群会附带。EMRWAL CLI有关启用 WAL 的更多信息,请参阅亚马逊 EMR 的预写日志 (WAL)

EMRWAL CLI包括以下命令:

createWorkspace

createWorkspace命令创建了一个新的 Amazon EMR WAL 工作空间。

用法:

emrwal createWorkspace [-tags <tags>] [-e {endpoint}] [-r {Region}] -w {workspacename} [-h]

示例

aws emr 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 -n examplewal

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 WAL。

用法:

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 -tags tag_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 -tagKeys tag_key