How to list all the bucket types in riak?

扶醉桌前 提交于 2019-12-11 03:09:21

问题


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?


回答1:


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

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>


来源:https://stackoverflow.com/questions/30785431/how-to-list-all-the-bucket-types-in-riak

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!