Skip to content

Commit f94f125

Browse files
author
Luke Bakken
committed
Fixes #19
1 parent bf0c48c commit f94f125

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/riak_cluster_config.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function riak_cluster_config
1717

1818
set +o errexit
1919
$riak_admin bucket-type create hlls '{"props":{"datatype":"hll"}}'
20+
$riak_admin bucket-type create gsets '{"props":{"datatype":"gset"}}'
2021
$riak_admin bucket-type create write_once '{"props":{"write_once":true}}'
2122
$riak_admin bucket-type create GeoCheckin '{"props": {"n_val": 3, "table_def": "CREATE TABLE GeoCheckin (geohash varchar not null, user varchar not null, time timestamp not null, weather varchar not null, temperature double, PRIMARY KEY((geohash, user, quantum(time, 15, m)), geohash, user, time))"}}'
2223
$riak_admin bucket-type create GeoCheckin_Wide '{"props": {"n_val": 3, "table_def": "CREATE TABLE GeoCheckin_Wide (geohash varchar not null, user varchar not null, time timestamp not null, weather varchar not null, temperature double, uv_index sint64, observed boolean not null, PRIMARY KEY((geohash, user, quantum(time, 15, 'm')), geohash, user, time))"}}'
@@ -35,6 +36,7 @@ function riak_cluster_config
3536

3637
set +o errexit
3738
$riak_admin bucket-type activate hlls
39+
$riak_admin bucket-type activate gsets
3840
$riak_admin bucket-type activate write_once
3941
$riak_admin bucket-type activate GeoCheckin
4042
$riak_admin bucket-type activate GeoCheckin_Wide

0 commit comments

Comments
 (0)