Re: [Announcement] Riak 2.1 - Features & Release Notes

2015-04-16 Thread Sean Cribbs
Alex,

We require bucket types for the write-once feature for the same reason we
require them for datatypes or strong consistency: this is a property that
changing after data has been written could have undefined behavior. Making
there be an explicit creation/activation of the bucket-type ensures that
the behavior on the namespace created by the bucket-type never changes.
However, old or "default" buckets may be changed at any time -- meaning we
can't ensure safety of any property changes.

On Thu, Apr 16, 2015 at 3:50 PM, Alex De la rosa 
wrote:

> "The write_once property is applied to a bucket type"... why only on
> bucket types?
>
> ex: RIAK.bucket_type('my_type').bucket('my_bucket').get('my_key')
>
> Normally I use bucket types to use mutable data like Maps/Sets/Counters...
> so I can update its contents (multiple writes) and when I have static data
> I use a basic buckets:
>
> ex: RIAK.bucket('my_bucket').get('my_key')
>
> It makes much more sense to me to have write_once capabilities in this
> kind of bucket that not in a bucket type bucket. I can imagine the use of a
> bucket type just for indexing data in Solr and not change it... but I think
> simple buckets would benefit of this feature even more.
>
> Thanks!
> Alex
>
> On Thu, Apr 16, 2015 at 10:40 PM, Matthew Brender 
> wrote:
>
>> Riak 2.1 is available [1]! Let’s start with the most fun part.
>>
>>
>> ## New Feature
>> Riak 2.1 introduces the concept of “write once” buckets, buckets whose
>> entries are intended to be written exactly once, and never updated or
>> over-written. The write_once property is applied to a bucket type and
>> may only be set at bucket creation time. This allows Riak to avoid a
>> "read before write" for write_once buckets only. More information, as
>> always, is available in the docs [2]
>>
>>
>> ## Other updates
>> There are a number of GitHub Issues closed with the 2.1 release. Some
>> noteworthy updates:
>>
>> * A nice solution for a corner case that could result in data loss [3]
>> * A public API related to riak_core_ring_manager thanks to Darach Ennis!
>> [4]
>> * A JSON writer for a number of riak_admin commands - see commit for
>> details [5]
>> * Updates to Yokozuna (Riak’s Solr integration) that include
>> additional metrics thanks to Jon Anderson! [6]
>>
>> Be sure to see the full Release Notes here [7] and the Product Advisories
>> [8].
>>
>> ## Upgrading
>> Be sure to review documentation [7] before an upgrade. It’s worth
>> noting that all nodes in a cluster must be at 2.1 before you set the
>> write_once property on a bucket.
>>
>> It’s worth noting that there is a known issue with Yokozuna that
>> causes entry loss on AAE activity [9]. Please keep this in mind before
>> upgrading.
>>
>>
>> ## Feedback please
>> Do you have a use case where write_once could be helpful? Please reply
>> to me directly! I would love to learn about your environment and be
>> able to share more details with you.
>>
>> Thanks,
>> Matt
>> Developer Advocate
>> twitter.com/mjbrender
>>
>>
>> [1] http://docs.basho.com/riak/latest/downloads/
>> [2] http://docs.basho.com/riak/latest/dev/advanced/write-once
>> [3] https://github.com/basho/riak_kv/issues/679
>> [4] https://github.com/basho/riak_core/pull/716
>> [5]
>> https://github.com/basho/clique/commit/0560e7a135d9a1e77646384681ae88baf0cba31a
>> [6] https://github.com/basho/riak_kv/pull/855
>> [7] https://github.com/basho/riak/blob/develop/RELEASE-NOTES.md
>> [8] http://docs.basho.com/riak/latest/community/product-advisories/
>> [9] https://github.com/basho/yokozuna/issues/481
>> ᐧ
>>
>> ___
>> 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
>
>


-- 
Sean Cribbs 
Technical Lead, Riak
Basho Technologies, Inc.
http://basho.com/
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Android client, Riak server

2015-04-16 Thread Gusti Gonzalez

Thanks for your answers.

Good point noticed about the middleware.

May I ask what middleware would you suggest to be evaluated?

Regards,
Gustavo


