YUKI Hiroshi
null+****@clear*****
Sun Jun 29 04:12:31 JST 2014
YUKI Hiroshi 2014-06-29 04:12:31 +0900 (Sun, 29 Jun 2014) New Revision: 1475a36d238751b17ff3a64664b83dfb1ef7b5e8 https://github.com/droonga/droonga.org/commit/1475a36d238751b17ff3a64664b83dfb1ef7b5e8 Message: Update description of droonga-engine-absorb-data command Modified files: _po/ja/tutorial/1.0.4/dump-restore/index.po ja/tutorial/1.0.4/dump-restore/index.md tutorial/1.0.4/dump-restore/index.md Modified: _po/ja/tutorial/1.0.4/dump-restore/index.po (+9 -26) =================================================================== --- _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-06-29 04:05:24 +0900 (cf39ea6) +++ _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-06-29 04:12:31 +0900 (e18a0e8) @@ -448,36 +448,19 @@ msgid "### Duplicate data between two Droonga clusters" msgstr "### 2つのDroongaクラスタの間でデータを複製する" msgid "" -"To copy data between two clusters, run the command *on a node of the destinati" -"on cluster*, like:" -msgstr "2つのクラスタの間でデータをコピーするには、*コピー先となるクラスタのノード上で*以下のようにコマンドを実行します:" +"To copy data between two clusters, run the `droonga-engine-absorb-data` comman" +"d on a node, like:" +msgstr "" +"2つのクラスタの間でデータをコピーするには、いずれかのノード上で以下のように `droonga-engine-absorb-data` コマンドを実行します" +":" msgid "" "~~~\n" -"(on 192.168.0.11)\n" +"(on 192.168.0.10 or 192.168.0.11)\n" "# droonga-engine-absorb-data --source-host=192.168.0.10 \\\n" -" --receiver-host=192.168.0.11\n" -"{\n" -" \"type\": \"table_create\",\n" -" \"dataset\": \"Default\",\n" -" \"body\": {\n" -" \"name\": \"Location\",\n" -" \"flags\": \"TABLE_PAT_KEY\",\n" -" \"key_type\": \"WGS84GeoPoint\"\n" -" }\n" -"}\n" -"...\n" -"{\n" -" \"type\": \"column_create\",\n" -" \"dataset\": \"Default\",\n" -" \"body\": {\n" -" \"table\": \"Term\",\n" -" \"name\": \"store_name\",\n" -" \"type\": \"Store\",\n" -" \"flags\": \"COLUMN_INDEX|WITH_POSITION\",\n" -" \"source\": \"name\"\n" -" }\n" -"}\n" +" --destination-host=192.168.0.11\n" +"Absorbing data...\n" +"Done.\n" "~~~" msgstr "" Modified: ja/tutorial/1.0.4/dump-restore/index.md (+5 -24) =================================================================== --- ja/tutorial/1.0.4/dump-restore/index.md 2014-06-29 04:05:24 +0900 (5c55a4f) +++ ja/tutorial/1.0.4/dump-restore/index.md 2014-06-29 04:12:31 +0900 (7309c29) @@ -282,33 +282,14 @@ Elapsed time: 0.008678467 ### 2つのDroongaクラスタの間でデータを複製する -2つのクラスタの間でデータをコピーするには、*コピー先となるクラスタのノード上で*以下のようにコマンドを実行します: +2つのクラスタの間でデータをコピーするには、いずれかのノード上で以下のように `droonga-engine-absorb-data` コマンドを実行します: ~~~ -(on 192.168.0.11) +(on 192.168.0.10 or 192.168.0.11) # droonga-engine-absorb-data --source-host=192.168.0.10 \ - --receiver-host=192.168.0.11 -{ - "type": "table_create", - "dataset": "Default", - "body": { - "name": "Location", - "flags": "TABLE_PAT_KEY", - "key_type": "WGS84GeoPoint" - } -} -... -{ - "type": "column_create", - "dataset": "Default", - "body": { - "table": "Term", - "name": "store_name", - "type": "Store", - "flags": "COLUMN_INDEX|WITH_POSITION", - "source": "name" - } -} + --destination-host=192.168.0.11 +Absorbing data... +Done. ~~~ 以上の操作で、2つのクラスタの内容が完全に同期されました。確かめてみましょう: Modified: tutorial/1.0.4/dump-restore/index.md (+5 -24) =================================================================== --- tutorial/1.0.4/dump-restore/index.md 2014-06-29 04:05:24 +0900 (1f0bd7c) +++ tutorial/1.0.4/dump-restore/index.md 2014-06-29 04:12:31 +0900 (deb9ff0) @@ -277,33 +277,14 @@ After that there are two clusters: one contains `192.168.0.10` with data, anothe ### Duplicate data between two Droonga clusters -To copy data between two clusters, run the command *on a node of the destination cluster*, like: +To copy data between two clusters, run the `droonga-engine-absorb-data` command on a node, like: ~~~ -(on 192.168.0.11) +(on 192.168.0.10 or 192.168.0.11) # droonga-engine-absorb-data --source-host=192.168.0.10 \ - --receiver-host=192.168.0.11 -{ - "type": "table_create", - "dataset": "Default", - "body": { - "name": "Location", - "flags": "TABLE_PAT_KEY", - "key_type": "WGS84GeoPoint" - } -} -... -{ - "type": "column_create", - "dataset": "Default", - "body": { - "table": "Term", - "name": "store_name", - "type": "Store", - "flags": "COLUMN_INDEX|WITH_POSITION", - "source": "name" - } -} + --destination-host=192.168.0.11 +Absorbing data... +Done. ~~~ After that contents of these two clusters are completely synchronized. Confirm it: -------------- next part -------------- HTML����������������������������...Download