亚马逊 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) 的统一工具。这些区域有:EMRWAL CLI 当您在创建集群时启用 WAL 时,EMR 集群会附带。有关启用 WAL 的更多信息,请参阅 Amazon EMR 的预写日志(WAL)

这些区域有:EMRWAL CLI 包括以下命令:

createWorkspace

createWorkspace 命令将创建一个新的 Amazon EMR WAL Workspace。

用法:

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

deleteWorkspace

deleteWorkspace 命令将删除您指定的 Amazon EMR WAL Workspace。

用法:

emrwal deleteWorkspace [-e {endpoint}] [-r {Region}] -w {workspacename} [-h]

示例

emrwal deleteWorkspace -w examplews

listTagsForResource

listTagsForResource 命令将列出您指定的 Amazon EMR WAL Workspace的所有键值对标签。

用法:

emrwal listTagsForResource -arn {resource-arn} [-e {endpoint}] [-r {Region}] [-h]

示例

emrwal listTagsForResource -arn arn:aws:emrwal::1234567891234:workspace/examplews

listWals

listWals命令列出了您指定的工作空间 WALs 中的所有 Amazon EMR。

用法:

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

用法:

emrwal listWorkspaces [-nextToken {token-string}] [-pageSize {integer}] [-e {endpoint}] [-r {Region}] [-M {integer}] [-h]

示例

emrwal listWorkspaces

tagResource

tagResource 命令将为您指定的 Amazon EMR WAL Workspace 分配一个或多个键值对标签。

用法:

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 Workspace 取消分配一个或多个键值对标签。

用法:

emrwal untagResource -arn {resource-arn} -tagKeys <tagKeys> [-e {endpoint}] [-r {Region}] [-h]

示例

emrwal untagResource -arn arn:aws:emrwal::1234567891234:workspace/examplews -tagKeys tag_key