El 16/04/15 a las 16:38, John Daily escribió:

Agreed: exposing any database directly to the Internet is risky, and Riak’s 
security introduced in 2.0 doesn’t really change that.

-John

On Apr 16, 2015, at 4:25 PM, Alexander Sicular  wrote:


That should work but are you sure you want to expose your riak server to the 
Internet? I would recommend against that and instead suggest your app talk to 
some middleware.

-Alexander

@siculars
http://siculars.posthaven.com

Sent from my iRotaryPhone


On Apr 14, 2015, at 12:54, Gustavo Gonzalez  wrote:

Hi,

Please excuse me if I am asking a silly question.

Is the Riak Java Client also usable (applies to) in Android application 
development?

That is, if I want to develop an Android app that connects to a Riak Server, do 
I use this riak-Java-Client?

Thanks for your reply.

Regards,
Gustavo.

___
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: [Announcement] Riak 2.1 - Features & Release Notes

2015-04-16 Thread Alex De la rosa
"The write_once property is applied to a bucket type"... why only on bucket
types?

ex: RIAK.bucket_type('my_type').bucket('my_bucket').get('my_key')

Normally I use bucket types to use mutable data like Maps/Sets/Counters...
so I can update its contents (multiple writes) and when I have static data
I use a basic buckets:

ex: RIAK.bucket('my_bucket').get('my_key')

It makes much more sense to me to have write_once capabilities in this kind
of bucket that not in a bucket type bucket. I can imagine the use of a
bucket type just for indexing data in Solr and not change it... but I think
simple buckets would benefit of this feature even more.

Thanks!
Alex

On Thu, Apr 16, 2015 at 10:40 PM, Matthew Brender 
wrote:

> Riak 2.1 is available [1]! Let’s start with the most fun part.
>
>
> ## New Feature
> Riak 2.1 introduces the concept of “write once” buckets, buckets whose
> entries are intended to be written exactly once, and never updated or
> over-written. The write_once property is applied to a bucket type and
> may only be set at bucket creation time. This allows Riak to avoid a
> "read before write" for write_once buckets only. More information, as
> always, is available in the docs [2]
>
>
> ## Other updates
> There are a number of GitHub Issues closed with the 2.1 release. Some
> noteworthy updates:
>
> * A nice solution for a corner case that could result in data loss [3]
> * A public API related to riak_core_ring_manager thanks to Darach Ennis!
> [4]
> * A JSON writer for a number of riak_admin commands - see commit for
> details [5]
> * Updates to Yokozuna (Riak’s Solr integration) that include
> additional metrics thanks to Jon Anderson! [6]
>
> Be sure to see the full Release Notes here [7] and the Product Advisories
> [8].
>
> ## Upgrading
> Be sure to review documentation [7] before an upgrade. It’s worth
> noting that all nodes in a cluster must be at 2.1 before you set the
> write_once property on a bucket.
>
> It’s worth noting that there is a known issue with Yokozuna that
> causes entry loss on AAE activity [9]. Please keep this in mind before
> upgrading.
>
>
> ## Feedback please
> Do you have a use case where write_once could be helpful? Please reply
> to me directly! I would love to learn about your environment and be
> able to share more details with you.
>
> Thanks,
> Matt
> Developer Advocate
> twitter.com/mjbrender
>
>
> [1] http://docs.basho.com/riak/latest/downloads/
> [2] http://docs.basho.com/riak/latest/dev/advanced/write-once
> [3] https://github.com/basho/riak_kv/issues/679
> [4] https://github.com/basho/riak_core/pull/716
> [5]
> https://github.com/basho/clique/commit/0560e7a135d9a1e77646384681ae88baf0cba31a
> [6] https://github.com/basho/riak_kv/pull/855
> [7] https://github.com/basho/riak/blob/develop/RELEASE-NOTES.md
> [8] http://docs.basho.com/riak/latest/community/product-advisories/
> [9] https://github.com/basho/yokozuna/issues/481
> ᐧ
>
> ___
> 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


[Announcement] Riak 2.1 - Features & Release Notes

2015-04-16 Thread Matthew Brender
Riak 2.1 is available [1]! Let’s start with the most fun part.


## New Feature
Riak 2.1 introduces the concept of “write once” buckets, buckets whose
entries are intended to be written exactly once, and never updated or
over-written. The write_once property is applied to a bucket type and
may only be set at bucket creation time. This allows Riak to avoid a
"read before write" for write_once buckets only. More information, as
always, is available in the docs [2]


## Other updates
There are a number of GitHub Issues closed with the 2.1 release. Some
noteworthy updates:

* A nice solution for a corner case that could result in data loss [3]
* A public API related to riak_core_ring_manager thanks to Darach Ennis! [4]
* A JSON writer for a number of riak_admin commands - see commit for details [5]
* Updates to Yokozuna (Riak’s Solr integration) that include
additional metrics thanks to Jon Anderson! [6]

Be sure to see the full Release Notes here [7] and the Product Advisories [8].

## Upgrading
Be sure to review documentation [7] before an upgrade. It’s worth
noting that all nodes in a cluster must be at 2.1 before you set the
write_once property on a bucket.

It’s worth noting that there is a known issue with Yokozuna that
causes entry loss on AAE activity [9]. Please keep this in mind before
upgrading.


## Feedback please
Do you have a use case where write_once could be helpful? Please reply
to me directly! I would love to learn about your environment and be
able to share more details with you.

Thanks,
Matt
Developer Advocate
twitter.com/mjbrender


[1] http://docs.basho.com/riak/latest/downloads/
[2] http://docs.basho.com/riak/latest/dev/advanced/write-once
[3] https://github.com/basho/riak_kv/issues/679
[4] https://github.com/basho/riak_core/pull/716
[5] 
https://github.com/basho/clique/commit/0560e7a135d9a1e77646384681ae88baf0cba31a
[6] https://github.com/basho/riak_kv/pull/855
[7] https://github.com/basho/riak/blob/develop/RELEASE-NOTES.md
[8] http://docs.basho.com/riak/latest/community/product-advisories/
[9] https://github.com/basho/yokozuna/issues/481
ᐧ

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


Re: Android client, Riak server

2015-04-16 Thread John Daily
Agreed: exposing any database directly to the Internet is risky, and Riak’s 
security introduced in 2.0 doesn’t really change that.

-John

On Apr 16, 2015, at 4:25 PM, Alexander Sicular  wrote:

> That should work but are you sure you want to expose your riak server to the 
> Internet? I would recommend against that and instead suggest your app talk to 
> some middleware. 
> 
> -Alexander
> 
> @siculars
> http://siculars.posthaven.com
> 
> Sent from my iRotaryPhone
> 
>> On Apr 14, 2015, at 12:54, Gustavo Gonzalez  wrote:
>> 
>> Hi,
>> 
>> Please excuse me if I am asking a silly question.
>> 
>> Is the Riak Java Client also usable (applies to) in Android application 
>> development?
>> 
>> That is, if I want to develop an Android app that connects to a Riak Server, 
>> do I use this riak-Java-Client?
>> 
>> Thanks for your reply.
>> 
>> Regards,
>> Gustavo.
>> 
>> ___
>> 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: Android client, Riak server

2015-04-16 Thread Alexander Sicular
That should work but are you sure you want to expose your riak server to the 
Internet? I would recommend against that and instead suggest your app talk to 
some middleware. 

-Alexander

@siculars
http://siculars.posthaven.com

Sent from my iRotaryPhone

> On Apr 14, 2015, at 12:54, Gustavo Gonzalez  wrote:
> 
> Hi,
> 
> Please excuse me if I am asking a silly question.
> 
> Is the Riak Java Client also usable (applies to) in Android application 
> development?
> 
> That is, if I want to develop an Android app that connects to a Riak Server, 
> do I use this riak-Java-Client?
> 
> Thanks for your reply.
> 
> Regards,
> Gustavo.
> 
> ___
> 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


Android client, Riak server

2015-04-16 Thread Gustavo Gonzalez

Hi,

Please excuse me if I am asking a silly question.

Is the Riak Java Client also usable (applies to) in Android application 
development?


That is, if I want to develop an Android app that connects to a Riak 
Server, do I use this riak-Java-Client?


Thanks for your reply.

Regards,
Gustavo.

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


Re: Riak 2.0 Pre/Post commit -- SOLVED!!!

2015-04-16 Thread Humberto Rodriguez
Hi everyone,

  I received a lot of help from the linkedin page of Riak and the #riak IRC 
room on irc.freenode.net 
.
 I am using Mac OS 10.10 and the solution was to remove the firts slash from 
"/tmp/beams/" and it works, "tmp/beams/“.

Thanks for you help,
 
--- Humberto



> On 06 Apr 2015, at 16:44, Humberto Rodriguez  wrote:
> 
> Hello everyone! 
> 
> I am new using Riak 2.0. I am trying to put some hooks to my buckets but 
> every time that I add the path to my advanced.config file, and restart, it 
> doesn't work :(
> 
> Any help? I am following the documentation of Basho but nothing.
> 
> Anyone can send an example of the right configuration?
> 
> Thanks in advance,
> Humberto

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


Re: object sizes

2015-04-16 Thread Alex De la rosa
Hi Matthew,

Thanks for your answer : ) i always have interesting questions : P

about point [2]... if you see my examples, i'm already using
sys.getsizeof()... but sizes are not so accurate, also, I believe that is
the size they take on RAM when loaded by Python and not the full exact size
of the object (specially on Maps that differs quite some).

I will open the ticket then : ) I think it can be very helpful future
feature.

Thanks,
Alex

On Thu, Apr 16, 2015 at 10:03 PM, Matthew Brender 
wrote:

> Hi Alex,
>
> That is an interesting question! I haven't seen a request like that in
> our backlog, so feel free to open a new issue [1]. I'm curious: why
> not use something like sys.getsizeof [2]?
>
> [1] https://github.com/basho/riak-python-client/issues
> [2]
> http://stackoverflow.com/questions/449560/how-do-i-determine-the-size-of-an-object-in-python
>
> Matt Brender | Developer Advocacy Lead
> Basho Technologies
> t: @mjbrender
>
>
> On Mon, Apr 13, 2015 at 7:26 AM, Alex De la rosa
>  wrote:
> > Hi Bryan,
> >
> > Thanks for your answer; i don't know how to code in erlang, so all my
> system
> > relies on Python.
> >
> > Following Ciprian's curl suggestion, I tried to compare it with this
> python
> > code during the weekend:
> >
> > Map object:
> > curl -I
> >> 1058 bytes
> > print sys.getsizeof(obj.value)
> >> 3352 bytes
> >
> > Standard object:
> > curl -I
> >> 9718 bytes
> > print sys.getsizeof(obj.encoded_data)
> >> 9755 bytes
> >
> > The standard object seems pretty accurate in both approaches even the
> image
> > binary data was only 5kbs (I assume some overhead here)
> >
> > The map object is about 3x the difference between curl and getting the
> > object via Python.
> >
> > Not so sure if this is a realistic way to measure their growth (moreover
> > because the objects i would need this monitorization are Maps, not
> unaltered
> > binary data that I can know the size before storing it).
> >
> > Would it be possible in some way that the Python get() function would
> return
> > something like "obj.content-lenght" returning the size is currently
> taking?
> > that would be a pretty nice feature.
> >
> > Thanks!
> > Alex
> >
> > On Mon, Apr 13, 2015 at 12:47 PM, bryan hunt  wrote:
> >>
> >> Alex,
> >>
> >>
> >> Maps and Sets are stored just like a regular Riak object, but using a
> >> particular data structure and object serialization format. As you have
> >> observed, there is an overhead, and you want to monitor the growth of
> these
> >> data structures.
> >>
> >> It is possible to write a MapReduce map function (in Erlang) which
> >> retrieves a provided object by type/bucket/id and returns the size of
> it's
> >> data. Would such a thing be of use?
> >>
> >> It would not be hard to write such a module, and I might even have some
> >> code for doing so if you are interested. There are also reasonably good
> >> examples in our documentation -
> >> http://docs.basho.com/riak/latest/dev/advanced/mapreduce
> >>
> >> I haven't looked at the Python PB API in a while, but I'm reasonably
> >> certain it supports the invocation of MapReduce jobs.
> >>
> >> Bryan
> >>
> >>
> >> On 10 Apr 2015, at 13:51, Alex De la rosa 
> wrote:
> >>
> >> Also, I forgot, i'm most interested on bucket_types instead of simple
> riak
> >> buckets. Being able how my mutable data inside a MAP/SET has grown.
> >>
> >> For a traditional standard bucket I can calculate the size of what I'm
> >> sending before, so Riak won't get data bigger than 1MB. Problem arise in
> >> MAPS/SETS that can grown.
> >>
> >> Thanks,
> >> Alex
> >>
> >> On Fri, Apr 10, 2015 at 2:47 PM, Alex De la rosa <
> alex.rosa@gmail.com>
> >> wrote:
> >>>
> >>> Well... using the HTTP Rest API would make no sense when using the PB
> >>> API... would be extremely costly to maintain, also it may include some
> extra
> >>> bytes on the transport.
> >>>
> >>> I would be interested on being able to know the size via Python itself
> >>> using the PB API as I'm doing.
> >>>
> >>> Thanks anyway,
> >>> Alex
> >>>
> >>> On Fri, Apr 10, 2015 at 1:58 PM, Ciprian Manea 
> wrote:
> 
>  Hi Alex,
> 
>  You can always query the size of a riak object using `curl` and the
> REST
>  API:
> 
>  i.e. curl -I :8098/buckets/test/keys/demo
> 
> 
>  Regards,
>  Ciprian
> 
>  On Thu, Apr 9, 2015 at 12:11 PM, Alex De la rosa
>   wrote:
> >
> > Hi there,
> >
> > I'm using the python client (by the way).
> >
> > obj = RIAK.bucket('my_bucket').get('my_key')
> >
> > Is there any way to know the actual size of an object stored in Riak?
> > to make sure something mutable (like a set) didn't added up to more
> than 1MB
> > in storage size.
> >
> > Thanks!
> > Alex
> >
> > ___
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
> 
> >>>

Re: object sizes

2015-04-16 Thread Matthew Brender
Hi Alex,

That is an interesting question! I haven't seen a request like that in
our backlog, so feel free to open a new issue [1]. I'm curious: why
not use something like sys.getsizeof [2]?

[1] https://github.com/basho/riak-python-client/issues
[2] 
http://stackoverflow.com/questions/449560/how-do-i-determine-the-size-of-an-object-in-python

Matt Brender | Developer Advocacy Lead
Basho Technologies
t: @mjbrender


On Mon, Apr 13, 2015 at 7:26 AM, Alex De la rosa
 wrote:
> Hi Bryan,
>
> Thanks for your answer; i don't know how to code in erlang, so all my system
> relies on Python.
>
> Following Ciprian's curl suggestion, I tried to compare it with this python
> code during the weekend:
>
> Map object:
> curl -I
>> 1058 bytes
> print sys.getsizeof(obj.value)
>> 3352 bytes
>
> Standard object:
> curl -I
>> 9718 bytes
> print sys.getsizeof(obj.encoded_data)
>> 9755 bytes
>
> The standard object seems pretty accurate in both approaches even the image
> binary data was only 5kbs (I assume some overhead here)
>
> The map object is about 3x the difference between curl and getting the
> object via Python.
>
> Not so sure if this is a realistic way to measure their growth (moreover
> because the objects i would need this monitorization are Maps, not unaltered
> binary data that I can know the size before storing it).
>
> Would it be possible in some way that the Python get() function would return
> something like "obj.content-lenght" returning the size is currently taking?
> that would be a pretty nice feature.
>
> Thanks!
> Alex
>
> On Mon, Apr 13, 2015 at 12:47 PM, bryan hunt  wrote:
>>
>> Alex,
>>
>>
>> Maps and Sets are stored just like a regular Riak object, but using a
>> particular data structure and object serialization format. As you have
>> observed, there is an overhead, and you want to monitor the growth of these
>> data structures.
>>
>> It is possible to write a MapReduce map function (in Erlang) which
>> retrieves a provided object by type/bucket/id and returns the size of it's
>> data. Would such a thing be of use?
>>
>> It would not be hard to write such a module, and I might even have some
>> code for doing so if you are interested. There are also reasonably good
>> examples in our documentation -
>> http://docs.basho.com/riak/latest/dev/advanced/mapreduce
>>
>> I haven't looked at the Python PB API in a while, but I'm reasonably
>> certain it supports the invocation of MapReduce jobs.
>>
>> Bryan
>>
>>
>> On 10 Apr 2015, at 13:51, Alex De la rosa  wrote:
>>
>> Also, I forgot, i'm most interested on bucket_types instead of simple riak
>> buckets. Being able how my mutable data inside a MAP/SET has grown.
>>
>> For a traditional standard bucket I can calculate the size of what I'm
>> sending before, so Riak won't get data bigger than 1MB. Problem arise in
>> MAPS/SETS that can grown.
>>
>> Thanks,
>> Alex
>>
>> On Fri, Apr 10, 2015 at 2:47 PM, Alex De la rosa 
>> wrote:
>>>
>>> Well... using the HTTP Rest API would make no sense when using the PB
>>> API... would be extremely costly to maintain, also it may include some extra
>>> bytes on the transport.
>>>
>>> I would be interested on being able to know the size via Python itself
>>> using the PB API as I'm doing.
>>>
>>> Thanks anyway,
>>> Alex
>>>
>>> On Fri, Apr 10, 2015 at 1:58 PM, Ciprian Manea  wrote:

 Hi Alex,

 You can always query the size of a riak object using `curl` and the REST
 API:

 i.e. curl -I :8098/buckets/test/keys/demo


 Regards,
 Ciprian

 On Thu, Apr 9, 2015 at 12:11 PM, Alex De la rosa
  wrote:
>
> Hi there,
>
> I'm using the python client (by the way).
>
> obj = RIAK.bucket('my_bucket').get('my_key')
>
> Is there any way to know the actual size of an object stored in Riak?
> to make sure something mutable (like a set) didn't added up to more than 
> 1MB
> in storage size.
>
> Thanks!
> Alex
>
> ___
> 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
>
ᐧ

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


Re: Riak 2.0 Pre/Post commit

2015-04-16 Thread Matthew Brender
Hi Humberto,

Excuse the delay here - this question slipped through. Can you walk
through what you're trying to do?

When it comes to hook examples, the best examples are kept up-to-date
on this page [1]. I found one example from this blog post [2] which
you can jump to by searching the page for "% pre- and post-commit hook
functions."

[1] http://docs.basho.com/riak/latest/dev/using/commit-hooks
[2] http://yetanotherthought.com/riak-multinode-installation-step-by-step/

Matt Brender | Developer Advocacy Lead
Basho Technologies
t: @mjbrender


On Mon, Apr 6, 2015 at 10:44 AM, Humberto Rodriguez  wrote:
> Hello everyone!
>
> I am new using Riak 2.0. I am trying to put some hooks to my buckets but
> every time that I add the path to my advanced.config file, and restart, it
> doesn't work :(
>
> Any help? I am following the documentation of Basho but nothing.
>
> Anyone can send an example of the right configuration?
>
> Thanks in advance,
> Humberto
>
> ___
> 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: Need help getting riak started

2015-04-16 Thread Shawn Debnath
Turns out it was the nodename that was the culprit. The suffix part of the 
nodename, @cluster.example.com, needs to be resolvable to that specific host 
for ping to work. So had to switch to n...@node.cluster.example.com. Though it 
looks strange, at least the service boots up properly.

Attempted to get it to work by having cluster.example.com return  a set of IPs 
for all the riak nodes in the cluster, but that didn’t help either. In the 
perfect world, this should.

Thanks to Alex, Zeeshan, and Sean for helping out on IRC.

On 4/15/15, 11:28 PM, "Shawn Debnath" 
mailto:sh...@debnath.net>> wrote:

Just to add to this, seems like even after waiting for 15 mins, the start 
script fails because it is unable to ping the node. Tracing through the 
scripts, we arrive at the nodetool in /usr/lib/riak/erts-5.10.3/bin  which is 
calling {net_kernel:hidden_connect_node(TargetNode), net_adm:ping(TargetNode)} 
to check the status of the node and is getting {_, pang} in return. Results in 
printing out "Node 
'ria...@riak.prod.pryvy.com' not responding 
to pings." At this stage riak console is still unable to connect and still 
nothing in error or crash logs.  Any hints on how to proceed, or ways to 
collect more debug info appreciated.

