zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suman p <sumanp0...@gmail.com>
Subject Transaction log: /logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic number 0 != 1514884167
Date Tue, 21 May 2013 13:03:47 GMT
Hello,

 We are running zookeeper ensemble of 3 servers.


Today one of our sever died. When i restarted the sever i am getting the
following error


java.io.IOException: Transaction log:
/logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic
number 0 != 1514884167
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.inStreamCreated(FileTxnLog.java:560)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.createInputArchive(FileTxnLog.java:577)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.goToNextLog(FileTxnLog.java:543)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.init(FileTxnLog.java:525)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.<init>(FileTxnLog.java:504)
        at
org.apache.zookeeper.server.persistence.FileTxnLog.read(FileTxnLog.java:341)
        at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:132)
        at
org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:417)
        at
org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:409)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:151)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
[2013-05-21 00:30:32,496] [ERROR]
[org.apache.zookeeper.server.quorum.QuorumPeerMain] [Unexpected exception,
exiting abnormally]
java.lang.RuntimeException: Unable to run quorum server
        at
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:454)
        at
org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:409)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:151)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.io.IOException: Transaction log:
/logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic
number 0 != 1514884167
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.inStreamCreated(FileTxnLog.java:560)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.createInputArchive(FileTxnLog.java:577)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.goToNextLog(FileTxnLog.java:543)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.init(FileTxnLog.java:525)
        at
org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.<init>(FileTxnLog.java:504)
        at
org.apache.zookeeper.server.persistence.FileTxnLog.read(FileTxnLog.java:341)
        at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:132)
        at
org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at
org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:417)
        ... 4 more



Here is our configuration

tickTime=2000

initLimit=10

syncLimit=5

dataDir=/data

clientPort=2181

dataLogDir=/logs/zookeeper/

minSessionTimeout=5000
maxSessionTimeout=100000

server.1=host1:3888:4888
server.2=host2:3888:4888
server.3=host3:3888:4888


autopurge.snapRetainCount=3
autopurge.purgeInterval=1


Not sure what went wrong.  Any help is greatly appreciated.


Regards,
Suman

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message