Jubatus は ZooKeeper 上のリソースを操作するが、そのリソースが期待する状態ではなかった場合の動作について、明確な方針がない。
以下を定義する。
- ZooKeeper 上のリソースの CRU(D) 操作に関する方針
+----------+--------------+----------+----------+--------------+-------------------+-------------------------------------------+ | |
| /jubatus | /config | /type | /name | config の内容が書き込まれる | | |
+ +--------------+----------+----------+--------------+-------------------+-------------------------------------------+ | |
| | /actors | /type | /name | /config_lock | /rlock_0000000001 | jubaserver 起動時に作成される | | |
+ + + + + +-------------------+-------------------------------------------+ | |
| | | | | | /wlock_0000000001 | jubaconfig で config 書込み中に作成される | | |
+ + + + +--------------+-------------------+-------------------------------------------+ | |
| | | | | /nodes | /ip_port | jubaserver の IPアドレス と ポート番号 | | |
+ + + |
00000000 6a 75 62 61 74 75 73 01 00 00 00 04 00 03 00 e8 |jubatus.........| | |
00000010 01 00 00 00 00 00 00 0a 5f 21 13 95 01 ce 51 6f |........_!....Qo| | |
00000020 8b 03 aa 63 6c 61 73 73 69 66 69 65 72 a4 74 65 |...classifier.te| | |
00000030 73 74 da 01 ce 7b 0a 20 20 22 6d 65 74 68 6f 64 |st...{. "method| | |
00000040 22 3a 20 22 41 52 4f 57 22 2c 0a 20 20 22 63 6f |": "AROW",. "co| | |
00000050 6e 76 65 72 74 65 72 22 3a 20 7b 0a 20 20 20 20 |nverter": {. | | |
00000060 22 6e 75 6d 5f 66 69 6c 74 65 72 5f 74 79 70 65 |"num_filter_type| | |
00000070 73 22 3a 20 7b 7d 2c 0a 20 20 20 20 22 6e 75 6d |s": {},. "num| | |
00000080 5f 66 69 6c 74 65 72 5f 72 75 6c 65 73 22 3a 20 |_filter_rules": | | |
00000090 5b 5d 2c 0a 20 20 20 20 22 73 74 72 69 6e 67 5f |[],. "string_| |
standalone mode | |
=============== | |
$ jubaclassifier -f CONFIGFILE_PATH | |
CONFIGFILE_PATH is Jubatus's machine learning configuration. | |
For example, see https://github.com/jubatus/jubatus/tree/develop/src/server/test_input . | |
A new key "parameter" was added for each algorithm (some algorithm has no parameter). | |