Riak 2.0
Hello, I am new to Riak. I installed riak 2.0 and it works fine if i don't turn riak search on. If riak search is turned on (from the config file), riak failed to start. Here is the message from the error log: 2014-11-15 20:27:12.736 [error] 0.538.0@yz_solr_proc:init:91 unable to locate `java` on the PATH, shutting down 2014-11-15 20:27:12.736 [error] 0.538.0 CRASH REPORT Process 0.538.0 with 0 neighbours exited with reason: unable to locate `java` on the PATH in gen_server:init_it/6 line 320 2014-11-15 20:27:12.737 [error] 0.536.0 Supervisor yz_solr_sup had child yz_solr_proc started with yz_solr_proc:start_link(/var/lib/riak/yz, 8093, 8985) at undefined exit with reason unable to locate `java` on the PATH in context start_error 2014-11-15 20:27:12.737 [error] 0.535.0 Supervisor yz_sup had child yz_solr_sup started with yz_solr_sup:start_link() at undefined exit with reason {shutdown,{failed_to_start_child,yz_solr_proc,unable to locate `java` on the PATH}} in context start_error 2014-11-15 20:27:12.737 [error] 0.533.0 CRASH REPORT Process 0.533.0 with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,yz_solr_sup,{shutdown,{failed_to_start_child,yz_solr_proc,unable to locate `java` on the PATH,{yz_app,start,[normal,[]]}} in application_master:init/4 line 133 ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Riak 2.0
Hi Sinh, Here is the relevant error message: unable to locate `java` on the PATH, shutting down Please install a Java runtime if you'd like to use search. Basho recommends the official runtime from Oracle. http://docs.basho.com/riak/latest/ops/building/installing/jvm/ -- Luke Bakken Engineer / CSE lbak...@basho.com On Sat, Nov 15, 2014 at 8:29 PM, sinh nguyen sin...@gmail.com wrote: Hello, I am new to Riak. I installed riak 2.0 and it works fine if i don't turn riak search on. If riak search is turned on (from the config file), riak failed to start. Here is the message from the error log: 2014-11-15 20:27:12.736 [error] 0.538.0@yz_solr_proc:init:91 unable to locate `java` on the PATH, shutting down 2014-11-15 20:27:12.736 [error] 0.538.0 CRASH REPORT Process 0.538.0 with 0 neighbours exited with reason: unable to locate `java` on the PATH in gen_server:init_it/6 line 320 2014-11-15 20:27:12.737 [error] 0.536.0 Supervisor yz_solr_sup had child yz_solr_proc started with yz_solr_proc:start_link(/var/lib/riak/yz, 8093, 8985) at undefined exit with reason unable to locate `java` on the PATH in context start_error 2014-11-15 20:27:12.737 [error] 0.535.0 Supervisor yz_sup had child yz_solr_sup started with yz_solr_sup:start_link() at undefined exit with reason {shutdown,{failed_to_start_child,yz_solr_proc,unable to locate `java` on the PATH}} in context start_error 2014-11-15 20:27:12.737 [error] 0.533.0 CRASH REPORT Process 0.533.0 with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,yz_solr_sup,{shutdown,{failed_to_start_child,yz_solr_proc,unable to locate `java` on the PATH,{yz_app,start,[normal,[]]}} in application_master:init/4 line 133 ___ 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: Can't delete objects being on an indexed bucket_type
Hi Alex, That's a bug in the Python client. There's an existing issue on the repo for it: https://github.com/basho/riak-python-client/issues/365 In the meantime, here's a workaround: from riak.riak_object import RiakObject RiakObject(bucket, 'testkey').delete() Sorry for the inconvenience. On Sat, Nov 15, 2014 at 5:54 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I created an index and a MAP bucket-type in the following way: curl -XPUT http://x.x.x.x:8098/search/index/ix_users; riak-admin bucket-type create tp_users '{props: {allow_mult:true,search_index:ix_users,datatype:map}}' riak-admin bucket-type activate tp_users Then I saved some data and is working fine; but when I try to delete a key, I get a nasty error; what am I doing wrong?: import riak client = riak.RiakClient(protocol = 'pbc', nodes = [{'host': 'x.x.x.x', 'http_port': 8098, 'pb_port': 8087}]) bucket = client.bucket_type('tp_users').bucket('users') bucket.delete('testkey') Output of the script: Traceback (most recent call last): File x.py, line 6, in module bucket.delete('testkey') File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' This are my riak and python client versions: ~ # pip show riak --- Name: riak Version: 2.1.0 Location: /usr/local/lib/python2.7/dist-packages Requires: riak-pb, pyOpenSSL ~ # riak version 2.0.2 Thanks, Alex ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- Sean Cribbs s...@basho.com Sr. Software Engineer 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: Can't delete objects being on an indexed bucket_type
Hi Sean, Seams that the workaround suggested hits the same error: Traceback (most recent call last): File x.py, line 9, in module RiakObject(bucket, 'testkey').delete() File /usr/local/lib/python2.7/dist-packages/riak/riak_object.py, line 335, in delete timeout=timeout) File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' Thanks, Alex On Sun, Nov 16, 2014 at 8:02 PM, Sean Cribbs s...@basho.com wrote: Hi Alex, That's a bug in the Python client. There's an existing issue on the repo for it: https://github.com/basho/riak-python-client/issues/365 In the meantime, here's a workaround: from riak.riak_object import RiakObject RiakObject(bucket, 'testkey').delete() Sorry for the inconvenience. On Sat, Nov 15, 2014 at 5:54 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I created an index and a MAP bucket-type in the following way: curl -XPUT http://x.x.x.x:8098/search/index/ix_users; riak-admin bucket-type create tp_users '{props: {allow_mult:true,search_index:ix_users,datatype:map}}' riak-admin bucket-type activate tp_users Then I saved some data and is working fine; but when I try to delete a key, I get a nasty error; what am I doing wrong?: import riak client = riak.RiakClient(protocol = 'pbc', nodes = [{'host': 'x.x.x.x', 'http_port': 8098, 'pb_port': 8087}]) bucket = client.bucket_type('tp_users').bucket('users') bucket.delete('testkey') Output of the script: Traceback (most recent call last): File x.py, line 6, in module bucket.delete('testkey') File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' This are my riak and python client versions: ~ # pip show riak --- Name: riak Version: 2.1.0 Location: /usr/local/lib/python2.7/dist-packages Requires: riak-pb, pyOpenSSL ~ # riak version 2.0.2 Thanks, Alex ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- Sean Cribbs s...@basho.com Sr. Software Engineer 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: Can't delete objects being on an indexed bucket_type
Sorry, I made a mistake in the example. Try this: RiakObject(bucket._client, bucket, 'testkey').delete() On Sun, Nov 16, 2014 at 3:15 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Sean, Seams that the workaround suggested hits the same error: Traceback (most recent call last): File x.py, line 9, in module RiakObject(bucket, 'testkey').delete() File /usr/local/lib/python2.7/dist-packages/riak/riak_object.py, line 335, in delete timeout=timeout) File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' Thanks, Alex On Sun, Nov 16, 2014 at 8:02 PM, Sean Cribbs s...@basho.com wrote: Hi Alex, That's a bug in the Python client. There's an existing issue on the repo for it: https://github.com/basho/riak-python-client/issues/365 In the meantime, here's a workaround: from riak.riak_object import RiakObject RiakObject(bucket, 'testkey').delete() Sorry for the inconvenience. On Sat, Nov 15, 2014 at 5:54 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I created an index and a MAP bucket-type in the following way: curl -XPUT http://x.x.x.x:8098/search/index/ix_users; riak-admin bucket-type create tp_users '{props: {allow_mult:true,search_index:ix_users,datatype:map}}' riak-admin bucket-type activate tp_users Then I saved some data and is working fine; but when I try to delete a key, I get a nasty error; what am I doing wrong?: import riak client = riak.RiakClient(protocol = 'pbc', nodes = [{'host': 'x.x.x.x', 'http_port': 8098, 'pb_port': 8087}]) bucket = client.bucket_type('tp_users').bucket('users') bucket.delete('testkey') Output of the script: Traceback (most recent call last): File x.py, line 6, in module bucket.delete('testkey') File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' This are my riak and python client versions: ~ # pip show riak --- Name: riak Version: 2.1.0 Location: /usr/local/lib/python2.7/dist-packages Requires: riak-pb, pyOpenSSL ~ # riak version 2.0.2 Thanks, Alex ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- Sean Cribbs s...@basho.com Sr. Software Engineer Basho Technologies, Inc. http://basho.com/ -- Sean Cribbs s...@basho.com Sr. Software Engineer 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: bitcask io mode
Oleksiy Krivoshey oleks...@gmail.com wrote: ok Thanks! What kind of negative impact can the NIF mode cause on ok Bitcask? Please see the Long-running NIFs section of http://www.erlang.org/doc/man/erl_nif.html ... and NIF execution blocks the Erlang scheduler thread until the NIF is finished. -Scott ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
How to change riak storage backend property using Scala/Java code
http://stackoverflow.com/questions/26966032/how-to-change-riak-storage-backend-property-using-scala-java-code# Is there any way to override riak default property using Scala/Java code? {riak_kv, [ ..., {storage_backend, riak_kv_memory_backend}, ... ]} ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Can't delete objects being on an indexed bucket_type
Yeah! this time worked :) thanks! Any ideas when a new release for the Python client coming with that bug fixed? Thanks, Alex On Mon, Nov 17, 2014 at 2:02 AM, Sean Cribbs s...@basho.com wrote: Sorry, I made a mistake in the example. Try this: RiakObject(bucket._client, bucket, 'testkey').delete() On Sun, Nov 16, 2014 at 3:15 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Sean, Seams that the workaround suggested hits the same error: Traceback (most recent call last): File x.py, line 9, in module RiakObject(bucket, 'testkey').delete() File /usr/local/lib/python2.7/dist-packages/riak/riak_object.py, line 335, in delete timeout=timeout) File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' Thanks, Alex On Sun, Nov 16, 2014 at 8:02 PM, Sean Cribbs s...@basho.com wrote: Hi Alex, That's a bug in the Python client. There's an existing issue on the repo for it: https://github.com/basho/riak-python-client/issues/365 In the meantime, here's a workaround: from riak.riak_object import RiakObject RiakObject(bucket, 'testkey').delete() Sorry for the inconvenience. On Sat, Nov 15, 2014 at 5:54 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I created an index and a MAP bucket-type in the following way: curl -XPUT http://x.x.x.x:8098/search/index/ix_users; riak-admin bucket-type create tp_users '{props: {allow_mult:true,search_index:ix_users,datatype:map}}' riak-admin bucket-type activate tp_users Then I saved some data and is working fine; but when I try to delete a key, I get a nasty error; what am I doing wrong?: import riak client = riak.RiakClient(protocol = 'pbc', nodes = [{'host': 'x.x.x.x', 'http_port': 8098, 'pb_port': 8087}]) bucket = client.bucket_type('tp_users').bucket('users') bucket.delete('testkey') Output of the script: Traceback (most recent call last): File x.py, line 6, in module bucket.delete('testkey') File /usr/local/lib/python2.7/dist-packages/riak/bucket.py, line 539, in delete return self.new(key).delete(**kwargs) AttributeError: 'Map' object has no attribute 'delete' This are my riak and python client versions: ~ # pip show riak --- Name: riak Version: 2.1.0 Location: /usr/local/lib/python2.7/dist-packages Requires: riak-pb, pyOpenSSL ~ # riak version 2.0.2 Thanks, Alex ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- Sean Cribbs s...@basho.com Sr. Software Engineer Basho Technologies, Inc. http://basho.com/ -- Sean Cribbs s...@basho.com Sr. Software Engineer 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