类 com.taobao.metamorphosis.tools.shell.ShellTool
的使用

使用 ShellTool 的软件包
com.taobao.metamorphosis.tools.shell   
 

com.taobao.metamorphosis.tools.shellShellTool 的使用
 

com.taobao.metamorphosis.tools.shellShellTool 的子类
 class BrokerStatsTool
          Usage: stats -config configFilePath -item item
 class ClosePartitionsTool
           关闭一个topic的指定分区 usage: ClosePartitionsTool -topic xxtopic -start 2 -end 5 ClosePartitionsTool -topic xxtopic -start 2 -end 5 -host 10.2.2.3 ClosePartitionsTool -topic xxtopic -start 2 -end 5 -port 9999 ClosePartitionsTool -topic xxtopic -start 2 -end 5 -host 10.2.2.3 -port 9999
 class CopyOffsetInZk
           usage: CopyOffsetInZk -topic xxtopic -src 1 -target 2 -start 5 -end 10 CopyOffsetInZk -topic xxtopic -src 1 -target 2 -start 5 -end 10 -targetStart 2
 class DeletePartitionFiles
           清除一个topic的某些分区数据 usage: DeletePartitionFiles -dataDir /home/admin/metadata -topic xxtopic -start 5 -end 10
 class MovePartitionFiles
           分区编号(目录)向前或向后偏移,一般用于分区迁移时 usage: MovePartitionFiles -dataDir /home/admin/metadata -topic xxtopic -start 5 -end 10 -offset -5
 class OpenPartitionsTool
           清除一个topic的所有分区 的关闭标记 usage: OpenPartitionsTool -topic xxtopic OpenPartitionsTool -topic xxtopic -host 10.2.2.3 OpenPartitionsTool -topic xxtopic -port 9999 OpenPartitionsTool -topic xxtopic -host 10.2.2.3 -port 9999
 class ReloadConfig
           触发重载配置文件.
 class SlaveResubscribe
           触发slave重启数据同步,在动态增加topic时用 usage: SlaveResubscribe SlaveResubscribe -host 10.2.2.3 SlaveResubscribe -port 9999 SlaveResubscribe -host 10.2.2.3 -port 9999
 class SlaveStatus
           Query asynchronous slave status.
 class StopBrokerTool
           Stop broker usage: StopBrokerTool -host 10.2.2.3 -port 9999
 class TimetunnelPluginTool
           usage: TimetunnelPluginTool -start TimetunnelPluginTool -stop TimetunnelPluginTool -look
 



Copyright © 2010–2013. All rights reserved.