• zookeeper数据迁移方法


    有一个好用的开源zkcopy,直接搞定。
    git clone https://github.com/kshchepanovskyi/zkcopy.git

    介绍:

    zkcopy

    Tool for fast copying ZooKeeper data between different clusters.
    Optimized for copying big volumes of data over WAN.

    Build

    Requires apache maven 3.

    mvn clean install

    Usage

    java -Dsource="server:port/path" 
         -Ddestination="server:port/path" 
         -Dthreads=10 
         -DremoveDeprecatedNodes=true 
         -jar target/zkcopy-*-jar-with-dependencies.jar

    If using docker then:

    docker pull kshchepanovskyi/zkcopy
    docker run --rm -it kshchepanovskyi/zkcopy 
        -Dsource="server:port/path" 
        -Ddestination="server:port/path" 
        -Dthreads=10 
        -DremoveDeprecatedNodes=true
    • source - set source cluster address and root node to be copied
    • destination - set target cluster address and root node location where to
      copy data
    • threads - specify number of parallel workers. If latency is
      high, then increasing this number might significantly improve performance
    • removeDeprecatedNodes - set it to true to remove nodes that are
      present on destination but missing on source
  • 相关阅读:
    git取消文件跟踪
    servlet
    查杀端口进程
    初始化git仓库,并push到远端
    tomcat
    bootstrap
    idea中web工程错误
    i++和++i
    js算法
    编程工具
  • 原文地址:https://www.cnblogs.com/qianggezhishen/p/7349368.html
Copyright © 2020-2023  润新知