export zkDir=/root/zookeeper/zookeeper-1/
JAVA_OPTS="$JAVA_OPTS -Djava.ext.dirs=$zkDir:$zkDir/lib"
查看事物日志
java $JAVA_OPTS org.apache.zookeeper.server.LogFormatter log.100000001
查看快照
java $JAVA_OPTS org.apache.zookeeper.server.SnapshotFormatter snapshot.0