On 4/15/15, 7:39 PM, "Shawn Debnath" 
mailto:sh...@debnath.net>> wrote:

System: Ubuntu 14.04.2 LTS.

From a different vm (10.IP.IP.IP2) after exposing 8087 on 10.IP.IP.IP1:
1> {ok, Pid} = riakc_pb_socket:start(“10.IP.IP.IP1", 8087).
{ok,<0.35.0>}
2> riakc_pb_socket:is_connected(Pid).
true
3>


On 4/15/15, 5:53 PM, "Jon Meredith" 
mailto:jmered...@basho.com>> wrote:

What distribution/ version of Linux are you running on the VM Shawn?

On Wed, Apr 15, 2015 at 5:11 PM, Shawn Debnath 
mailto:sh...@debnath.net>> wrote:
Hi there,

Building out a new cluster (for the first time) and package cloud pushed down 
2.1.0-1. I have gone through and installed all the necessary packages, 
configured riak through riak.conf and attempting to start the first node in the 
cluster. Unfortunately, even though the processes are running, riak-admin 
reports that no nodes are running.

root@riak-01:/etc/riak# riak-admin diag
Node is not running!
root@riak-01:/etc/riak# riak-admin status
Node is not running!

12538 ?S  0:00 /usr/lib/riak/erts-5.10.3/bin/epmd -daemon
13799 ?S  0:00 /usr/lib/riak/erts-5.10.3/bin/run_erl -daemon 
/tmp/riak// /var/log/riak exec /usr/sbin/riak console
13802 pts/2Ssl+   0:26 /usr/lib/riak/erts-5.10.3/bin/beam.smp -scl false 
-sfwi 500 -P 256000 -e 256000 -Q 65536 -A 64 -K true -W w -zdbbl 32768 -- -root 
/usr/lib/riak -progname riak -- -home /var/lib/riak -- -boot 
/usr/lib/riak/releases/2.1.0/riak -config 
/var/lib/riak/generated.configs/app.2015.04.15.22.17.00.config -setcookie riak 
-name riak...@riak.prod.pryvy.com -smp 
enable -vm_args /var/lib/riak/generated.configs/vm.2015.04.15.22.17.00.args -pa 
/usr/lib/riak/lib/basho-patches -- console
14047 ?Ss 0:00 sh -s disksup
14050 ?Ss 0:00 /usr/lib/riak/lib/os_mon-2.2.13/priv/bin/memsup
14052 ?Ss 0:00 /usr/lib/riak/lib/os_mon-2.2.13/priv/bin/cpu_sup

The config states that it should be listening on:

listener.http.internal = 127.0.0.1:8098
##listener.protobuf.internal = 10.IP.IP.IP:8087
listener.protobuf.internal = 127.0.0.1:8087

I initially had it listening to our internal network IP, but as part of 
testing, switched to localhost to see if it resolves it but alas, that’s not 
the case.

In the log directory, files crash.log and error.log are empty and the 
console.log reports things are ok:

[snip]
2015-04-15 22:17:03.386 [info] <0.7.0> Application riak_kv started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.402 [info] <0.7.0> Application merge_index started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.406 [info] <0.7.0> Application riak_search started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.421 [info] <0.7.0> Application ibrowse started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.429 [info] <0.7.0> Application yokozuna started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.434 [info] <0.7.0> Application cluster_info started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.443 [info] 
<0.192.0>@riak_core_capability:process_capability_changes:555 New capability: 
{riak_control,member_info_version} = v1
2015-04-15 22:17:03.461 [info] <0.7.0> Application riak_control started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.462 [info] <0.7.0> Application erlydtl started on node 
'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:03.485 [info] <0.7.0> Application riak_auth_mods started on 
node 'riak...@riak.prod.pryvy.com'
2015-04-15 22:17:19.618 [info] 
<0.369.0>@riak_kv_entropy_manager:perhaps_log_throttle_change:853 Changing AAE 
throttle from undefined -> 0 msec/key, based on maximum vnode mail