YUKI Hiroshi
null+****@clear*****
Thu May 29 16:34:17 JST 2014
YUKI Hiroshi 2014-05-29 16:34:17 +0900 (Thu, 29 May 2014) New Revision: 8d06fa4b7f12daf424cd2812b0a0d7a00ae792a1 https://github.com/droonga/droonga.org/commit/8d06fa4b7f12daf424cd2812b0a0d7a00ae792a1 Message: Add steps to prepare testing environments Modified files: _po/ja/tutorial/1.0.3/dump-restore/index.po _po/ja/tutorial/1.0.4/dump-restore/index.po ja/tutorial/1.0.3/dump-restore/index.md ja/tutorial/1.0.4/dump-restore/index.md tutorial/1.0.3/dump-restore/index.md tutorial/1.0.4/dump-restore/index.md Modified: _po/ja/tutorial/1.0.3/dump-restore/index.po (+71 -8) =================================================================== --- _po/ja/tutorial/1.0.3/dump-restore/index.po 2014-05-29 16:17:00 +0900 (e341345) +++ _po/ja/tutorial/1.0.3/dump-restore/index.po 2014-05-29 16:34:17 +0900 (9e3ac67) @@ -367,20 +367,83 @@ msgstr "" "ですので、これらをパイプで繋げるだけで、片方のクラスタの内容をもう片方に複製できます。" msgid "" -"For example, if there are two clusters: the source has two nodes `192.168.0.10" -"` and `192.168.0.11`, the destination has two nodes `192.168.0.20` and `192.16" -"8.0.21`, and now your are logged in to the host `192.168.0.12`, then the comma" -"nd line is:" +"Assume that there are two clusters: the source has a node `192.168.0.10`, the " +"destination has a node `192.168.0.11`, and now your are logged in to the host " +"`192.168.0.12`." msgstr "" -"例えば、複製元として2つのノード `192.168.0.10` と `192.168.0.11` からなるクラスタ、複製先として2つのノード `192.16" -"8.0.20` と `192.168.0.21` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操作を行っているのであれば、実" -"行するコマンドはこのようになります:" +"ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあり、今 `192" +".168.0.12` にログインして操作を行っていると仮定します。" + +msgid "" +"(If you are reading this tutorial sequentially, you'll have an existing cluste" +"r with two nodes.\n" +"Construct two clusters and make one empty, with these commands:" +msgstr "" +"(もし順番にこのチュートリアルを読み進めているのであれば、2つのノードを含むクラスタが手元にあるはずです。以下の操作で2つのクラスタを作り、1つを空にしまし" +"ょう:" + +msgid "" +" (on 192.168.0.10)\n" +" # kill $(cat ~/droonga/droonga-http-server.pid)\n" +" # kill $(cat ~/droonga/droonga-engine.pid)\n" +" # host=192.168.0.10\n" +" # droonga-engine-catalog-generate --hosts=$host \\\n" +" --output=~/droonga/catalog.json\n" +" # droonga-engine --host=$host \\\n" +" --log-file=~/droonga/droonga-engine.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-engine.pid\n" +" # droonga-http-server --port=10041 \\\n" +" --receive-host-name=$host \\\n" +" --droonga-engine-host-name=$host \\\n" +" --access-log-file=~/droonga/droonga-http-server.acce" +"ss.log \\\n" +" --system-log-file=~/droonga/droonga-http-server.syst" +"em.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-http-server.pid" +msgstr "" + +msgid "" +" (on 192.168.0.11)\n" +" # kill $(cat ~/droonga/droonga-http-server.pid)\n" +" # kill $(cat ~/droonga/droonga-engine.pid)\n" +" # rm -r ~/droonga/000\n" +" # host=192.168.0.11\n" +" # droonga-engine-catalog-generate --hosts=$host \\\n" +" --output=~/droonga/catalog.json\n" +" # droonga-engine --host=$host \\\n" +" --log-file=~/droonga/droonga-engine.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-engine.pid\n" +" # droonga-http-server --port=10041 \\\n" +" --receive-host-name=$host \\\n" +" --droonga-engine-host-name=$host \\\n" +" --access-log-file=~/droonga/droonga-http-server.acce" +"ss.log \\\n" +" --system-log-file=~/droonga/droonga-http-server.syst" +"em.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-http-server.pid" +msgstr "" + +msgid "" +"After that there are two clusters: one contains `192.168.0.10` and data, anoth" +"er contains `192.168.0.11` with no data.)" +msgstr "" +"これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタがで" +"きます。)" + +msgid "" +"Then you can duplicate the source cluster to the destination cluster, with a c" +"ommand line like:" +msgstr "この時、以下のようなコマンド列によって、複製元クラスタから複製先クラスタへデータを複製することができます:" msgid "" "~~~\n" "# drndump --host=192.168.0.10 \\\n" " --receiver-host=192.168.0.12 | \\\n" -" droonga-request --host=192.168.0.20 \\\n" +" droonga-request --host=192.168.0.11 \\\n" " --receiver-host=192.168.0.12\n" "Elapsed time: 0.027541763\n" "{\n" Modified: _po/ja/tutorial/1.0.4/dump-restore/index.po (+71 -8) =================================================================== --- _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-05-29 16:17:00 +0900 (e341345) +++ _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-05-29 16:34:17 +0900 (a9b167d) @@ -367,14 +367,77 @@ msgstr "" "ですので、これらをパイプで繋げるだけで、片方のクラスタの内容をもう片方に複製できます。" msgid "" -"For example, if there are two clusters: the source has two nodes `192.168.0.10" -"` and `192.168.0.11`, the destination has two nodes `192.168.0.20` and `192.16" -"8.0.21`, and now your are logged in to the host `192.168.0.12`, then the comma" -"nd line is:" -msgstr "" -"例えば、複製元として2つのノード `192.168.0.10` と `192.168.0.11` からなるクラスタ、複製先として2つのノード `192.16" -"8.0.20` と `192.168.0.21` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操作を行っているのであれば、実" -"行するコマンドはこのようになります:" +"Assume that there are two clusters: the source has a node `192.168.0.10`, the " +"destination has a node `192.168.0.11`, and now your are logged in to the host " +"`192.168.0.12`." +msgstr "" +"ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあり、今 `192" +".168.0.12` にログインして操作を行っていると仮定します。" + +msgid "" +"(If you are reading this tutorial sequentially, you'll have an existing cluste" +"r with two nodes.\n" +"Construct two clusters and make one empty, with these commands:" +msgstr "" +"(もし順番にこのチュートリアルを読み進めているのであれば、2つのノードを含むクラスタが手元にあるはずです。以下の操作で2つのクラスタを作り、1つを空にしまし" +"ょう:" + +msgid "" +" (on 192.168.0.10)\n" +" # kill $(cat ~/droonga/droonga-http-server.pid)\n" +" # kill $(cat ~/droonga/droonga-engine.pid)\n" +" # host=192.168.0.10\n" +" # droonga-engine-catalog-generate --hosts=$host \\\n" +" --output=~/droonga/catalog.json\n" +" # droonga-engine --host=$host \\\n" +" --log-file=~/droonga/droonga-engine.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-engine.pid\n" +" # droonga-http-server --port=10041 \\\n" +" --receive-host-name=$host \\\n" +" --droonga-engine-host-name=$host \\\n" +" --access-log-file=~/droonga/droonga-http-server.acce" +"ss.log \\\n" +" --system-log-file=~/droonga/droonga-http-server.syst" +"em.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-http-server.pid" +msgstr "" + +msgid "" +" (on 192.168.0.11)\n" +" # kill $(cat ~/droonga/droonga-http-server.pid)\n" +" # kill $(cat ~/droonga/droonga-engine.pid)\n" +" # rm -r ~/droonga/000\n" +" # host=192.168.0.11\n" +" # droonga-engine-catalog-generate --hosts=$host \\\n" +" --output=~/droonga/catalog.json\n" +" # droonga-engine --host=$host \\\n" +" --log-file=~/droonga/droonga-engine.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-engine.pid\n" +" # droonga-http-server --port=10041 \\\n" +" --receive-host-name=$host \\\n" +" --droonga-engine-host-name=$host \\\n" +" --access-log-file=~/droonga/droonga-http-server.acce" +"ss.log \\\n" +" --system-log-file=~/droonga/droonga-http-server.syst" +"em.log \\\n" +" --daemon \\\n" +" --pid-file=~/droonga/droonga-http-server.pid" +msgstr "" + +msgid "" +"After that there are two clusters: one contains `192.168.0.10` and data, anoth" +"er contains `192.168.0.11` with no data.)" +msgstr "" +"これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタがで" +"きます。)" + +msgid "" +"Then you can duplicate the source cluster to the destination cluster, with a c" +"ommand line like:" +msgstr "この時、以下のようなコマンド列によって、複製元クラスタから複製先クラスタへデータを複製することができます:" msgid "" "~~~\n" Modified: ja/tutorial/1.0.3/dump-restore/index.md (+45 -2) =================================================================== --- ja/tutorial/1.0.3/dump-restore/index.md 2014-05-29 16:17:00 +0900 (2619b91) +++ ja/tutorial/1.0.3/dump-restore/index.md 2014-05-29 16:34:17 +0900 (30004a7) @@ -237,12 +237,55 @@ Elapsed time: 0.008678467 その一方で、`droonga-request` コマンドは標準入力からメッセージを受け取る事ができます。 ですので、これらをパイプで繋げるだけで、片方のクラスタの内容をもう片方に複製できます。 -例えば、複製元として2つのノード `192.168.0.10` と `192.168.0.11` からなるクラスタ、複製先として2つのノード `192.168.0.20` と `192.168.0.21` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操作を行っているのであれば、実行するコマンドはこのようになります: +ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあり、今 `192.168.0.12` にログインして操作を行っていると仮定します。 + +(もし順番にこのチュートリアルを読み進めているのであれば、2つのノードを含むクラスタが手元にあるはずです。以下の操作で2つのクラスタを作り、1つを空にしましょう: + + (on 192.168.0.10) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # host=192.168.0.10 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + + (on 192.168.0.11) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # rm -r ~/droonga/000 + # host=192.168.0.11 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + +これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタができます。) + +この時、以下のようなコマンド列によって、複製元クラスタから複製先クラスタへデータを複製することができます: ~~~ # drndump --host=192.168.0.10 \ --receiver-host=192.168.0.12 | \ - droonga-request --host=192.168.0.20 \ + droonga-request --host=192.168.0.11 \ --receiver-host=192.168.0.12 Elapsed time: 0.027541763 { Modified: ja/tutorial/1.0.4/dump-restore/index.md (+44 -1) =================================================================== --- ja/tutorial/1.0.4/dump-restore/index.md 2014-05-29 16:17:00 +0900 (e5f640a) +++ ja/tutorial/1.0.4/dump-restore/index.md 2014-05-29 16:34:17 +0900 (71aa2b2) @@ -237,7 +237,50 @@ Elapsed time: 0.008678467 その一方で、`droonga-request` コマンドは標準入力からメッセージを受け取る事ができます。 ですので、これらをパイプで繋げるだけで、片方のクラスタの内容をもう片方に複製できます。 -例えば、複製元として2つのノード `192.168.0.10` と `192.168.0.11` からなるクラスタ、複製先として2つのノード `192.168.0.20` と `192.168.0.21` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操作を行っているのであれば、実行するコマンドはこのようになります: +ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあり、今 `192.168.0.12` にログインして操作を行っていると仮定します。 + +(もし順番にこのチュートリアルを読み進めているのであれば、2つのノードを含むクラスタが手元にあるはずです。以下の操作で2つのクラスタを作り、1つを空にしましょう: + + (on 192.168.0.10) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # host=192.168.0.10 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + + (on 192.168.0.11) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # rm -r ~/droonga/000 + # host=192.168.0.11 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + +これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタができます。) + +この時、以下のようなコマンド列によって、複製元クラスタから複製先クラスタへデータを複製することができます: ~~~ # drndump --host=192.168.0.10 \ Modified: tutorial/1.0.3/dump-restore/index.md (+46 -2) =================================================================== --- tutorial/1.0.3/dump-restore/index.md 2014-05-29 16:17:00 +0900 (db80004) +++ tutorial/1.0.3/dump-restore/index.md 2014-05-29 16:34:17 +0900 (92a1aa9) @@ -230,12 +230,56 @@ The command `drndump` reports its result to the standard output. On the other hand, `droonga-request` can receive messages from the standard input. So, you just connect them with a pipe, to duplicate contents of a cluster to another. -For example, if there are two clusters: the source has two nodes `192.168.0.10` and `192.168.0.11`, the destination has two nodes `192.168.0.20` and `192.168.0.21`, and now your are logged in to the host `192.168.0.12`, then the command line is: +Assume that there are two clusters: the source has a node `192.168.0.10`, the destination has a node `192.168.0.11`, and now your are logged in to the host `192.168.0.12`. + +(If you are reading this tutorial sequentially, you'll have an existing cluster with two nodes. +Construct two clusters and make one empty, with these commands: + + (on 192.168.0.10) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # host=192.168.0.10 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + + (on 192.168.0.11) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # rm -r ~/droonga/000 + # host=192.168.0.11 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + +After that there are two clusters: one contains `192.168.0.10` and data, another contains `192.168.0.11` with no data.) + +Then you can duplicate the source cluster to the destination cluster, with a command line like: ~~~ # drndump --host=192.168.0.10 \ --receiver-host=192.168.0.12 | \ - droonga-request --host=192.168.0.20 \ + droonga-request --host=192.168.0.11 \ --receiver-host=192.168.0.12 Elapsed time: 0.027541763 { Modified: tutorial/1.0.4/dump-restore/index.md (+45 -1) =================================================================== --- tutorial/1.0.4/dump-restore/index.md 2014-05-29 16:17:00 +0900 (db80004) +++ tutorial/1.0.4/dump-restore/index.md 2014-05-29 16:34:17 +0900 (886852c) @@ -230,7 +230,51 @@ The command `drndump` reports its result to the standard output. On the other hand, `droonga-request` can receive messages from the standard input. So, you just connect them with a pipe, to duplicate contents of a cluster to another. -For example, if there are two clusters: the source has two nodes `192.168.0.10` and `192.168.0.11`, the destination has two nodes `192.168.0.20` and `192.168.0.21`, and now your are logged in to the host `192.168.0.12`, then the command line is: +Assume that there are two clusters: the source has a node `192.168.0.10`, the destination has a node `192.168.0.11`, and now your are logged in to the host `192.168.0.12`. + +(If you are reading this tutorial sequentially, you'll have an existing cluster with two nodes. +Construct two clusters and make one empty, with these commands: + + (on 192.168.0.10) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # host=192.168.0.10 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + + (on 192.168.0.11) + # kill $(cat ~/droonga/droonga-http-server.pid) + # kill $(cat ~/droonga/droonga-engine.pid) + # rm -r ~/droonga/000 + # host=192.168.0.11 + # droonga-engine-catalog-generate --hosts=$host \ + --output=~/droonga/catalog.json + # droonga-engine --host=$host \ + --log-file=~/droonga/droonga-engine.log \ + --daemon \ + --pid-file=~/droonga/droonga-engine.pid + # droonga-http-server --port=10041 \ + --receive-host-name=$host \ + --droonga-engine-host-name=$host \ + --access-log-file=~/droonga/droonga-http-server.access.log \ + --system-log-file=~/droonga/droonga-http-server.system.log \ + --daemon \ + --pid-file=~/droonga/droonga-http-server.pid + +After that there are two clusters: one contains `192.168.0.10` and data, another contains `192.168.0.11` with no data.) + +Then you can duplicate the source cluster to the destination cluster, with a command line like: ~~~ # drndump --host=192.168.0.10 \ -------------- next part -------------- HTML����������������������������... Télécharger