Re: my cluster spontaneously loses a node after ~48hrs

2015-05-12 Thread Jason Golubock


Bryan- thanks for this tip,
i probably wouldn't have suspected ulimit.

It's been 4 days now since my last restart, which i've never reached 
before.

so i'm cautious to say that the problem has gone away.

i suspect this progress is due to some library updates
we performed on the hosts. it turns out some of them were out
of date, which i wan't aware of.  we updated them all at once,
so there's no way to identify which one(s) caused the problem,
assuming that was the problem. hopeful now,

~ Jason



On 12.05.2015 05:37, Bryan Hunt wrote:

Also ensure ulimit is set according to the recommendations on
docs.basho.com. ulimit set too low is a common cause of node 
termination.

On 5 May 2015 21:23, Jason Golubock ja...@soundhound.com wrote:



Scott - thanks for the response,
yes i've used all those tools at one point, but i'm not sure
exactly what i'm looking for or what to do with the output.

i've restarted my cluster again but next time it happens,
i'll attach some output/snapshot files.

~ Jason






On 04.05.2015 19:32, Scott Lystig Fritchie wrote:

Hi, Jason.  Have you tried using the system inspection utilities 
bundled

with Riak?

http://docs.basho.com/riak/latest/ops/running/tools/riak-admin/#top

http://docs.basho.com/riak/latest/ops/running/tools/riak-admin/#cluster-info

http://docs.basho.com/riak/latest/ops/upgrading/production-checklist/#Confirming-Configuration-with-Riaknostic

The top utility can show very quickly the most active processes 
within

the virtual machine.

-Scott




___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: How to retrieve an image from Riak using UGameDB

2015-05-12 Thread Bryan Hunt
Didn't realise Chris and Christopher had already replied to this.
On 12 May 2015 13:25, Bryan Hunt bh...@basho.com wrote:

 Hi Syed. I can't comment upon UGameDB but generally speaking you will need
 to set a content-type header indicating the mime type. For a JPEG image
 that type would be image/jpeg for a PNG it would be image/png. Riak just
 regards data as opaque blobs so it is probably defaulting to text/plain.
 Take a look at the examples on the docs website -
 http://docs.basho.com/riak/latest/dev/using/basics/
 On 11 May 2015 05:28, syed shabeer shabeer.s...@gmail.com wrote:

 I am new to Riak and UGameDB, seeking help to retrieve image stored in
 Riak using UGameDB.
 I've used Bucket.Set(key,object) and inside the object i am passing an
 image.
 When i retrieve the key values using Bucket.Get(Key), i see the values in
 ASCII.
 Please let me know the correct approach to retrieve the image.

 Thank you

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: No WM route

2015-05-12 Thread Bryan Hunt
Hi Amit. Did you resolve your issue?
On 23 Apr 2015 16:46, Amit Anand aan...@viimed.com wrote:

 Hi all Im very new to Riak CS so please bear with me! Finally managed to
 get Riak, Riak CS and Stanchion all running and now Im trying to add the
 admin user. When I run my curl command I get nothing back and in the logs I
 see this error:

 2015-04-23 11:37:18.024 [error] 0.94.0 No WM route: 'POST' /riak-cs/user
 {7,{user-agent,{'User-Agent',curl/7.29.0},{host,{'Host',
 10.7.2.113:8080
 },{accept,{'Accept',*/*},nil,{content-type,{'Content-Type',application/json},{content-length,{'Content-Length',45},nil,nil},nil}},nil},{x-rcs-rewrite-path,{x-rcs-rewrite-path,/riak-cs/user},{x-rcs-raw-url,{x-rcs-raw-url,/riak-cs/user},nil,nil},nil}}}


 I have set anonymous user to on in the riak-cs.conf AS WELL as to true in
 the advanced.config. I tried with just in .conf and that didnt work either.
 Would anybody have any ideas on how to get this work I would really
 appreciate it. Thanks and sorry if Im asking a basic question I just cant
 figure it out.

 Im running CentOS 7 and:

 [root@riakcs riak-cs]# riak version
 2.1.0
 [root@riakcs riak-cs]# riak-cs version
 2.0.0
 [root@riakcs riak-cs]# stanchion version
 2.0.0


 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: How to retrieve an image from Riak using UGameDB

2015-05-12 Thread Bryan Hunt
Hi Syed. I can't comment upon UGameDB but generally speaking you will need
to set a content-type header indicating the mime type. For a JPEG image
that type would be image/jpeg for a PNG it would be image/png. Riak just
regards data as opaque blobs so it is probably defaulting to text/plain.
Take a look at the examples on the docs website -
http://docs.basho.com/riak/latest/dev/using/basics/
On 11 May 2015 05:28, syed shabeer shabeer.s...@gmail.com wrote:

 I am new to Riak and UGameDB, seeking help to retrieve image stored in
 Riak using UGameDB.
 I've used Bucket.Set(key,object) and inside the object i am passing an
 image.
 When i retrieve the key values using Bucket.Get(Key), i see the values in
 ASCII.
 Please let me know the correct approach to retrieve the image.

 Thank you

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Java client 1.1.4 and headOnly() in domain buckets

2015-05-12 Thread Bryan Hunt
Hi Daniel, do you have reasons not to upgrade to the latest driver. I know
the semantics have changed somewhat. Are you running a fork of the client?
Bryan
On 12 May 2015 00:40, Daniel Iwan iwan.dan...@gmail.com wrote:

 Hi all

 Am I right thinking that v1.1.4 does not support headOnly() on domain
 buckets?

 During domain.fetch()  line 237 in

 https://github.com/basho/riak-java-client/blob/1.1.4/src/main/java/com/basho/riak/client/bucket/DomainBucket.java

 there is no check/call headOnly() on FetchMeta object.


 Code snippet

 public T fetch(String key) throws RiakException {
 final FetchObjectT fo = bucket.fetch(key, clazz)
 .withConverter(converter)
 .withResolver(resolver)
 .withRetrier(retrier);

 if (fetchMeta.hasR()) {
 fo.r(fetchMeta.getR());
 }

 if (fetchMeta.hasPr()) {
 fo.pr(fetchMeta.getPr());
 }

 if (fetchMeta.hasBasicQuorum()) {
 fo.basicQuorum(fetchMeta.getBasicQuorum());
 }

 if (fetchMeta.hasNotFoundOk()) {
 fo.notFoundOK(fetchMeta.getNotFoundOK());
 }

 if (fetchMeta.hasReturnDeletedVClock()) {
 fo.returnDeletedVClock(fetchMeta.getReturnDeletedVClock());
 }
 return fo.execute();
 }



 --
 View this message in context:
 http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042.html
 Sent from the Riak Users mailing list archive at Nabble.com.

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: my cluster spontaneously loses a node after ~48hrs

2015-05-12 Thread Bryan Hunt
Also ensure ulimit is set according to the recommendations on
docs.basho.com. ulimit set too low is a common cause of node termination.
On 5 May 2015 21:23, Jason Golubock ja...@soundhound.com wrote:


 Scott - thanks for the response,
 yes i've used all those tools at one point, but i'm not sure
 exactly what i'm looking for or what to do with the output.

 i've restarted my cluster again but next time it happens,
 i'll attach some output/snapshot files.

 ~ Jason






 On 04.05.2015 19:32, Scott Lystig Fritchie wrote:

 Hi, Jason.  Have you tried using the system inspection utilities bundled
 with Riak?

 http://docs.basho.com/riak/latest/ops/running/tools/riak-admin/#top

 http://docs.basho.com/riak/latest/ops/running/tools/riak-admin/#cluster-info

 http://docs.basho.com/riak/latest/ops/upgrading/production-checklist/#Confirming-Configuration-with-Riaknostic

 The top utility can show very quickly the most active processes within
 the virtual machine.

 -Scott



 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Java client 1.1.4 and headOnly() in domain buckets

2015-05-12 Thread Daniel Iwan
We are using official 1.1.4 which is the latest recommended with Riak 1.3 we
have installed.
Upgrade to Riak 1.4 is not possible at the moment.

D.



--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042p4033048.html
Sent from the Riak Users mailing list archive at Nabble.com.

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: No WM route

2015-05-12 Thread Charlie Voiselle
This error is usually caused when `admin.listener` is configured in
riak-cs.conf.  Either remove that line from the configuration file, or use
that IP and port for your create user request.

Please let me know if that helps you out

Charlie Voiselle
Basho Client Services
On Apr 23, 2015 8:46 AM, Amit Anand aan...@viimed.com wrote:

 Hi all Im very new to Riak CS so please bear with me! Finally managed to
 get Riak, Riak CS and Stanchion all running and now Im trying to add the
 admin user. When I run my curl command I get nothing back and in the logs I
 see this error:

 2015-04-23 11:37:18.024 [error] 0.94.0 No WM route: 'POST' /riak-cs/user
 {7,{user-agent,{'User-Agent',curl/7.29.0},{host,{'Host',
 10.7.2.113:8080
 },{accept,{'Accept',*/*},nil,{content-type,{'Content-Type',application/json},{content-length,{'Content-Length',45},nil,nil},nil}},nil},{x-rcs-rewrite-path,{x-rcs-rewrite-path,/riak-cs/user},{x-rcs-raw-url,{x-rcs-raw-url,/riak-cs/user},nil,nil},nil}}}


 I have set anonymous user to on in the riak-cs.conf AS WELL as to true in
 the advanced.config. I tried with just in .conf and that didnt work either.
 Would anybody have any ideas on how to get this work I would really
 appreciate it. Thanks and sorry if Im asking a basic question I just cant
 figure it out.

 Im running CentOS 7 and:

 [root@riakcs riak-cs]# riak version
 2.1.0
 [root@riakcs riak-cs]# riak-cs version
 2.0.0
 [root@riakcs riak-cs]# stanchion version
 2.0.0


 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com