riak-ts

DELETE a table in Riak TS

旧时模样 提交于 2019-12-24 05:55:04
问题 I am attempting to drop an entire table in RIAK TS, but nothing seems to work. I have tried both "drop table" in a standard query so (using Python): from riak import RiakClient client = RiakClient(host = '127.0.0.1') client.ts_query('ticks', 'DROP TABLE ticks') but this gives me an error that DROP is not understood. An alternative would be to delete everything in the table using client.ts_delete('ticks', ["rows"]) but this seems to need me to specify the row keys. Is there a wildcard option

Riak container does not start when its data volume is mounted

拈花ヽ惹草 提交于 2019-12-13 20:27:07
问题 The following command works perfectly and the riak service starts as expected: docker run --name=riak -d -p 8087:8087 -p 8098:8098 -v $(pwd)/schemas:/etc/riak/schema basho/riak-ts The local schemas directory is mounted successfully and the sql file in it is read by riak. However if I try to mount the riak's data or log directories, the riak service does not start and timeouts after 15 seconds: docker run --name=riak -d -p 8087:8087 -p 8098:8098 -v $(pwd)/logs:/var/log/riak -v $(pwd)/schemas: