riak_erlang_client issue with riak_pb extension

2015-08-04 Thread Humberto Rodriguez Avila
 Hello, I have been working in a extension to riak_pb, but every time that I 
try to use my new message in my extension of riak_erlang_client I obtain this 
message "Socket error while sending riakc request: einval. Bad value on output 
port 'tcp_inet’".

 Any suggestion?

Thanks in advance,
Humberto
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


status of signature version 4 requests

2015-08-04 Thread Henrik Lund Kramshøj
Hi There

I am researching self-hosted alternatives to S3, and found Riak CS.
Setup was OK, and I currently can access the server fine with s3cmd

Unfortunately I cannot make it work with AWS SDK PHP version 3, since it
uses signature version 4.

I have done lots of trial and error, using PHP
define('AWS_KEY', 'xxx');
define('AWS_SECRET_KEY', 'xxx');
$client = new S3Client([
'credentials' => [
'key'=> AWS_KEY,
'secret' => AWS_SECRET_KEY
],
'region' => 'local',
'version' => '2006-03-01',
'endpoint' => '172.xx.x.xx:8080',
//'signature_version' => 'v4'
]);

signature_version can only be v4 or anonymous.

What is the expectation with v4 requests?

I did find the option, auth_v4_enabled:
root@riaks2:/etc/riak-cs# cat advanced.config
[
 {riak_cs, [
%%{auth_v4_enabled, true}
  ]}
].

but it ends up in error 500
""Internal Server Error""

Do I need more configuration, or is it not ready.



root@riaks2:/etc/riak-cs# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 14.04.2 LTS
Release:14.04
Codename:   trusty
root@riaks2:/etc/riak-cs# dpkg -l | egrep "riak|stanchion"
ii  riak2.0.5-1
 amd64Riak is a distributed data store
ii  riak-cs 2.0.1-1
 amd64Riak CS
ii  stanchion   2.0.0-1
 amd64Request Serialization Application

Best regards

Henrik
-- 
Henrik Lund Kramshøj, Follower of the Great Way of Unix
internet samurai cand.scient CISSP
h...@krugercorp.dk +45 2678 1919

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


Re: is it possible to use FQDN instead of IP in riak.conf for "listener.http.$name” field?

2015-08-04 Thread Geoff Clark
Can confirm, we have this set in our production cluster.

On Mon, Aug 3, 2015 at 6:31 AM, Richard Jonas <
richard.jo...@erlang-solutions.com> wrote:

