Error When Creating an Erlang Riak Object
Hi, I am following the README found here: http://www.bitbucket.org/basho/riak/src/tip/README I have gotten the latest version of Erlang (5.7.5), installed Riak, set up the client connection. But, when I try to create a new object following the README guidelines, I receive an error. (riakt...@127.0.0.1)6> O0 = riak_object:new("groceries", "mine", ["bread"]). ** exception error: no function clause matching riak_object:new("groceries", "mine", ["bread"]) Any suggestions much appreciated. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Error When Creating an Erlang Riak Object
Hi Ted, The bucket and key should be in binary which is <<"groceries">> and <<"mine">> -Abe On 7 May 2010 19:45, Ted Karmel wrote: > Hi, > > I am following the README found here: > http://www.bitbucket.org/basho/riak/src/tip/README > > I have gotten the latest version of Erlang (5.7.5), installed Riak, > set up the client connection. > > But, when I try to create a new object following the README > guidelines, I receive an error. > > (riakt...@127.0.0.1)6> O0 = riak_object:new("groceries", "mine", > ["bread"]). > > ** exception error: no function clause matching > riak_object:new("groceries", "mine", ["bread"]) > > > Any suggestions much appreciated. > > ___ > 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: Error When Creating an Erlang Riak Object
Thanks Abe! That solved the error. The readme should perhaps be updated to reflect this ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Error When Creating an Erlang Riak Object
On Fri, May 7, 2010 at 8:43 AM, Ted Karmel wrote: > Thanks Abe! > > That solved the error. The readme should perhaps be updated to reflect this Done. Thanks for reporting the trouble! -Bryan ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Riak Recap for 5/5 - 5/6
Morning, Afternoon, Evening - For today's recap : a basic but common question about buckets, a gisted conversation about upgrading/migration, and a pointer to Riak in the Opscode repo. Enjoy your weekend - Mark Community Manager wiki.basho.com twitter.com/pharkmillups - Riak Recap for 5/5 1) Q --- Something not clear to me: does riak offer a facility to link buckets to each other (similar to how it's done for documents) ? A --- In a sense, buckets are "virtual", so there is no way to link them. They are simply namsespaces and they don't really "exist" unless you change their properties. 2) Here is a link to a conversation about data migration that might be of interest to anyone upgrading from 0.9 to 0.10.1 http://gist.github.com/39 (in the convo, they refer to "Grant's Approach" - this is here: http://lists.basho.com/pipermail/riak-users_lists.basho.com/2010-May/001120.html * update - the code for the "riak-admin leave" command has been pushed to tip -- http://bitbucket.org/basho/riak/changesets (commit 1262) 3) @b6n released a Riak cookbook that is now in the Opscode repo. You can check it out here - > http://github.com/opscode/cookbooks/tree/master/riak/ There is also a pointer to it in the Riak wiki under "Getting Started." ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Riak hg:tip with bitcask crashing
I am getting following error: System: Mac OS X 10.6.3 Riak: tip with clean build and few doc in a single bucket Bitcask: whatever riak pulled =ERROR REPORT 7-May-2010::19:01:46 === ** Generic server memsup terminating ** Last message in was {'EXIT',<0.236.0>, {emfile, [{erlang,open_port, [{spawn,"/bin/sh -s unix:cmd 2>&1"}, [stream]]}, {os,start_port_srv_loop,2}]}} ** When Server state == {state,{unix,darwin}, false, {1971828000,3103948000}, {<0.69.0>,742752}, false,6,3,0.8,0.05,<0.236.0>, #Ref<0.0.0.1488>,undefined, [reg], []} ** Reason for termination == ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd 2>&1"},[stream]]}, {os,start_port_srv_loop,2}]} =ERROR REPORT 7-May-2010::19:01:46 === ** Generic server memsup terminating ** Last message in was {'EXIT',<0.239.0>, {emfile, [{erlang,open_port, [{spawn,"/bin/sh -s unix:cmd 2>&1"}, [stream]]}, {os,start_port_srv_loop,2}]}} ** When Server state == {state,{unix,darwin}, false,undefined,undefined,false,6,3, 0.8,0.05,<0.239.0>,#Ref<0.0.0.1492>,undefined, [reg], []} ** Reason for termination == ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd 2>&1"},[stream]]}, {os,start_port_srv_loop,2}]} =ERROR REPORT 7-May-2010::19:01:46 === ** Generic server memsup terminating ** Last message in was {'EXIT',<0.242.0>, {emfile, [{erlang,open_port, [{spawn,"/bin/sh -s unix:cmd 2>&1"}, [stream]]}, {os,start_port_srv_loop,2}]}} ** When Server state == {state,{unix,darwin}, false,undefined,undefined,false,6,3, 0.8,0.05,<0.242.0>,#Ref<0.0.0.1496>,undefined, [reg], []} ** Reason for termination == ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd 2>&1"},[stream]]}, {os,start_port_srv_loop,2}]} =ERROR REPORT 7-May-2010::19:01:46 === ** Generic server memsup terminating ** Last message in was {'EXIT',<0.245.0>, {emfile, [{erlang,open_port, [{spawn,"/bin/sh -s unix:cmd 2>&1"}, [stream]]}, {os,start_port_srv_loop,2}]}} ** When Server state == {state,{unix,darwin}, false,undefined,undefined,false,6,3, 0.8,0.05,<0.245.0>,#Ref<0.0.0.1500>,undefined, [reg], []} ** Reason for termination == ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd 2>&1"},[stream]]}, {os,start_port_srv_loop,2}]} =ERROR REPORT 7-May-2010::19:01:46 === ** Generic server memsup terminating ** Last message in was {'EXIT',<0.248.0>, {emfile, [{erlang,open_port, [{spawn,"/bin/sh -s unix:cmd 2>&1"}, [stream]]}, {os,start_port_srv_loop,2}]}} ** When Server state == {state,{unix,darwin}, false,undefined,undefined,false,6,3, 0.8,0.05,<0.248.0>,#Ref<0.0.0.1505>,undefined, [reg], []} ** Reason for termination == ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd 2>&1"},[stream]]}, {os,start_port_srv_loop,2}]} =INFO REPORT 7-May-2010::19:01:46 === application: os_mon exited: shutdown type: temporary ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Riak hg:tip with bitcask crashing
I believe you have exceeded your maxfiles limit. Google around for ulimit and sysctl re. maxfiles. On 2010-05-07, Senthilkumar Peelikkampatti wrote: > I am getting following error: > System: Mac OS X 10.6.3 > Riak: tip with clean build and few doc in a single bucket > Bitcask: whatever riak pulled > > > > =ERROR REPORT 7-May-2010::19:01:46 === > ** Generic server memsup terminating > ** Last message in was {'EXIT',<0.236.0>, >{emfile, >[{erlang,open_port, > [{spawn,"/bin/sh -s unix:cmd 2>&1"}, > [stream]]}, > {os,start_port_srv_loop,2}]}} > ** When Server state == {state,{unix,darwin}, >false, >{1971828000,3103948000}, >{<0.69.0>,742752}, >false,6,3,0.8,0.05,<0.236.0>, >#Ref<0.0.0.1488>,undefined, >[reg], >[]} > ** Reason for termination == > ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd > 2>&1"},[stream]]}, > {os,start_port_srv_loop,2}]} > > =ERROR REPORT 7-May-2010::19:01:46 === > ** Generic server memsup terminating > ** Last message in was {'EXIT',<0.239.0>, >{emfile, >[{erlang,open_port, > [{spawn,"/bin/sh -s unix:cmd 2>&1"}, > [stream]]}, > {os,start_port_srv_loop,2}]}} > ** When Server state == {state,{unix,darwin}, >false,undefined,undefined,false,6,3, > > 0.8,0.05,<0.239.0>,#Ref<0.0.0.1492>,undefined, >[reg], >[]} > ** Reason for termination == > ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd > 2>&1"},[stream]]}, > {os,start_port_srv_loop,2}]} > > =ERROR REPORT 7-May-2010::19:01:46 === > ** Generic server memsup terminating > ** Last message in was {'EXIT',<0.242.0>, >{emfile, >[{erlang,open_port, > [{spawn,"/bin/sh -s unix:cmd 2>&1"}, > [stream]]}, > {os,start_port_srv_loop,2}]}} > ** When Server state == {state,{unix,darwin}, >false,undefined,undefined,false,6,3, > > 0.8,0.05,<0.242.0>,#Ref<0.0.0.1496>,undefined, >[reg], >[]} > ** Reason for termination == > ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd > 2>&1"},[stream]]}, > {os,start_port_srv_loop,2}]} > > =ERROR REPORT 7-May-2010::19:01:46 === > ** Generic server memsup terminating > ** Last message in was {'EXIT',<0.245.0>, >{emfile, >[{erlang,open_port, > [{spawn,"/bin/sh -s unix:cmd 2>&1"}, > [stream]]}, > {os,start_port_srv_loop,2}]}} > ** When Server state == {state,{unix,darwin}, >false,undefined,undefined,false,6,3, > > 0.8,0.05,<0.245.0>,#Ref<0.0.0.1500>,undefined, >[reg], >[]} > ** Reason for termination == > ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd > 2>&1"},[stream]]}, > {os,start_port_srv_loop,2}]} > > =ERROR REPORT 7-May-2010::19:01:46 === > ** Generic server memsup terminating > ** Last message in was {'EXIT',<0.248.0>, >{emfile, >[{erlang,open_port, > [{spawn,"/bin/sh -s unix:cmd 2>&1"}, > [stream]]}, > {os,start_port_srv_loop,2}]}} > ** When Server state == {state,{unix,darwin}, >false,undefined,undefined,false,6,3, > > 0.8,0.05,<0.248.0>,#Ref<0.0.0.1505>,undefined, >[reg], >[]} > ** Reason for termination == > ** {emfile,[{erlang,open_port,[{spawn,"/bin/sh -s unix:cmd > 2>&1"},[stream]]}, > {os,start_port_srv_loop,2}]} > > =INFO REPORT 7-May-2010::19:01:46 === > application: os_mon > exited: shutdown > type: temporary > -- Sent from my mobile device ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Copying data between clusters
- Is it possible to use the built-in backup/restore functions of riak-admin to copy data between clusters? The scenario is that we have separate test and production environments, each with separate riak clusters of different sizes and configurations. Every so often we'd like to copy the data from production into test. Can I run 'backup all' in prod, then run restore on the resultant file in test, and have everything work? Or does restore only work on the same cluster configuration that the backup was performed on? What's the easiest way of doing this? - I've noticed that backup takes a very long time, and results in a file that is much larger than the actual cluster data directories of the cluster. Is this normal? - Not related to backups, but how do I configure the global replication count of the cluster? ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Copying data between clusters
Alan - I can't answer your replication questions -- don't have a lot of experience with it yet -- but I can take a stab at setting the global replication setting. If I'm understanding correctly I believe you're referring to the N value. N controls how many replicas of an entry Riak stores, in total, around the cluster. Docs on tuning this value can be found here: http://wiki.basho.com/display/RIAK/Replication --Kevin On May 7, 2010, at 10:06 PM, Alan McConnell wrote: > • Is it possible to use the built-in backup/restore functions of > riak-admin to copy data between clusters? The scenario is that we have > separate test and production environments, each with separate riak clusters > of different sizes and configurations. Every so often we'd like to copy the > data from production into test. Can I run 'backup all' in prod, then run > restore on the resultant file in test, and have everything work? Or does > restore only work on the same cluster configuration that the backup was > performed on? What's the easiest way of doing this? > • I've noticed that backup takes a very long time, and results in a > file that is much larger than the actual cluster data directories of the > cluster. Is this normal? > • Not related to backups, but how do I configure the global replication > count of the cluster? > ___ > 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