From 03661e7eb5a3fa127423ff7918f500454b452f8b Mon Sep 17 00:00:00 2001 From: xulongteng Date: Tue, 13 Aug 2019 16:32:30 +0800 Subject: [PATCH] fix doc --- doc/DEPLOY.md | 14 ++++++++++++-- doc/deploy/._wait-update.png | Bin 0 -> 4096 bytes doc/deploy/wait-update.png | Bin 0 -> 6829 bytes 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 doc/deploy/._wait-update.png create mode 100755 doc/deploy/wait-update.png diff --git a/doc/DEPLOY.md b/doc/DEPLOY.md index f6ae8079..1af74ebb 100755 --- a/doc/DEPLOY.md +++ b/doc/DEPLOY.md @@ -391,7 +391,7 @@ $ tree nohup bin/cube & nohup bin/cube-agent -P 8001 & ``` -其中cube-agent在启动命令中使用 -P 参数指定监听端口号 +其中cube-agent在启动命令中使用 -P 参数指定监听端口号,在log文件夹可以查看cube server的日志。 ### 3. cube-builder部署 @@ -435,7 +435,7 @@ $ tree #### 3.3 启动cube-builder ##### 3.3.1接入配送流程 拷贝bin/cube-builder和cube-transfer程序到同一机器。 -相关参数已经封装好,只需要在cube-transfer的conf/transfer.conf里配置好cube-builder的地址、源数据和建库数据output的地址即可, 执行cube-transfer时会通过配置文件中的路径调用cube-builder,所以通常不需要手动执行cube-builder。 +相关参数已经封装好,只需要在cube-transfer的conf/transfer.conf里配置好cube-builder的地址、源数据和建库数据output的地址即可, 执行cube-transfer时会通过配置文件中的路径调用cube-builder,所以通常不需要手动执行cube-builder。 ##### 3.3.2单机builder @@ -530,6 +530,7 @@ $ tree builder输入数据的源格式必须为seqfile,key为uint64(输入必须为二进制8个字节),value为序列化的二进制。 提供明文转seqfile工具和读seqfile工具,位置在output/tool里kvtool.py和kv_to_seqfile.py。 kvtool.py 是读seqfile工具,会输出读到的kv信息,参数是文件地址假设在/home/work/test下的seqfile,运行方式如下: + ``` python kvtool.py /home/work/test/seqfile ``` @@ -594,7 +595,16 @@ $ tree ```bash ./cube-transfer -p 8099 -l 4 --config conf/transfer.conf ``` +配送完毕cube-transfer会进入监听数据更新的状态,日志以及命令行会输出以下信息 + +![wait-update](./deploy/wait-update.png) + + + + + #### 4.4 cube-transfer支持查询接口 + > 获取当前词典状态 > http://10.10.10.5:8099/dict/info diff --git a/doc/deploy/._wait-update.png b/doc/deploy/._wait-update.png new file mode 100644 index 0000000000000000000000000000000000000000..94525564456931a25aec334d71e0b57e135c0d8f GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vdQll) z57EJ}0;pUIO$#HC4;5EQ&d=3LEGWoH)yqvSNlZyBNwkX3_I2?rNzDx{PAv*aOfP0& zNGiz5EG{uHSik`>i4kN12*79v58`GRdz2mxfzc2c4S~@R7!85Z5Eu=C(GVC7fzc2c z4S~@R7*Qbr>LS9siE<$snZ*i4sm1xFMaiiOY57Ij3YmE&sd*)t`FV*sIh6`Isc9t& ZNjZsm*}%T=a0n<=|HFMG!yxznKLF1@FZcie literal 0 HcmV?d00001 diff --git a/doc/deploy/wait-update.png b/doc/deploy/wait-update.png new file mode 100755 index 0000000000000000000000000000000000000000..29989a345861d32444080438a18db0a1743df2c0 GIT binary patch literal 6829 zcmZu$1yCHol3m<`WRZ{rw*-d(!66%5f8c(0WKvj001D6lYOfO0H9O+o6Io`k#2c$T?1^q^SyUXx zkdRyxZ8B{~DPm$tb18BRpdKELjU?L~S#OwMFx$(67M+^BbN@AB_f_GOb~uxzbEo3Y z=rD2&l7#~RifGdfhJ68SMZk-=X;FR^ZUKet0bLT*rKsBA-E%V%Emv1`3A2yL*0xT9 z+_Q_Y@17L_5BHr>l!i2$C;%z?tiH4}XCkqnJ+60jBUpe&tlCWW;j|byMhIV_Y#_Ec z#cqro71eG7j&uRD?}o`7_8|bw?9x1e4;a{qfEaYaBsSvFh}}uxQYIk@V_k8~Tj#{m z=cuCe{ z#7b%va_lK<**7KjTG!_n>-6ND<{0IPyz-Co;&C4W!kYuvhuY`s>55bu63y7Um`OYY_&%|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