从MongoDB到Elastic Search(5.6.5),我使用Elastic2DocManager与Mongo-Connector同步数据库:
standard_form_tokens = []
for sentence in vallist:
standard_form_tokens.append([])
for satupsg in sentence:
anotasi = satupsg.split('/')
kata, tag, ner = anotasi[0], anotasi[1], anotasi[2]
standard_form_tokens[-1].append((kata, tag.lower(), ner))
在Elastic Search上看到mongodb_meta的docs.deleted有一些更新后:
mongo-connector -m localhost:27017 -t localhost:9200 -d elastic2_doc_manager
mongo-connector停止工作并出现以下错误:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open mongodb_meta 3wd6OjTT6tD3f6ZGezZw 5 1 1337173 8372 192.9mb 192.9mb
此错误的原因是什么?
答案 0 :(得分:0)
已安装必需的python软件包,这是我的requirements.txt外观。
astroid==1.6.5
autopep8==1.3.5
certifi==2018.8.24
elasticsearch==6.3.1
elasticsearch-dsl==6.2.1
isort==4.3.4
lazy-object-proxy==1.3.1
mccabe==0.6.1
pycodestyle==2.4.0
pylint==1.9.2
pymongo==3.7.1
rope==0.11.0
six==1.11.0
urllib3==1.23
wrapt==1.10.11