python 环境3.5
pip install mongo-connector
pip install elastic2-doc-manager
mongdb oplog结构:
"ts" : Timestamp(6417682881216249, 1), 时间戳
"h" : NumberLong(0), 长度
"v" : 2,
"op" : "n", 操作类型
"ns" : "", 操作的库和集合
"o2" : "_id" update条件
"o" : {} 操作值,即document
op的几种属性:
insert,'i'
update, 'u'
remove(delete), 'd'
cmd, 'c'
noop, 'n' 空操作
https://www.jianshu.com/p/9d29abcef1e4
mogo同步 hbase https://blog.csdn.net/yangang1223/article/details/80051928
oplog详解
https://www.cnblogs.com/Joans/p/7723554.html