如何列出riak中的所有桶类型? [英] How to list all the bucket types in riak?

查看:192
本文介绍了如何列出riak中的所有桶类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Riak Client(erlang),我可以列出默认桶类型的所有桶。但是如何列出所有的桶类型?或者如果客户端无法做到这一点,我该怎么弄清楚?

Using Riak Client(erlang), I can list all the buckets of the default bucket type. But how can I list all the bucket types? Or If I can't do this by the client, how can I find out about this?

推荐答案

对于v2.1.4, riak- admin桶类型列表 是您正在寻找的。

For v2.1.4, riak-admin bucket-type list is what you are looking for.

riak-admin bucket-type 的其他子命令(取自之前版本的riak文档)包括:

Other sub-commands for riak-admin bucket-type (taken from the riak docs at an earlier revision) include:

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>

这篇关于如何列出riak中的所有桶类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