Closed drozzy closed 7 years ago
I'm trying to connect to my hosted riak cs instance:
c = RiakClient(http_port=9980, host='111.111.111.111', protocol='http')
But how do I supply the security info provided to me by my setup instructions:
http://docs.basho.com/riak/cs/2.1.1/tutorials/fast-track/test-installation/ (use s3cmd to test) s3cmd -c ~/.s3cfgfasttrack --configure § Access Key: admin-key § Secret Key: admin-secret § Default Region: CA § Encryption password: password § Path to GPG program: /usr/bin/gpg § Use HTTPS protocol: False § HTTP Proxy server name: 111.111.111.111 § HTTP Proxy server port: 9980
I'm using the following docker container: https://hub.docker.com/r/dimagi/riak-cs/
If I try to save a key in a bucket like so:
b = c.bucket('test') val1 = 1 key1 = b.new('one', data=val1) key1.store()
I get this error: riak.riak_error.RiakError: 'Expected status [200, 201, 204, 300], received 404'
riak.riak_error.RiakError: 'Expected status [200, 201, 204, 300], received 404'
Thanks.
Hi @drozzy,
The riak-python-client is for Riak KV and Riak TS use. For Riak CS, you should use an S3 client.
Thanks, Alex
Fixed, or closed via GitHub issues.
[posted via JIRA by Alexander Moore]
I'm trying to connect to my hosted riak cs instance:
c = RiakClient(http_port=9980, host='111.111.111.111', protocol='http')
But how do I supply the security info provided to me by my setup instructions:
I'm using the following docker container: https://hub.docker.com/r/dimagi/riak-cs/
If I try to save a key in a bucket like so:
I get this error:
riak.riak_error.RiakError: 'Expected status [200, 201, 204, 300], received 404'
Thanks.