これだけ覚えておきゃ大丈夫！！riakの主要コマンド集

Riakを使いはじめてみて、まだ、数日しかたっていませんが、このコマンドだけ覚えておけば、一通りのデータ操作は行えるかな？と思ってメモ程度にまとめていました。

Riakのインストールについては、先日、[ここ](http://qiita.com/hit/items/6ae19345ddc14fd6c2d2)にまとめましたのでご覧になってくださいませ

## bucket-type（バケツタイプ）を設定する

```
riak-admin bucket-type create users '{"props":{"allow_mult":false}}'
----------------------------------------------
WARNING: After activating users, nodes in this cluster
can no longer be downgraded to a version of Riak prior to 2.0
```

## users bucket type  をactivateする

```
riak-admin bucket-type activate users
----------------------------------------------
users has been activated

WARNING: Nodes in this cluster can no longer be
downgraded to a version of Riak prior to 2.0
```

## bucket-typeのプロパティを削除する

```
curl -i -X DELETE http://localhost:8098/buckets/users/props
----------------------------------------------
props
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 08:20:34 GMT
Content-Type: application/json
Content-Length: 0

```

## 設定した値が反映されていることを確認する

```
riak-admin bucket-type status users
----------------------------------------------
users is active

young_vclock: 20
w: quorum
small_vclock: 50
rw: quorum
r: quorum
pw: 0
precommit: []
pr: 0
postcommit: []
old_vclock: 86400
notfound_ok: true
n_val: 3
linkfun: {modfun,riak_kv_wm_link_walker,mapreduce_linkfun}
last_write_wins: false
dw: quorum
dvv_enabled: true
chash_keyfun: {riak_core_util,chash_std_keyfun}
big_vclock: 50
basic_quorum: false
allow_mult: false
active: true
claimant: 'riak@192.168.40.61'
```

### bucket の一覧を取得する

```
curl -i 'http://localhost:8098/types/users/buckets?buckets=true'
```
## bucket-typeの一覧を取得する

```
riak-admin bucket-type list                           
----------------------------------------------
default (active)
users (active)
```

## Key/Valueのput

```
curl -X PUT -i 'http://localhost:8098/types/users/buckets/members/keys/0010' -H 'Content-Type: application/json' -d '{name: "yamada taro", age: 31, sex: "male"}'
----------------------------------------------
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 03:11:23 GMT
Content-Type: application/json
Content-Length: 0

curl -X PUT -i 'http://localhost:8098/types/users/buckets/members/keys/0020' -H 'Content-Type: application/json' -d '{name: "yamada hanako", age: 23, sex: "female"}'
----------------------------------------------
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 03:12:13 GMT
Content-Type: application/json
Content-Length: 0

```

## keyの一覧を取得

```
curl -i 'http://localhost:8098/types/users/buckets/members/keys?keys=true'
----------------------------------------------
HTTP/1.1 200 OK
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 03:17:23 GMT
Content-Type: application/json
Content-Length: 24

{"keys":["0020","0010"]}
```

## Key/Valueのget

```
curl -s 'http://localhost:8098/types/users/buckets/members/keys/0010'
----------------------------------------------
{name: "yamada taro", age: 31, sex: "male"}

curl -s -i 'http://localhost:8098/types/users/buckets/members/keys/0020'
----------------------------------------------
HTTP/1.1 200 OK
X-Riak-Vclock: a85hYGBgzGDKBVI8BTf2l5y8Pq+MgeFVUgZTImMeK0MvZ+d5viwA
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Link: </buckets/members>; rel="up"
Last-Modified: Wed, 07 Oct 2015 03:12:13 GMT
ETag: "2apgeZDJMucsjXjTWxYYLq"
Date: Wed, 07 Oct 2015 03:19:05 GMT
Content-Type: application/json
Content-Length: 47

{name: "yamada hanako", age: 23, sex: "female"}

```

## 実験：同じキーで違う値をputしてみる

```
curl -X PUT -i 'http://localhost:8098/types/users/buckets/members/keys/0010' -H 'Content-Type: application/json' -d '{name: "yamada taro rename", age: 31, sex: "male"}'
----------------------------------------------
HTTP/1.1 204 No Content
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 03:24:04 GMT
Content-Type: application/json
Content-Length: 0
```

## 結果確認

- allow_mult:false の場合

あとから入ったものが優先されます。


```
curl -s 'http://localhost:8098/types/users/buckets/members/keys/0010'
----------------------------------------------
{name: "yamada taro rename", age: 31, sex: "male"}
```
- allow_mult:true の場合

siblings （区別がつかない？）が生成され、同じキーを持つ２つのデータが生成されます。

```
curl -s 'http://localhost:8098/types/users/buckets/members/keys/0010'
----------------------------------------------
Siblings:
2by6s6yHQ66lwe7eM0iukD
7maqSvoKVQXbcJcyQP8YLE
```
-- siblings の解決　

どのように競合しているかは、下記コマンドでわかります。きっと、アプリケーション側でどちらを採用するか決めるのでしょうけど結構めんどくさそう・・

```
curl -H "Accept: multipart/mixed" http://localhost:8098/types/users/buckets/members/keys/0010                                    
----------------------------------------------

--U7tgEb2Z5mtHdNYEHd1xJkfXR7G
Content-Type: application/json
Link: </buckets/members>; rel="up"
Etag: 2by6s6yHQ66lwe7eM0iukD
Last-Modified: Wed, 07 Oct 2015 05:51:30 GMT

{name: "yamada taro rename", age: 31, sex: "male"}
--U7tgEb2Z5mtHdNYEHd1xJkfXR7G
Content-Type: application/json
Link: </buckets/members>; rel="up"
Etag: 7maqSvoKVQXbcJcyQP8YLE
Last-Modified: Wed, 07 Oct 2015 05:50:27 GMT

{name: "yamada taro", age: 31, sex: "male"}
--U7tgEb2Z5mtHdNYEHd1xJkfXR7G--
``` 

## bucket type 変更方法

- allow_mult を true に変更します

```
riak-admin bucket-type update users '{"props":{"allow_mult":true}}'
riak-admin bucket-type activate users
----------------------------------------------
users updated
```

## key/value のdelete

```
curl -X DELETE -i 'http://localhost:8098/types/users/buckets/members/keys/0010'
----------------------------------------------
HTTP/1.1 204 No Content
Vary: Accept, Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.8 (that head fake, tho)
Date: Wed, 07 Oct 2015 06:00:55 GMT
Content-Type: text/plain
Content-Length: 0

curl -X DELETE -i 'http://localhost:8098/types/users/buckets/members/keys/0020' 


curl -s 'http://localhost:8098/types/users/buckets/members/keys/0010'
----------------------------------------------
not found
```

# おまけ

データ操作には関係ないです・・主に状態監視で利用します

## ping

```
curl -s 'http://localhost:8098/ping'
----------------------------------------------
OK
```

## status

```
curl -s 'http://localhost:8098/stats' | jq '.'
----------------------------------------------
{
  "connected_nodes": [
    "riak@192.168.0.61"
  ],
  "consistent_get_objsize_100": 0,
  "consistent_get_objsize_95": 0,
  "consistent_get_objsize_99": 0,
  "consistent_get_objsize_mean": 0,
  "consistent_get_objsize_median": 0,
  "consistent_get_time_100": 0,
  "consistent_get_time_95": 0,
  "consistent_get_time_99": 0,
  "consistent_get_time_mean": 0,
  "consistent_get_time_median": 0,
  "consistent_gets": 0,
  "consistent_gets_total": 0,
  "consistent_put_objsize_100": 0,
  "consistent_put_objsize_95": 0,
  "consistent_put_objsize_99": 0,
  "consistent_put_objsize_mean": 0,
  "consistent_put_objsize_median": 0,
  "consistent_put_time_100": 0,
  "consistent_put_time_95": 0,
  "consistent_put_time_99": 0,
  "consistent_put_time_mean": 0,
  "consistent_put_time_median": 0,
  "consistent_puts": 0,
  "consistent_puts_total": 0,
  "converge_delay_last": 24723,
  "converge_delay_max": 0,
  "converge_delay_mean": 0,
  "converge_delay_min": 0,
  "coord_redirs_total": 0,
  "counter_actor_counts_100": 0,
  "counter_actor_counts_95": 0,
  "counter_actor_counts_99": 0,
  "counter_actor_counts_mean": 0,
  "counter_actor_counts_median": 0,
  "cpu_avg1": 41,
  "cpu_avg15": 5,
  "cpu_avg5": 20,
  "cpu_nprocs": 551,
  "dropped_vnode_requests_total": 0,
  "executing_mappers": 0,
  "gossip_received": 6,
  "handoff_timeouts": 0,
  "ignored_gossip_total": 0,
  "index_fsm_active": 0,
  "index_fsm_create": 0,
  "index_fsm_create_error": 0,
  "late_put_fsm_coordinator_ack": 0,
  "leveldb_read_block_error": 0,
  "list_fsm_active": 0,
  "list_fsm_create": 0,
  "list_fsm_create_error": 0,
  "list_fsm_create_error_total": 0,
  "list_fsm_create_total": 2,
  "map_actor_counts_100": 0,
  "map_actor_counts_95": 0,
  "map_actor_counts_99": 0,
  "map_actor_counts_mean": 0,
  "map_actor_counts_median": 0,
  "mem_allocated": 3748749312,
  "mem_total": 4140384256,
  "memory_atom": 744345,
  "memory_atom_used": 731656,
  "memory_binary": 7254464,
  "memory_code": 17171306,
  "memory_ets": 7754808,
  "memory_processes": 56030704,
  "memory_processes_used": 56020704,
  "memory_system": 43260944,
  "memory_total": 99291648,
  "node_get_fsm_active": 0,
  "node_get_fsm_active_60s": 0,
  "node_get_fsm_counter_objsize_100": 0,
  "node_get_fsm_counter_objsize_95": 0,
  "node_get_fsm_counter_objsize_99": 0,
  "node_get_fsm_counter_objsize_mean": 0,
  "node_get_fsm_counter_objsize_median": 0,
  "node_get_fsm_counter_siblings_100": 0,
  "node_get_fsm_counter_siblings_95": 0,
  "node_get_fsm_counter_siblings_99": 0,
  "node_get_fsm_counter_siblings_mean": 0,
  "node_get_fsm_counter_siblings_median": 0,
  "node_get_fsm_counter_time_100": 0,
  "node_get_fsm_counter_time_95": 0,
  "node_get_fsm_counter_time_99": 0,
  "node_get_fsm_counter_time_mean": 0,
  "node_get_fsm_counter_time_median": 0,
  "node_get_fsm_errors": 0,
  "node_get_fsm_errors_total": 0,
  "node_get_fsm_in_rate": 0,
  "node_get_fsm_map_objsize_100": 0,
  "node_get_fsm_map_objsize_95": 0,
  "node_get_fsm_map_objsize_99": 0,
  "node_get_fsm_map_objsize_mean": 0,
  "node_get_fsm_map_objsize_median": 0,
  "node_get_fsm_map_siblings_100": 0,
  "node_get_fsm_map_siblings_95": 0,
  "node_get_fsm_map_siblings_99": 0,
  "node_get_fsm_map_siblings_mean": 0,
  "node_get_fsm_map_siblings_median": 0,
  "node_get_fsm_map_time_100": 0,
  "node_get_fsm_map_time_95": 0,
  "node_get_fsm_map_time_99": 0,
  "node_get_fsm_map_time_mean": 0,
  "node_get_fsm_map_time_median": 0,
  "node_get_fsm_objsize_100": 0,
  "node_get_fsm_objsize_95": 0,
  "node_get_fsm_objsize_99": 0,
  "node_get_fsm_objsize_mean": 0,
  "node_get_fsm_objsize_median": 0,
  "node_get_fsm_out_rate": 0,
  "node_get_fsm_rejected": 0,
  "node_get_fsm_rejected_60s": 0,
  "node_get_fsm_rejected_total": 0,
  "node_get_fsm_set_objsize_100": 0,
  "node_get_fsm_set_objsize_95": 0,
  "node_get_fsm_set_objsize_99": 0,
  "node_get_fsm_set_objsize_mean": 0,
  "node_get_fsm_set_objsize_median": 0,
  "node_get_fsm_set_siblings_100": 0,
  "node_get_fsm_set_siblings_95": 0,
  "node_get_fsm_set_siblings_99": 0,
  "node_get_fsm_set_siblings_mean": 0,
  "node_get_fsm_set_siblings_median": 0,
  "node_get_fsm_set_time_100": 0,
  "node_get_fsm_set_time_95": 0,
  "node_get_fsm_set_time_99": 0,
  "node_get_fsm_set_time_mean": 0,
  "node_get_fsm_set_time_median": 0,
  "node_get_fsm_siblings_100": 0,
  "node_get_fsm_siblings_95": 0,
  "node_get_fsm_siblings_99": 0,
  "node_get_fsm_siblings_mean": 0,
  "node_get_fsm_siblings_median": 0,
  "node_get_fsm_time_100": 0,
  "node_get_fsm_time_95": 0,
  "node_get_fsm_time_99": 0,
  "node_get_fsm_time_mean": 0,
  "node_get_fsm_time_median": 0,
  "node_gets": 0,
  "node_gets_counter": 0,
  "node_gets_counter_total": 0,
  "node_gets_map": 0,
  "node_gets_map_total": 0,
  "node_gets_set": 0,
  "node_gets_set_total": 0,
  "node_gets_total": 45,
  "node_put_fsm_active": 0,
  "node_put_fsm_active_60s": 0,
  "node_put_fsm_counter_time_100": 0,
  "node_put_fsm_counter_time_95": 0,
  "node_put_fsm_counter_time_99": 0,
  "node_put_fsm_counter_time_mean": 0,
  "node_put_fsm_counter_time_median": 0,
  "node_put_fsm_in_rate": 0,
  "node_put_fsm_map_time_100": 0,
  "node_put_fsm_map_time_95": 0,
  "node_put_fsm_map_time_99": 0,
  "node_put_fsm_map_time_mean": 0,
  "node_put_fsm_map_time_median": 0,
  "node_put_fsm_out_rate": 0,
  "node_put_fsm_rejected": 0,
  "node_put_fsm_rejected_60s": 0,
  "node_put_fsm_rejected_total": 0,
  "node_put_fsm_set_time_100": 0,
  "node_put_fsm_set_time_95": 0,
  "node_put_fsm_set_time_99": 0,
  "node_put_fsm_set_time_mean": 0,
  "node_put_fsm_set_time_median": 0,
  "node_put_fsm_time_100": 0,
  "node_put_fsm_time_95": 0,
  "node_put_fsm_time_99": 0,
  "node_put_fsm_time_mean": 0,
  "node_put_fsm_time_median": 0,
  "node_puts": 0,
  "node_puts_counter": 0,
  "node_puts_counter_total": 0,
  "node_puts_map": 0,
  "node_puts_map_total": 0,
  "node_puts_set": 0,
  "node_puts_set_total": 0,
  "node_puts_total": 15,
  "nodename": "riak@192.168.40.129",
  "object_counter_merge": 0,
  "object_counter_merge_time_100": 0,
  "object_counter_merge_time_95": 0,
  "object_counter_merge_time_99": 0,
  "object_counter_merge_time_mean": 0,
  "object_counter_merge_time_median": 0,
  "object_counter_merge_total": 0,
  "object_map_merge": 0,
  "object_map_merge_time_100": 0,
  "object_map_merge_time_95": 0,
  "object_map_merge_time_99": 0,
  "object_map_merge_time_mean": 0,
  "object_map_merge_time_median": 0,
  "object_map_merge_total": 0,
  "object_merge": 0,
  "object_merge_time_100": 0,
  "object_merge_time_95": 0,
  "object_merge_time_99": 0,
  "object_merge_time_mean": 0,
  "object_merge_time_median": 0,
  "object_merge_total": 5,
  "object_set_merge": 0,
  "object_set_merge_time_100": 0,
  "object_set_merge_time_95": 0,
  "object_set_merge_time_99": 0,
  "object_set_merge_time_mean": 0,
  "object_set_merge_time_median": 0,
  "object_set_merge_total": 0,
  "pbc_active": 0,
  "pbc_connects": 0,
  "pbc_connects_total": 0,
  "pipeline_active": 0,
  "pipeline_create_count": 0,
  "pipeline_create_error_count": 0,
  "pipeline_create_error_one": 0,
  "pipeline_create_one": 0,
  "postcommit_fail": 0,
  "precommit_fail": 0,
  "read_repairs": 0,
  "read_repairs_counter": 0,
  "read_repairs_counter_total": 0,
  "read_repairs_fallback_notfound_count": "undefined",
  "read_repairs_fallback_notfound_one": "undefined",
  "read_repairs_fallback_outofdate_count": "undefined",
  "read_repairs_fallback_outofdate_one": "undefined",
  "read_repairs_map": 0,
  "read_repairs_map_total": 0,
  "read_repairs_primary_notfound_count": "undefined",
  "read_repairs_primary_notfound_one": "undefined",
  "read_repairs_primary_outofdate_count": "undefined",
  "read_repairs_primary_outofdate_one": "undefined",
  "read_repairs_set": 0,
  "read_repairs_set_total": 0,
  "read_repairs_total": 0,
  "rebalance_delay_last": 0,
  "rebalance_delay_max": 0,
  "rebalance_delay_mean": 0,
  "rebalance_delay_min": 0,
  "rejected_handoffs": 0,
  "riak_kv_vnodeq_max": 0,
  "riak_kv_vnodeq_mean": 0,
  "riak_kv_vnodeq_median": 0,
  "riak_kv_vnodeq_min": 0,
  "riak_kv_vnodeq_total": 0,
  "riak_kv_vnodes_running": 32,
  "riak_pipe_vnodeq_max": 0,
  "riak_pipe_vnodeq_mean": 0,
  "riak_pipe_vnodeq_median": 0,
  "riak_pipe_vnodeq_min": 0,
  "riak_pipe_vnodeq_total": 0,
  "riak_pipe_vnodes_running": 32,
  "ring_creation_size": 64,
  "ring_members": [
    "riak@192.168.40.129",
    "riak@192.168.40.61"
  ],
  "ring_num_partitions": 64,
  "ring_ownership": "[{'riak@192.168.40.61',32},{'riak@192.168.40.129',32}]",
  "rings_reconciled": 0,
  "rings_reconciled_total": 57,
  "set_actor_counts_100": 0,
  "set_actor_counts_95": 0,
  "set_actor_counts_99": 0,
  "set_actor_counts_mean": 0,
  "set_actor_counts_median": 0,
  "skipped_read_repairs": 0,
  "skipped_read_repairs_total": 0,
  "storage_backend": "riak_kv_eleveldb_backend",
  "sys_driver_version": "2.2",
  "sys_global_heaps_size": "deprecated",
  "sys_heap_type": "private",
  "sys_logical_processors": 8,
  "sys_monitor_count": 344,
  "sys_otp_release": "R16B02_basho6",
  "sys_port_count": 38,
  "sys_process_count": 1213,
  "sys_smp_support": true,
  "sys_system_architecture": "x86_64-unknown-linux-gnu",
  "sys_system_version": "Erlang R16B02_basho6 (erts-5.10.3) [source-bcd8abb] [64-bit] [smp:8:8] [async-threads:64] [kernel-poll:true] [frame-pointer]",
  "sys_thread_pool_size": 64,
  "sys_threads_enabled": true,
  "sys_wordsize": 8,
  "vnode_counter_update": 0,
  "vnode_counter_update_time_100": 0,
  "vnode_counter_update_time_95": 0,
  "vnode_counter_update_time_99": 0,
  "vnode_counter_update_time_mean": 0,
  "vnode_counter_update_time_median": 0,
  "vnode_counter_update_total": 0,
  "vnode_get_fsm_time_100": 0,
  "vnode_get_fsm_time_95": 0,
  "vnode_get_fsm_time_99": 0,
  "vnode_get_fsm_time_mean": 0,
  "vnode_get_fsm_time_median": 0,
  "vnode_gets": 0,
  "vnode_gets_total": 47,
  "vnode_index_deletes": 0,
  "vnode_index_deletes_postings": 0,
  "vnode_index_deletes_postings_total": 0,
  "vnode_index_deletes_total": 0,
  "vnode_index_reads": 0,
  "vnode_index_reads_total": 0,
  "vnode_index_refreshes": 0,
  "vnode_index_refreshes_total": 0,
  "vnode_index_writes": 0,
  "vnode_index_writes_postings": 0,
  "vnode_index_writes_postings_total": 0,
  "vnode_index_writes_total": 25,
  "vnode_map_update": 0,
  "vnode_map_update_time_100": 0,
  "vnode_map_update_time_95": 0,
  "vnode_map_update_time_99": 0,
  "vnode_map_update_time_mean": 0,
  "vnode_map_update_time_median": 0,
  "vnode_map_update_total": 0,
  "vnode_put_fsm_time_100": 0,
  "vnode_put_fsm_time_95": 0,
  "vnode_put_fsm_time_99": 0,
  "vnode_put_fsm_time_mean": 0,
  "vnode_put_fsm_time_median": 0,
  "vnode_puts": 0,
  "vnode_puts_total": 25,
  "vnode_set_update": 0,
  "vnode_set_update_time_100": 0,
  "vnode_set_update_time_95": 0,
  "vnode_set_update_time_99": 0,
  "vnode_set_update_time_mean": 0,
  "vnode_set_update_time_median": 0,
  "vnode_set_update_total": 0,
  "write_once_merge": 0,
  "write_once_put_objsize_100": 0,
  "write_once_put_objsize_95": 0,
  "write_once_put_objsize_99": 0,
  "write_once_put_objsize_mean": 0,
  "write_once_put_objsize_median": 0,
  "write_once_put_time_100": 0,
  "write_once_put_time_95": 0,
  "write_once_put_time_99": 0,
  "write_once_put_time_mean": 0,
  "write_once_put_time_median": 0,
  "write_once_puts": 0,
  "write_once_puts_total": 0,
  "disk": [
    {
      "id": "/",
      "size": 20315844,
      "used": 26
    },
    {
      "id": "/var",
      "size": 106067584,
      "used": 18
    },
    {
      "id": "/kdump",
      "size": 8123168,
      "used": 2
    },
    {
      "id": "/boot",
      "size": 194442,
      "used": 11
    },
    {
      "id": "/dev/shm",
      "size": 2021672,
      "used": 0
    }
  ],
  "riak_auth_mods_version": "2.0.1-0-g31b8b30",
  "erlydtl_version": "0.7.0",
  "riak_control_version": "2.1.1-0-g5898c40",
  "cluster_info_version": "2.0.2-0-ge231144",
  "yokozuna_version": "2.1.0-0-gcb41c27",
  "ibrowse_version": "4.0.2",
  "riak_search_version": "2.0.2-0-g8fe4a8c",
  "merge_index_version": "2.0.0-0-gb701dde",
  "riak_kv_version": "2.1.0-0-g6e88b24",
  "riak_api_version": "2.1.1-2-g94a9485",
  "riak_pb_version": "2.1.0.2-0-g620bc70",
  "protobuffs_version": "0.8.1p5-0-gf88fc3c",
  "riak_dt_version": "2.1.0-2-ga2986bc",
  "sidejob_version": "2.0.0-0-gc5aabba",
  "riak_pipe_version": "2.1.0-2-gc2d7d28",
  "riak_core_version": "2.1.1-0-g429c22d",
  "exometer_core_version": "1.0.0-basho2-0-gb47a5d6",
  "poolboy_version": "0.8.1p3-0-g8bb45fb",
  "pbkdf2_version": "2.0.0-0-g7076584",
  "eleveldb_version": "2.1.0-0-ga36dbd6",
  "clique_version": "0.2.6-0-g40072d2",
  "bitcask_version": "1.7.0",
  "basho_stats_version": "1.0.3",
  "webmachine_version": "1.10.8-0-g7677c24",
  "mochiweb_version": "2.9.0",
  "inets_version": "5.9.6",
  "xmerl_version": "1.3.4",
  "erlang_js_version": "1.3.0-0-g07467d8",
  "runtime_tools_version": "1.8.12",
  "os_mon_version": "2.2.13",
  "riak_sysmon_version": "2.0.0",
  "ssl_version": "5.3.1",
  "public_key_version": "0.20",
  "crypto_version": "3.1",
  "asn1_version": "2.0.3",
  "sasl_version": "2.3.3",
  "lager_version": "2.0.3",
  "goldrush_version": "0.1.6",
  "compiler_version": "4.9.3",
  "syntax_tools_version": "1.6.11",
  "stdlib_version": "1.19.3",
  "kernel_version": "2.16.3"
}
```

## riak-admin vnode-status

各ノードの書き込み情報を確認する

```
Vnode status information
-------------------------------------------

VNode: 45671926166590716193865151022383844364247891968
Backend: riak_kv_eleveldb_backend
Status: 
[{stats,<<"                               Compactions\nLevel  Files Size(MB) Time(sec) Read(MB) Write(MB)\n--------------------------------------------------\n  0        2       33         1        0        67\n  1        2       38         1       51        21\n">>},
 {read_block_error,<<"0">>},
 {fixed_indexes,true}]
Status: 
{vnodeid,<<170,13,78,98,143,41,89,102>>}
Status: 
{counter,398432}
Status: 
{counter_lease,410000}
Status: 
{counter_lease_size,10000}
Status: 
{counter_leasing,false}
（略）
```

``
riak-admin vnode-status