API for Creation of Bucket Types

2014-10-14 Thread superstructor
Hi all, I am running Riak 2.0.1 in a Docker container on each physical host in the cluster. I need to programatically create bucket types from an application running in a separate Docker container. This was easy before using Docker, as I would just execute the riak-admin tool from my application

Solution for Riak 500 Internal Server Error

2014-10-14 Thread ayush mishra
http://www.dzone.com/links/r/solution_for_riak_500_internal_server_error.html ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Memory-backend TTL

2014-10-14 Thread Lucas Grijander
Hi Luke. An update about the memory consumption in my 1 server "cluster" after about 10 hours after my last email. Remember, with max_memory_per_vnode = 250MB and ring_size=16. Sadly, I had to restart the riak daemon: # riak-admin diag -d debug [debug] Local RPC: os:getpid([]) [5000] [debug] Runn

Riak Ruby client cannot connect to server

2014-10-14 Thread Cui Liqiang
Hi, I just started to learn Riak, but encounter a problem. I have installed Riak on my mac os using the official mac distribution. After starting the Riak server, I can interact with it via http interface properly. Then I tried using Ruby client, and problem came. Below is the code I extract

Re: Riak Ruby client cannot connect to server

2014-10-14 Thread Sean Cribbs
You are connecting the binary client to the HTTP port. Use port 8087 instead. On Tue, Oct 14, 2014 at 8:50 AM, Cui Liqiang wrote: > Hi, > > I just started to learn Riak, but encounter a problem. > > I have installed Riak on my mac os using the official mac distribution. > After starting the Riak

Re: Solution for Riak 500 Internal Server Error

2014-10-14 Thread Ryan Zezeski
On Oct 14, 2014, at 3:53 AM, ayush mishra wrote: > http://www.dzone.com/links/r/solution_for_riak_500_internal_server_error.html > ___ > I recommend _not_ using legacy Riak Search on Riak 2.x. Why was the legacy search pre-commit hook installed in

Re: Not able to store data in original riak bucket

2014-10-14 Thread Luke Bakken
Hi Ayush, By making that change, you are enabling Riak Search 1.0, which I assume you don't want to do. This is a "workaround" but not a fix. * Did you upgrade from a previous version of Riak to 2.0.1? * What client library and version of that library are you using? * Can you run this command a

Re: API for Creation of Bucket Types

2014-10-14 Thread Luke Bakken
Hi Isaac, Is the lack of shell access due to how you've configured Docker? I'm not familiar with it, however it does appear that access is possible: https://docs.docker.com/articles/basics/#running-an-interactive-shell Providing a bucket type API is planned for a future Riak 2.X release. -- Luk

Re: API for Creation of Bucket Types

2014-10-14 Thread Jon Meredith
Hi Isaac, Adding an API for bucket types is high on our list of priorities, but we do not have a timeline for availability at the moment. I'm no Docker expert either, but I wondered if you could wrap a version of riak-admin with nsenter until we deliver it? http://jpetazzo.github.io/2014/06/23/d

Re: Riak-CS Not Inheriting Permissions?

2014-10-14 Thread Valenti, Anthony
Does anyone have an idea why this is working this way or if it is functioning as designed? Am I expecting it to do something that it doesn't do? If so, then how can I get it do what I am expecting. We are running Riak-CS on version 1.4.8. Here is the situation. We have a bucket that is owned

Re: API for Creation of Bucket Types

2014-10-14 Thread John Kline
Luke, Docker interactive shells are only used when running a docker image locally for testing. When running in production Docker images typically do not run SSH server, making ssh connections to the running image impossible. Isaac, What you may consider doing is looking at using nsenter. This uti

Re: Riak-CS Not Inheriting Permissions?

2014-10-14 Thread Luke Bakken
Hi Anthony, When you put files, are you also including any ACL information? http://docs.basho.com/riakcs/latest/cookbooks/Access-Control-Lists/ -- Luke Bakken Engineer / CSE lbak...@basho.com On Tue, Oct 14, 2014 at 8:07 AM, Valenti, Anthony wrote: > Does anyone have an idea why this is worki

Re: Solution for Riak 500 Internal Server Error

2014-10-14 Thread ayush mishra
I updated it from previous version to 2.0.1. I think that might be the reason. On Tue, Oct 14, 2014 at 7:53 PM, Ryan Zezeski wrote: > > On Oct 14, 2014, at 3:53 AM, ayush mishra > wrote: > > > http://www.dzone.com/links/r/solution_for_riak_500_internal_server_error.html > __

Re: Not able to store data in original riak bucket

2014-10-14 Thread Luke Bakken
Hi Ayush, Just so I'm clear and can reproduce this: * You were using Riak 1.4 and had Riak Search enabled. * You put some data into this environment. * You then upgraded to 2.0.1 and saw the search hook being added to buckets. Thanks! -- Luke Bakken Engineer / CSE lbak...@basho.com On Tue, Oc

Re: Not able to store data in original riak bucket

2014-10-14 Thread ayush mishra
Ohhh This is the reason. Thanks Luke for finding root cause. I will take care of this in future. Since I am new to Riak, so I am not aware of this. Regards, Ayush On Tue, Oct 14, 2014 at 10:23 PM, Luke Bakken wrote: > Hi Ayush, > > Just so I'm clear and can reproduce this: > > * You were using

RE: Riak-CS Not Inheriting Permissions?

2014-10-14 Thread Valenti, Anthony
The application (VB.Net) appears to only be executing a CopyFromLocal method to upload the file and doing nothing with ACLs. So, should the application be Getting the ACL for the target folder and then applying the ACL to the file that was uploaded? -Original Message- From: Luke Bakke

Re: API for Creation of Bucket Types

2014-10-14 Thread superstructor
Thanks everyone for your replies. I have used nsenter for interactive debugging from the host, but I havn't tried to use it for intra-container shell access. I will look into it albeit not an ideal solution. Just to explore possibilities further, how does riak-admin actually communicate with the

Re: serving files from riak-cs to public via url

2014-10-14 Thread Michael Grauer
Thank you Kota, by setting content type in the boto call I got the policy to work. ... prp_json = json.dumps(public_read_policy) bucket.set_policy(prp_json, headers={'Content-Type': 'application/json'}) ... Setting read-public acl on the buckets would not work for me because that only allows th