YUKI Hiroshi
null+****@clear*****
Mon May 26 19:54:33 JST 2014
YUKI Hiroshi 2014-05-26 19:54:33 +0900 (Mon, 26 May 2014) New Revision: 90433238bdd2101a610e013acac262cb761d7375 https://github.com/droonga/droonga.org/commit/90433238bdd2101a610e013acac262cb761d7375 Message: Update translations Modified files: _po/ja/tutorial/1.0.3/groonga/index.po _po/ja/tutorial/1.0.3/index.po _po/ja/tutorial/1.0.3/restore/index.po ja/tutorial/1.0.3/groonga/index.md ja/tutorial/1.0.3/index.md ja/tutorial/1.0.3/restore/index.md Modified: _po/ja/tutorial/1.0.3/groonga/index.po (+9 -4) =================================================================== --- _po/ja/tutorial/1.0.3/groonga/index.po 2014-05-26 19:53:59 +0900 (76410d0) +++ _po/ja/tutorial/1.0.3/groonga/index.po 2014-05-26 19:54:33 +0900 (0a4c9e8) @@ -189,8 +189,8 @@ msgstr "" " データセット名を`--dataset`オプション、各DroongaノードのIPアドレスを`--hosts`オプションで、以下のように指定して下さい:" msgid "" -" # droonga-catalog-generate --hosts=192.168.0.10,192.168.0.11 \\\n" -" --output=./catalog.json" +" # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.11 \\\n" +" --output=./catalog.json" msgstr "" msgid "" @@ -199,8 +199,8 @@ msgid "" msgstr " コンピュータが1台だけの単なる検証用の構成をセットアップする場合は、以下のようにします:" msgid "" -" # droonga-catalog-generate --hosts=127.0.0.1 \\\n" -" --output=./catalog.json" +" # droonga-engine-catalog-generate --hosts=127.0.0.1 \\\n" +" --output=./catalog.json" msgstr "" msgid " 6. Share the generated `catalog.json` *to your all Droonga nodes*." @@ -516,6 +516,11 @@ msgid "" msgstr "" msgid "" +"Next, let's learn [how to backup and restore contents of a Droonga cluster](.." +"/restore/)." +msgstr "" + +msgid "" " [Ubuntu]: http://www.ubuntu.com/\n" " [Droonga]: https://droonga.org/\n" " [Groonga]: http://groonga.org/\n" Modified: _po/ja/tutorial/1.0.3/index.po (+4 -2) =================================================================== --- _po/ja/tutorial/1.0.3/index.po 2014-05-26 19:53:59 +0900 (32983de) +++ _po/ja/tutorial/1.0.3/index.po 2014-05-26 19:54:33 +0900 (39de846) @@ -24,10 +24,12 @@ msgstr "## 初心者とGroonga利用者向け" msgid "" " * [Getting started/How to migrate from Groonga?](groonga/)\n" -" * [How to backup and restore the database?](restore/)" +" * [How to backup and restore the database?](restore/)\n" +" * [How to add a new replica to an existing cluster?](add-replica/)" msgstr "" " * [使ってみる/Groongaからの移行手順](groonga/)\n" -" * [データベースのバックアップと復元](restore/)" +" * [データベースのバックアップと復元](restore/)\n" +" * [既存クラスタへのreplicaの追加](add-replica/)" msgid "## For low-layer application developers" msgstr "## 低レイヤのアプリケーション開発者向け" Modified: _po/ja/tutorial/1.0.3/restore/index.po (+189 -19) =================================================================== --- _po/ja/tutorial/1.0.3/restore/index.po 2014-05-26 19:53:59 +0900 (f1e8b76) +++ _po/ja/tutorial/1.0.3/restore/index.po 2014-05-26 19:54:33 +0900 (e1bbd52) @@ -36,20 +36,42 @@ msgstr "## 前提条件" msgid "" "* You must have an existing [Droonga][] cluster with some data.\n" " Please complete [the \"getting started\" tutorial](../groonga/) before this.\n" -"* The `dump` plugin must be registered to the `catalog.json` of your Droonga c" -"luster.\n" -" If not, you must add the plugin to the list of `plugins`, like:" +"* Your `catalog.json` must have the dataset `Default`.\n" +" Otherwise, you must change the name of the dataset, like:" msgstr "" "* 何らかのデータが格納されている状態の[Droonga][]クラスタがあること。\n" " このチュートリアルを始める前に、[「使ってみる」のチュートリアル](../groonga/)を完了している事が望ましいです\n" -"* Droongaクラスタの`catalog.json`に`dump`プラグインが登録済みであること。\n" -" 未登録の場合は、以下のようにして`plugins`の一覧に`dump`を追加して置いて下さい:" +"* `catalog.json`に`Default`データセットがあること。\n" +" 別の名前でデータセットを作成していた場合は、名前を変更しておいて下さい:" + +msgid "" +" \"datasets\": {\n" +" - \"Starbucks\": {\n" +" + \"Default\": {" +msgstr "" + +msgid "" +"* Your `catalog.json` must have the plugin `dump` in the list of plugins.\n" +" Otherwise, you must add the plugin to the list of `plugins`, like:" +msgstr "" +"* `catalog.json`に`dump`プラグインが登録済みであること。\n" +" 未登録の場合は、以下のようにして`plugins`の一覧に`dump`を追加しておいて下さい:" msgid "" " - \"plugins\": [\"groonga\", \"crud\", \"search\"],\n" " + \"plugins\": [\"groonga\", \"crud\", \"search\", \"dump\"]," msgstr "" +msgid "" +"* Your `catalog.json` must not have any information in its `schema` section.\n" +" Otherwise, you must make the `schema` section empty, like:" +msgstr "" +"* `catalog.json`の`schema`セクションが情報を含んでいないこと・\n" +" スキーマを定義していた場合は、以下のようにして`schema`セクションを空にしておいて下さい:" + +msgid " \"datasets\": {}," +msgstr "" + msgid "## Backup data in a Droonga cluster" msgstr "## Droongaクラスタのデータをバックアップする" @@ -140,11 +162,13 @@ msgid "Note to these things:" msgstr "" msgid "" -" * You must specify valid host name or IP address of one of nodes, via the opt" -"ion `--host`.\n" +" * You must specify valid host name or IP address of one of nodes in the clust" +"er, via the option `--host`.\n" " * You must specify valid host name or IP address of the computer you are logg" "ed in, via the option `--receiver-host`.\n" -" It is used by the Droonga cluster, to send messages." +" It is used by the Droonga cluster, to send messages.\n" +" * The result includes complete commands to construct a dataset, same to the s" +"ource." msgstr "" msgid "" @@ -154,27 +178,176 @@ msgstr "" msgid "" " # drndump --host=192.168.0.10 \\\n" -" --receiver-host=192.168.0.12 \\\n" +" --receiver-host=192.168.0.12 \\\n" " > dump.jsons" msgstr "" msgid "## Restore data to a Droonga cluster" msgstr "## Droongaクラスタのデータを復元する" -msgid "TBD" -msgstr "" - msgid "### Install `droonga-client`" msgstr "### `droonga-client`のインストール" -msgid "### Replicate data from another Droonga cluster" -msgstr "### 他のDroongaクラスタからデータを複製する" +msgid "The result of `drndump` command is a list of Droonga messages." +msgstr "" + +msgid "" +"You need to use `droonga-request` command to send it to your Droogna cluster.\n" +"Install the command included in the package `droonga-client`, via rubygems:" +msgstr "" + +msgid " # gem install droonga-client" +msgstr "" + +msgid "" +"After that, establish that the `droonga-request` command has been installed su" +"ccessfully:" +msgstr "" + +msgid "" +" # droonga-request --version\n" +" droonga-request 0.1.7" +msgstr "" + +msgid "### Restore data from a dump result, to an empty Droonga cluster" +msgstr "### ダンプ結果から空のDroongaクラスタへデータを復元する" + +msgid "" +"Because the result of the `drndump` command includes complete information to c" +"onstruct a dataset same to the source, you can re-construct your cluster from " +"a dump file, even if the cluster is broken.\n" +"You just have to pour the contents of the dump file to an empty cluster, by th" +"e `droonga-request` command." +msgstr "" + +msgid "" +"For example, if your cluster is empty and constructed from two nodes `192.168." +"0.10` and `192.168.0.11`, now your are logged in to the host `192.168.0.12`, a" +"nd there is a dump file `dump.jsons` in the current directory, then the comman" +"d line is:" +msgstr "" + +msgid "" +"~~~\n" +"# droonga-request --host=192.168.0.10 \\\n" +" --receiver-host=192.168.0.12 \\\n" +" dump.jsons\n" +"Elapsed time: 0.027541763\n" +"{\n" +" \"inReplyTo\": \"1401099940.5548894\",\n" +" \"statusCode\": 200,\n" +" \"type\": \"table_create.result\",\n" +" \"body\": [\n" +" [\n" +" 0,\n" +" 1401099940.591563,\n" +" 0.00031876564025878906\n" +" ],\n" +" true\n" +" ]\n" +"}\n" +"...\n" +"Elapsed time: 0.008678467\n" +"{\n" +" \"inReplyTo\": \"1401099941.0794394\",\n" +" \"statusCode\": 200,\n" +" \"type\": \"column_create.result\",\n" +" \"body\": [\n" +" [\n" +" 0,\n" +" 1401099941.1154332,\n" +" 0.00027871131896972656\n" +" ],\n" +" true\n" +" ]\n" +"}\n" +"~~~" +msgstr "" + +msgid "" +" * You must specify valid host name or IP address of one of nodes in the clust" +"er, via the option `--host`.\n" +" * You must specify valid host name or IP address of the computer you are logg" +"ed in, via the option `--receiver-host`.\n" +" It is used by the Droonga cluster, to send response messages." +msgstr "" + +msgid "### Replicate data from another Droonga cluster, to an empty Droonga cluster" +msgstr "### Droongaクラスタから別の空のDroongaクラスタへデータを複製する" + +msgid "" +"If you have multiple Droonga clusters, then you can replicate one to another w" +"ith `drndump` and `droonga-request` commands." +msgstr "" + +msgid "" +"The command `drndump` reports its result to the standard output.\n" +"On the other hand, `droonga-request` can receive messages from the standard in" +"put.\n" +"So, you just connect them with a pipe, to replicate contents of a cluster to a" +"nother." +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 "" + +msgid "" +"~~~\n" +"# drndump --host=192.168.0.10 \\\n" +" --receiver-host=192.168.0.12 | \\\n" +" droonga-request --host=192.168.0.10 \\\n" +" --receiver-host=192.168.0.12\n" +"Elapsed time: 0.027541763\n" +"{\n" +" \"inReplyTo\": \"1401099940.5548894\",\n" +" \"statusCode\": 200,\n" +" \"type\": \"table_create.result\",\n" +" \"body\": [\n" +" [\n" +" 0,\n" +" 1401099940.591563,\n" +" 0.00031876564025878906\n" +" ],\n" +" true\n" +" ]\n" +"}\n" +"...\n" +"Elapsed time: 0.008678467\n" +"{\n" +" \"inReplyTo\": \"1401099941.0794394\",\n" +" \"statusCode\": 200,\n" +" \"type\": \"column_create.result\",\n" +" \"body\": [\n" +" [\n" +" 0,\n" +" 1401099941.1154332,\n" +" 0.00027871131896972656\n" +" ],\n" +" true\n" +" ]\n" +"}\n" +"~~~" +msgstr "" msgid "## Conclusion" msgstr "## まとめ" -msgid "In this tutorial, you did backup a [Droonga][] cluster and restore the data." -msgstr "このチュートリアルでは、[Droonga][]クラスタのバックアップとデータの復元の方法を実践しました。" +msgid "" +"In this tutorial, you did backup a [Droonga][] cluster and restore the data.\n" +"Moreover, you did replicate contents of an existing Droogna cluster to another" +" empty cluster." +msgstr "" +"このチュートリアルでは、[Droonga][]クラスタのバックアップとデータの復元の方法を実践しました。\n" +"また、既存のDroongaクラスタの内容を別の空のクラスタへ複製する方法も実践しました。" + +msgid "" +"Next, let's learn [how to add a new replica to an existing Droonga cluster](.." +"/add-replica/)." +msgstr "続いて、[既存のDroongaクラスタに新しいreplicaを追加する手順](../add-replica/)を学びましょう。" msgid "" " [Ubuntu]: http://www.ubuntu.com/\n" @@ -182,6 +355,3 @@ msgid "" " [Groonga]: http://groonga.org/\n" " [command reference]: ../../reference/commands/" msgstr "" - -msgid "### Restore data from a dump result" -msgstr "## ダンプ結果からデータを復元する" Modified: ja/tutorial/1.0.3/groonga/index.md (+6 -4) =================================================================== --- ja/tutorial/1.0.3/groonga/index.md 2014-05-26 19:53:59 +0900 (ddb5890) +++ ja/tutorial/1.0.3/groonga/index.md 2014-05-26 19:54:33 +0900 (01f2b43) @@ -87,13 +87,13 @@ Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュ このファイルはDroongaクラスタの構成を定義する物です。 データセット名を`--dataset`オプション、各DroongaノードのIPアドレスを`--hosts`オプションで、以下のように指定して下さい: - # droonga-catalog-generate --hosts=192.168.0.10,192.168.0.11 \ - --output=./catalog.json + # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.11 \ + --output=./catalog.json コンピュータが1台だけの単なる検証用の構成をセットアップする場合は、以下のようにします: - # droonga-catalog-generate --hosts=127.0.0.1 \ - --output=./catalog.json + # droonga-engine-catalog-generate --hosts=127.0.0.1 \ + --output=./catalog.json 6. *すべてのDroongaノードに*、先程作成した`catalog.json`を共有します。 @@ -280,6 +280,8 @@ Moreover, you load data to it and select data from it successfully, as a [Groong Currently, Droonga supports only some limited features of Groonga compatible commands. See the [command reference][] for more details. +Next, let's learn [how to backup and restore contents of a Droonga cluster](../restore/). + [Ubuntu]: http://www.ubuntu.com/ [Droonga]: https://droonga.org/ [Groonga]: http://groonga.org/ Modified: ja/tutorial/1.0.3/index.md (+1 -0) =================================================================== --- ja/tutorial/1.0.3/index.md 2014-05-26 19:53:59 +0900 (36d4f86) +++ ja/tutorial/1.0.3/index.md 2014-05-26 19:54:33 +0900 (3dd910b) @@ -16,6 +16,7 @@ layout: ja * [使ってみる/Groongaからの移行手順](groonga/) * [データベースのバックアップと復元](restore/) + * [既存クラスタへのreplicaの追加](add-replica/) ## 低レイヤのアプリケーション開発者向け Modified: ja/tutorial/1.0.3/restore/index.md (+124 -11) =================================================================== --- ja/tutorial/1.0.3/restore/index.md 2014-05-26 19:53:59 +0900 (e3eff45) +++ ja/tutorial/1.0.3/restore/index.md 2014-05-26 19:54:33 +0900 (0bf2ed7) @@ -23,11 +23,24 @@ layout: ja * 何らかのデータが格納されている状態の[Droonga][]クラスタがあること。 このチュートリアルを始める前に、[「使ってみる」のチュートリアル](../groonga/)を完了している事が望ましいです -* Droongaクラスタの`catalog.json`に`dump`プラグインが登録済みであること。 - 未登録の場合は、以下のようにして`plugins`の一覧に`dump`を追加して置いて下さい: +* `catalog.json`に`Default`データセットがあること。 + 別の名前でデータセットを作成していた場合は、名前を変更しておいて下さい: + + "datasets": { + - "Starbucks": { + + "Default": { + +* `catalog.json`に`dump`プラグインが登録済みであること。 + 未登録の場合は、以下のようにして`plugins`の一覧に`dump`を追加しておいて下さい: - "plugins": ["groonga", "crud", "search"], + "plugins": ["groonga", "crud", "search", "dump"], + +* `catalog.json`の`schema`セクションが情報を含んでいないこと・ + スキーマを定義していた場合は、以下のようにして`schema`セクションを空にしておいて下さい: + + "datasets": {}, + ## Droongaクラスタのデータをバックアップする @@ -99,37 +112,137 @@ For example, if your cluster is constructed from two nodes `192.168.0.10` and `1 Note to these things: - * You must specify valid host name or IP address of one of nodes, via the option `--host`. + * You must specify valid host name or IP address of one of nodes in the cluster, via the option `--host`. * You must specify valid host name or IP address of the computer you are logged in, via the option `--receiver-host`. It is used by the Droonga cluster, to send messages. + * The result includes complete commands to construct a dataset, same to the source. The result is printed to the standard output. To save it as a JSONs file, you'll use a redirection like: # drndump --host=192.168.0.10 \ - --receiver-host=192.168.0.12 \ + --receiver-host=192.168.0.12 \ > dump.jsons ## Droongaクラスタのデータを復元する -TBD - ### `droonga-client`のインストール -TBD +The result of `drndump` command is a list of Droonga messages. + +You need to use `droonga-request` command to send it to your Droogna cluster. +Install the command included in the package `droonga-client`, via rubygems: + + # gem install droonga-client + +After that, establish that the `droonga-request` command has been installed successfully: + + # droonga-request --version + droonga-request 0.1.7 -## ダンプ結果からデータを復元する +### ダンプ結果から空のDroongaクラスタへデータを復元する -TBD +Because the result of the `drndump` command includes complete information to construct a dataset same to the source, you can re-construct your cluster from a dump file, even if the cluster is broken. +You just have to pour the contents of the dump file to an empty cluster, by the `droonga-request` command. -### 他のDroongaクラスタからデータを複製する +For example, if your cluster is empty and constructed from two nodes `192.168.0.10` and `192.168.0.11`, now your are logged in to the host `192.168.0.12`, and there is a dump file `dump.jsons` in the current directory, then the command line is: + +~~~ +# droonga-request --host=192.168.0.10 \ + --receiver-host=192.168.0.12 \ + dump.jsons +Elapsed time: 0.027541763 +{ + "inReplyTo": "1401099940.5548894", + "statusCode": 200, + "type": "table_create.result", + "body": [ + [ + 0, + 1401099940.591563, + 0.00031876564025878906 + ], + true + ] +} +... +Elapsed time: 0.008678467 +{ + "inReplyTo": "1401099941.0794394", + "statusCode": 200, + "type": "column_create.result", + "body": [ + [ + 0, + 1401099941.1154332, + 0.00027871131896972656 + ], + true + ] +} +~~~ + +Note to these things: + + * You must specify valid host name or IP address of one of nodes in the cluster, via the option `--host`. + * You must specify valid host name or IP address of the computer you are logged in, via the option `--receiver-host`. + It is used by the Droonga cluster, to send response messages. + + +### Droongaクラスタから別の空のDroongaクラスタへデータを複製する + +If you have multiple Droonga clusters, then you can replicate one to another with `drndump` and `droonga-request` commands. + +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 replicate 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: + +~~~ +# drndump --host=192.168.0.10 \ + --receiver-host=192.168.0.12 | \ + droonga-request --host=192.168.0.10 \ + --receiver-host=192.168.0.12 +Elapsed time: 0.027541763 +{ + "inReplyTo": "1401099940.5548894", + "statusCode": 200, + "type": "table_create.result", + "body": [ + [ + 0, + 1401099940.591563, + 0.00031876564025878906 + ], + true + ] +} +... +Elapsed time: 0.008678467 +{ + "inReplyTo": "1401099941.0794394", + "statusCode": 200, + "type": "column_create.result", + "body": [ + [ + 0, + 1401099941.1154332, + 0.00027871131896972656 + ], + true + ] +} +~~~ -TBD ## まとめ このチュートリアルでは、[Droonga][]クラスタのバックアップとデータの復元の方法を実践しました。 +また、既存のDroongaクラスタの内容を別の空のクラスタへ複製する方法も実践しました。 + +続いて、[既存のDroongaクラスタに新しいreplicaを追加する手順](../add-replica/)を学びましょう。 [Ubuntu]: http://www.ubuntu.com/ [Droonga]: https://droonga.org/ -------------- next part -------------- HTML����������������������������...下載