[Groonga-commit] droonga/droonga.org at a4789b2 [gh-pages] Empty database via HTTP API

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jul 29 14:17:22 JST 2014


YUKI Hiroshi	2014-07-29 14:17:22 +0900 (Tue, 29 Jul 2014)

  New Revision: a4789b2f18aa6ffe5ef4cfe390a007393793106a
  https://github.com/droonga/droonga.org/commit/a4789b2f18aa6ffe5ef4cfe390a007393793106a

  Message:
    Empty database via HTTP API

  Modified files:
    _po/ja/tutorial/1.0.5/dump-restore/index.po
    ja/tutorial/1.0.5/dump-restore/index.md
    tutorial/1.0.5/dump-restore/index.md

  Modified: _po/ja/tutorial/1.0.5/dump-restore/index.po (+5 -8)
===================================================================
--- _po/ja/tutorial/1.0.5/dump-restore/index.po    2014-07-29 14:14:01 +0900 (eb2545c)
+++ _po/ja/tutorial/1.0.5/dump-restore/index.po    2014-07-29 14:17:22 +0900 (3515056)
@@ -355,16 +355,13 @@ msgstr ""
 msgid ""
 "    (on 192.168.0.11)\n"
 "    # host=192.168.0.11\n"
-"    # export DROONGA_BASE_DIR=$HOME/droonga\n"
-"    # kill $(cat $DROONGA_BASE_DIR/droonga-engine.pid)\n"
-"    # rm -r $DROONGA_BASE_DIR/000\n"
-"    # droonga-engine-catalog-modify --source=$PWD/catalog.json \\\n"
+"    # droonga-engine-catalog-modify --source=~/droonga/catalog.json \\\n"
 "                                    --update \\\n"
 "                                    --replica-hosts=$host\n"
-"    # droonga-engine --host=$host \\\n"
-"                     --log-file=$PWD/droonga-engine.log \\\n"
-"                     --daemon \\\n"
-"                     --pid-file=$PWD/droonga-engine.pid"
+"    # endpoint=\"http://192.168.0.11:10041\"\n"
+"    # curl \"${endpoint}/d/table_remove?name=Location\"\n"
+"    # curl \"${endpoint}/d/table_remove?name=Store\"\n"
+"    # curl \"${endpoint}/d/table_remove?name=Term\""
 msgstr ""
 
 msgid ""

  Modified: ja/tutorial/1.0.5/dump-restore/index.md (+5 -8)
===================================================================
--- ja/tutorial/1.0.5/dump-restore/index.md    2014-07-29 14:14:01 +0900 (c058c7a)
+++ ja/tutorial/1.0.5/dump-restore/index.md    2014-07-29 14:17:22 +0900 (df073a3)
@@ -205,16 +205,13 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong
 
     (on 192.168.0.11)
     # host=192.168.0.11
-    # export DROONGA_BASE_DIR=$HOME/droonga
-    # kill $(cat $DROONGA_BASE_DIR/droonga-engine.pid)
-    # rm -r $DROONGA_BASE_DIR/000
-    # droonga-engine-catalog-modify --source=$PWD/catalog.json \
+    # droonga-engine-catalog-modify --source=~/droonga/catalog.json \
                                     --update \
                                     --replica-hosts=$host
-    # droonga-engine --host=$host \
-                     --log-file=$PWD/droonga-engine.log \
-                     --daemon \
-                     --pid-file=$PWD/droonga-engine.pid
+    # endpoint="http://192.168.0.11:10041"
+    # curl "${endpoint}/d/table_remove?name=Location"
+    # curl "${endpoint}/d/table_remove?name=Store"
+    # curl "${endpoint}/d/table_remove?name=Term"
 
 これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタができました。確かめてみましょう:
 

  Modified: tutorial/1.0.5/dump-restore/index.md (+5 -8)
===================================================================
--- tutorial/1.0.5/dump-restore/index.md    2014-07-29 14:14:01 +0900 (467b105)
+++ tutorial/1.0.5/dump-restore/index.md    2014-07-29 14:17:22 +0900 (6401556)
@@ -200,16 +200,13 @@ Construct two clusters by `droonga-engine-catalog-modify` and make one cluster e
 
     (on 192.168.0.11)
     # host=192.168.0.11
-    # export DROONGA_BASE_DIR=$HOME/droonga
-    # kill $(cat $DROONGA_BASE_DIR/droonga-engine.pid)
-    # rm -r $DROONGA_BASE_DIR/000
-    # droonga-engine-catalog-modify --source=$PWD/catalog.json \
+    # droonga-engine-catalog-modify --source=~/droonga/catalog.json \
                                     --update \
                                     --replica-hosts=$host
-    # droonga-engine --host=$host \
-                     --log-file=$PWD/droonga-engine.log \
-                     --daemon \
-                     --pid-file=$PWD/droonga-engine.pid
+    # endpoint="http://192.168.0.11:10041"
+    # curl "${endpoint}/d/table_remove?name=Location"
+    # curl "${endpoint}/d/table_remove?name=Store"
+    # curl "${endpoint}/d/table_remove?name=Term"
 
 After that there are two clusters: one contains `192.168.0.10` with data, another contains `192.168.0.11` with no data. Confirm it:
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index