Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Transaction log: /logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic number 0 != 1514884167


Copy link to this message
-
RE: Transaction log: /logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic number 0 != 1514884167
Hi Suman,

This should be related to hostname. You have used below

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

try to use actual hostname (or IP address preferable). I am using following in my Zookeeper and it is working fine.

server.1=10.20.5.129:2888:3888
server.2=10.20.5.194:2888:3888
server.3=10.20.5.195:2888:3888

Thanks,
Dilip Kumar
3K50, One Lake Street (Pearson Education)
Upper Saddle River, NJ- 07458
Office# 201-236-7163
Cell#201-515-0606
[EMAIL PROTECTED]

-----Original Message-----
From: suman p [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2013 9:04 AM
To: [EMAIL PROTECTED]
Subject: Transaction log: /logs/jhe/nc/apps/zookeeper/version-2/log.1400470027 has invalid magic number 0 != 1514884167

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

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB