Anonymous committed 6e3397e


Comments (0)

Files changed (1)

                            Welcome to Riak.
-Date: 2010-03-10 01:18:20 CST
+Date: 2010-03-10 09:25:33 EST
   * LICENSE: the license under which Riak is released
   * apps/    the source tree for Riak and all its dependencies
   * doc/
+    - Riak Administration Guide
+    - architecture.txt: details about the underlying design of Riak
+    - basic-client.txt: slightly more detail on using Riak
     - basic-setup.txt:  slightly more detail on setting up Riak
-    - basic-client.txt: slightly more detail on using Riak
-    - architecture.txt: details about the underlying design of Riak
-    - index.html:       the root of the edoc output of 'make docs'
+    - basic-mapreduce.txt: introduction to map/reduce on Riak
+    - using Javascript with Riak map/reduce
+    - man/riak.1.gz: manual page for the riak(1) command
+    - man/riak-admin.1.gz manual page for the riak-admin(1) command
+    - raw-http-howto.txt: using the Riak HTTP interface
 2 Quick Start 
    Assuming you have a working Erlang (R13B03 or later) installation,
    building Riak should be as simple as:
   $ cd $RIAK
   $ make rel
 2.2 Starting Riak 
    Once you have successfully built Riak, you can start the server with the
    following commands:
   $ cd $RIAK/rel/riak
   $ bin/riak start
    Now, verify that the server started up cleanly and is working:
    $ bin/riak-admin test
    Now that you have a functional server, let's try storing some data in
    it. First, start up a erlang node using our embedded version of erlang:
   $ erts-<vsn>/bin/erl -name riaktest@ -setcookie riak
   Eshell V5.7.4  (abort with ^G)
    Now construct the node name of Riak server and make sure we can talk to it:
   (riaktest@> RiakNode = 'riak@'.
   (riaktest@> net_adm:ping(RiakNode).
    We are now ready to start the Riak client:
   (riaktest@> {ok, C} = riak:client_connect(RiakNode).
    Let's create a shopping list for bread at /groceries/mine:
   (riaktest@> O0 = riak_object:new(<<"groceries">>, <<"mine">>, ["bread"]).
   O0 = riak_object:new(<<"groceries">>, <<"mine">>, ["bread"]).
    (riaktest@> C:put(O0, 1).
     Now, read the list back from the Riak server and extract the value
   (riaktest@> {ok, O1} = C:get(<<"groceries">>, <<"mine">>, 1).
    (riaktest@> V = riak_object:get_value(O1).
      Add milk to our list of groceries and write the new value to Riak:
   (riaktest@> %% add milk to the list
   (riaktest@> O2 = riak_object:update_value(O1, ["milk" | V]).
   (riaktest@> C:put(O2, 1).
      Finally, see what other keys are available in groceries bucket:
   (riaktest@> C:list_keys(<<"groceries">>).
 3 Server Management 
     To join a new Riak node to an existing cluster:
   $ bin/riak start # If a local server is not already running
   $ bin/riak-admin join <node in cluster>
     (Note that you must have a local node already running for this to work)
     To verify that the local Riak node is able to read/write data: