YUKI Hiroshi
null+****@clear*****
Thu Sep 25 18:29:33 JST 2014
YUKI Hiroshi 2014-09-25 18:29:33 +0900 (Thu, 25 Sep 2014) New Revision: 76012750207bfa8e829a6cebd9a0e0df4cbae63e https://github.com/droonga/droonga.org/commit/76012750207bfa8e829a6cebd9a0e0df4cbae63e Message: Update command line to modify catalog.json for the service Modified files: tutorial/1.0.6/dump-restore/index.md tutorial/1.0.6/groonga/index.md Modified: tutorial/1.0.6/dump-restore/index.md (+4 -12) =================================================================== --- tutorial/1.0.6/dump-restore/index.md 2014-09-25 18:28:34 +0900 (ba2dda6) +++ tutorial/1.0.6/dump-restore/index.md 2014-09-25 18:29:33 +0900 (7126e1f) @@ -324,16 +324,12 @@ Construct two clusters by `droonga-engine-catalog-modify` and make one cluster e ~~~ (on node0) -# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \ - --update \ - --replica-hosts=node0 +# droonga-engine-catalog-modify --replica-hosts=node0 ~~~ ~~~ (on node1) -# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \ - --update \ - --replica-hosts=node1 +# droonga-engine-catalog-modify --replica-hosts=node1 $ endpoint="http://node1:10041" $ curl "$endpoint/d/table_remove?name=Location" $ curl "$endpoint/d/table_remove?name=Store" @@ -515,16 +511,12 @@ Run following command lines to unite these two clusters: ~~~ (on node0) -# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \ - --update \ - --add-replica-hosts=node1 +# droonga-engine-catalog-modify --add-replica-hosts=node1 ~~~ ~~~ (on node1) -# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \ - --update \ - --add-replica-hosts=node0 +# droonga-engine-catalog-modify --add-replica-hosts=node0 ~~~ After that there is just one cluster - yes, it's the initial state. Modified: tutorial/1.0.6/groonga/index.md (+2 -6) =================================================================== --- tutorial/1.0.6/groonga/index.md 2014-09-25 18:28:34 +0900 (dc66ecd) +++ tutorial/1.0.6/groonga/index.md 2014-09-25 18:29:33 +0900 (8e1a8e9) @@ -177,18 +177,14 @@ Let's configure them to work together as a cluster. Run commands like this, on each node: ~~~ -# droonga-engine-catalog-generate --hosts=node0,node1 \ - --output=~droonga-engine/droonga/catalog.json -# chown droonga-engine:droonga-engine ~droonga-engine/droonga/catalog.json +# droonga-engine-catalog-generate --hosts=node0,node1 ~~~ Of course you must specify correct host name of nodes by the `--hosts` option. If your nodes are configured with raw IP addresses, the command line is: ~~~ -# droonga-engine-catalog-generate --hosts=192.168.100.50,192.168.100.51 \ - --output=~droonga-engine/droonga/catalog.json -... +# droonga-engine-catalog-generate --hosts=192.168.100.50,192.168.100.51 ~~~ OK, now your Droonga cluster is correctly prepared. -------------- next part -------------- HTML����������������������������... Download