> Hi Roman,
>
> my guess is that you can use 0.0.0.0 as IP address which means "listen on
> every network device", so if the IP address changes you don't need to
> change anything in the config. Please double check this.
>
> Richard
>
> On Wed, Jul 22, 2015 at 7:03 PM, Nick Marino  wrote:
>
>> Hi Roman,
>>
>> I took a quick look at the riak_api code, and unfortunately it doesn't
>> look like there's an easy way to do this right now. The code assumes you'll
>> enter an IP address, and there's no place where it would attempt to resolve
>> a hostname if you passed that in instead.
>>
>> That said, this does seem like it would be a nice feature to have, and
>> probably shouldn't be terribly difficult to implement. If you have a GitHub
>> account you could try logging a feature request under the issues section
>> for the riak_api project (https://github.com/basho/riak_api). I can't
>> make any guarantees as to whether/when anyone will have time to look into
>> it, but hopefully it's something that could be done in the short to medium
>> term. If you don't have a GitHub account and would like me to enter this
>> for you, send me an email and I can get a request filed.
>>
>> In the mean time, your best bet is probably to write a script to
>> automatically regenerate your config file with the correct IP addresses as
>> needed. Not the prettiest solution, but unfortunately that's the best
>> suggestion I have for the time being.
>>
>> Thanks,
>> Nick
>>
>> On Mon, Jul 20, 2015 at 4:48 PM, ROMAN SHESTAKOV <
>> romanshesta...@yahoo.co.uk> wrote:
>>
>>>
>>> Hello,
>>>
>>> is there any way to specify in riak.conf in field "listener.http.$name”
>>> FQDN instead of IP address?
>>>
>>> >>>listener.http.$name  This is the IP address and TCP port to which the
>>> Riak HTTP interface will bind. {"127.0.0.1",8098}<<<
>>>
>>> why is it required to use IP address instead of a host name? In my
>>> setting RIAK_KV is deployed on dynamic VMs and IP could be changed if the
>>> VM is launched on a different hypervisor.
>>>
>>> Regards, Roman
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Richard Jonas
> Erlang Solutions Hungary Kft
>
> Address:
>   Riverpark Office K.32
>   Közraktár street 32. 3/1.
>   1093 Budapest
>   Hungary
> Phone/fax:
>   +36-1-7000-654
>
> ___
> 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


Issues with spark

2015-08-04 Thread Julio Cesar Ríos Gutierrez
Hi, I want to save in riak doing
some calculus with ALS,
and query for give some suggestions,

How can I do that?
thanks in advanced


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


Re: is it possible to use FQDN instead of IP in riak.conf for "listener.http.$name” field?

2015-08-04 Thread ROMAN SHESTAKOV
thanks a lot Richard and Geoff
Regards, Roman

> On 4 Aug 2015, at 20:51, Geoff Clark  wrote:
> 
> Can confirm, we have this set in our production cluster.
> 
> On Mon, Aug 3, 2015 at 6:31 AM, Richard Jonas 
>  > wrote:
> Hi Roman,
> 
> my guess is that you can use 0.0.0.0 as IP address which means "listen on 
> every network device", so if the IP address changes you don't need to change 
> anything in the config. Please double check this.
> 
> Richard
> 
> On Wed, Jul 22, 2015 at 7:03 PM, Nick Marino  > wrote:
> Hi Roman,
> 
> I took a quick look at the riak_api code, and unfortunately it doesn't look 
> like there's an easy way to do this right now. The code assumes you'll enter 
> an IP address, and there's no place where it would attempt to resolve a 
> hostname if you passed that in instead.
> 
> That said, this does seem like it would be a nice feature to have, and 
> probably shouldn't be terribly difficult to implement. If you have a GitHub 
> account you could try logging a feature request under the issues section for 
> the riak_api project (https://github.com/basho/riak_api 
> ). I can't make any guarantees as to 
> whether/when anyone will have time to look into it, but hopefully it's 
> something that could be done in the short to medium term. If you don't have a 
> GitHub account and would like me to enter this for you, send me an email and 
> I can get a request filed. 
> 
> In the mean time, your best bet is probably to write a script to 
> automatically regenerate your config file with the correct IP addresses as 
> needed. Not the prettiest solution, but unfortunately that's the best 
> suggestion I have for the time being.
> 
> Thanks,
> Nick
> 
> On Mon, Jul 20, 2015 at 4:48 PM, ROMAN SHESTAKOV  > wrote:
> 
> Hello,
> 
> is there any way to specify in riak.conf in field "listener.http.$name” FQDN 
> instead of IP address?
> 
> >>>listener.http.$name  This is the IP address and TCP port to which the Riak 
> >>>HTTP interface will bind. {"127.0.0.1",8098}<<<
> 
> why is it required to use IP address instead of a host name? In my setting 
> RIAK_KV is deployed on dynamic VMs and IP could be changed if the VM is 
> launched on a different hypervisor.
> 
> Regards, Roman
> 
> 
> ___
> 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 
> 
> 
> 
> 
> 
> -- 
> Richard Jonas
> Erlang Solutions Hungary Kft
> 
> Address:
>   Riverpark Office K.32
>   Közraktár street 32. 3/1.
>   1093 Budapest
>   Hungary
> Phone/fax:
>   +36-1-7000-654 
> ___
> 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


Fwd: riak-users post from wang.chang...@gmail.com requires approval

2015-08-04 Thread changmao wang
-- Forwarded message --
From: changmao wang 
Date: Tue, Aug 4, 2015 at 6:37 PM
Subject: Re: riak-users post from wang.chang...@gmail.com requires approval
To: Matthew Brender 


Hi riak-users,

Thanks for your reply. However, I have some problems with my riak cluster.
It's pending on leaving status for 7 days after I removed 4 new added nodes.

root@cluster-s3-hd1:~# riak-admin member-status
= Membership
==
Status RingPendingNode
---
leaving10.9% 10.9%'riak@10.21.136.91'
leaving 9.4% 10.9%'riak@10.21.136.92'
leaving 7.8% 10.9%'riak@10.21.136.93'
leaving 7.8% 10.9%'riak@10.21.136.94'
valid  10.9% 10.9%'riak@10.21.136.66'
valid  10.9% 10.9%'riak@10.21.136.71'
valid  14.1% 10.9%'riak@10.21.136.76'
valid  17.2% 12.5%'riak@10.21.136.81'
valid  10.9% 10.9%'riak@10.21.136.86'

below is error log from riak@10.21.136.81
2015-08-04 01:04:03.883 [error]
<0.27021.262>@riak_core_handoff_sender:start_fold:262 ownership_transfer
transfer of riak_kv_vnode from 'riak@10.21.136.81'
296867520082839655260123481645494988367611297792 to 'riak@10.21.136.92'
296867520082839655260123481645494988367611297792 failed because of enotconn
2015-08-04 01:04:03.883 [error]
<0.195.0>@riak_core_handoff_manager:handle_info:289 An outbound handoff of
partition riak_kv_vnode 296867520082839655260123481645494988367611297792
was terminated for reason: {shutdown,{error,enotconn}}
2015-08-04 04:38:39.512 [error] <0.15702.1> Trailing data, discarding (2753
bytes)
2015-08-04 08:06:39.080 [error]
<0.26581.272>@riak_core_handoff_sender:start_fold:262 ownership_transfer
transfer of riak_kv_vnode from 'riak@10.21.136.81'
411047335499316445744786359201454599278231027712 to 'riak@10.21.136.93'
411047335499316445744786359201454599278231027712 failed because of enotconn
2015-08-04 08:06:39.081 [error]
<0.195.0>@riak_core_handoff_manager:handle_info:289 An outbound handoff of
partition riak_kv_vnode 411047335499316445744786359201454599278231027712
was terminated for reason: {shutdown,{error,enotconn}}
2015-08-04 18:07:53.040 [error]
<0.6973.342>@riak_api_pb_server:handle_info:141 Unrecognized message
{63685090,{error,timeout}}

Today I detached the network bond(we used the bond mode 6/0) in several
nodes of the riak cluster. After that, "ifconfig" command show decreased
"dropped" packages,
There're only 1~2 dropped network packages during the last four hours.

However, I want to know what's the status of the Riak cluster?
Currently I started riak-cs service on four new nodes. That's ok, they can
service.
how many hours those four node will take to leave the cluster?






On Tue, Aug 4, 2015 at 4:54 AM, Matthew Brender  wrote:

> Hey Amao,
>
> Excuse the delay on this message being posted. You hit our upper limit on
> size (see below). When possible, please link to a gist or another external
> service to prevent this from being filtered.
>
> Thanks for your patience!
> Matt
>
> *Matt Brender | Developer Advocacy Lead*
> Basho Technologies
> t: @mjbrender 
>
>
> On Thu, Jul 30, 2015 at 5:35 AM,  wrote:
>
>> As list administrator, your authorization is requested for the
>> following mailing list posting:
>>
>> List:riak-users@lists.basho.com
>> From:wang.chang...@gmail.com
>> Subject: riak handoff of partition error
>> Reason:  Message body is too big: 3105110 bytes with a limit of 40 KB
>>
>> At your convenience, visit:
>>
>> http://lists.basho.com/mailman/admindb/riak-users_lists.basho.com
>>
>> to approve or deny the request.
>>
>>
>> -- Forwarded message --
>> From: changmao wang 
>> To: riak-users@lists.basho.com
>> Cc:
>> Date: Thu, 30 Jul 2015 17:35:13 +0800
>> Subject: riak handoff of partition error
>> Hi Riak-users group,
>>
>> I have found some errors related to handoff of partition in
>> /etc/riak/log/errors.
>> Details are as below:
>>
>> 2015-07-30 16:04:33.643 [error]
>> <0.12872.15>@riak_core_handoff_sender:start_fold:262 ownership_transfer
>> transfer of riak_kv_vnode from 'riak@10.21.136.76'
>> 45671926166590716193865151022383844364247891968 to 'riak@10.21.136.93'
>> 45671926166590716193865151022383844364247891968 failed because of enotconn
>> 2015-07-30 16:04:33.643 [error]
>> <0.197.0>@riak_core_handoff_manager:handle_info:289 An outbound handoff of
>> partition riak_kv_vnode 45671926166590716193865151022383844364247891968 was
>> terminated for reason: {shutdown,{error,enotconn}}
>>
>>
>>
>> I have searched it with google and found related articles. However,
>> there's no solution.
>>
>> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2014-October/016052.html
>>
>> Attached is my riak-diag command log.
>>
>> Could you take a look at it?
>> --
>> Amao Wang
>> Best & Regards
>>
>>
>> --