【发布时间】:2015-08-27 10:08:26
【问题描述】:
使用 Riak Client(erlang),我可以列出默认存储桶类型的所有存储桶。但是我怎样才能列出所有的桶类型呢?或者如果我不能由客户执行此操作,我如何才能知道这一点?
【问题讨论】:
使用 Riak Client(erlang),我可以列出默认存储桶类型的所有存储桶。但是我怎样才能列出所有的桶类型呢?或者如果我不能由客户执行此操作,我如何才能知道这一点?
【问题讨论】:
对于 v2.1.4,riak-admin bucket-type list 就是您要查找的内容。
riak-admin bucket-type 的其他子命令(取自早期版本的 riak 文档)包括:
Command Action Form
create create or modify a bucket type create <type> <json>
before activation
activate activate a bucket type activate <type>
list list all currently available bucket
types and their activation status list
status display the status and properties status <type>
of a specific bucket type
update update a bucket type after activation update <type> <json>
【讨论】: