Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper, mail # dev - Facing one issue while upgrading from zookeeper-3.4.2 to zookeeper-3.4.3


Copy link to this message
-
Re: Facing one issue while upgrading from zookeeper-3.4.2 to zookeeper-3.4.3
Patrick Hunt 2012-06-21, 05:25
We should probably remove that, or at least document it. The upgrade
facility is for upgrading from version 2 to version 3. There is no
need to run upgrade if upgrading a minor/fix version.

Patrick

On Wed, Jun 20, 2012 at 4:03 AM, Nijel s f <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> I am trying one simple upgrade scenario.
>
>
>
> Existing version : zookeeper-3.4.2
>
> New version : zookeeper-3.4.3
>
>
>
> While giving the command i am getting the given exception !
>
>
>
> Note:
>
> For the zookeeper 3.4.2 i configured only datadir.. so snapshot dir is also using this dir..
>
> Installed zookeeper 3.4.3  in another directory and giving the old datadir for upgrade..
>
>
>
>
>
> Am i missing some steps ?
>
>
>
> I could not find the information for upgrade steps anywhere !
>
>
>
> Pls help me to continue..
>
>
>
> =================================================================================================================================>
> /home/zookeeper-3.4.3/bin # ./zkServer.sh upgrade <zookeeper-3.4.2_dataDir> <zookeeper-3.4.2_snapshotDir>
> JMX enabled by default
> Using config: /home/zookeeper-3.4.2/dataDir/version-2/
> mkdir: cannot create directory `': No such file or directory
> upgrading the servers to 3.*
> 2012-06-20 20:43:25,047 [myid:] - INFO  [main:UpgradeMain@79] - Creating previous version data dir /home/zookeeper-3.4.2/dataDir/version-2/version-1
> 2012-06-20 20:43:25,051 [myid:] - INFO  [main:UpgradeMain@85] - Creating previous version snapshot dir /home/zookeeper-3.4.2/dataDir/version-2/version-1
> 2012-06-20 20:43:25,051 [myid:] - INFO  [main:UpgradeMain@92] - Creating current data dir /home/zookeeper-3.4.2/dataDir/version-2/version-2
> 2012-06-20 20:43:25,052 [myid:] - INFO  [main:UpgradeMain@98] - Creating current snapshot dir /home/zookeeper-3.4.2/dataDir/version-2/version-2
> 2012-06-20 20:43:25,052 [myid:] - INFO  [main:UpgradeMain@122] - Renaming /home/zookeeper-3.4.2/dataDir/version-2/log.100000001 to /home/zookeeper-3.4.2/dataDir/version-2/version-1/log.100000001
> 2012-06-20 20:43:25,053 [myid:] - INFO  [main:UpgradeMain@122] - Renaming /home/zookeeper-3.4.2/dataDir/version-2/snapshot.0 to /home/zookeeper-3.4.2/dataDir/version-2/version-1/snapshot.0
> 2012-06-20 20:43:25,063 [myid:] - INFO  [main:UpgradeMain@158] - Creating new data tree
> 2012-06-20 20:43:25,073 [myid:] - ERROR [main:UpgradeMain@177] - Upgrade Error: Please read the docs for manual failure recovery
> java.io.EOFException
>        at java.io.DataInputStream.readFully(DataInputStream.java:180)
>        at java.io.DataInputStream.readLong(DataInputStream.java:399)
>        at org.apache.jute.BinaryInputArchive.readLong(BinaryInputArchive.java:67)
>        at org.apache.zookeeper.server.upgrade.UpgradeSnapShotV1.deserializeSnapshot(UpgradeSnapShotV1.java:89)
>        at org.apache.zookeeper.server.upgrade.UpgradeSnapShotV1.loadThisSnapShot(UpgradeSnapShotV1.java:208)
>        at org.apache.zookeeper.server.upgrade.UpgradeSnapShotV1.getNewDataTree(UpgradeSnapShotV1.java:324)
>        at org.apache.zookeeper.server.upgrade.UpgradeMain.runUpgrade(UpgradeMain.java:159)
>        at org.apache.zookeeper.server.upgrade.UpgradeMain.main(UpgradeMain.java:175)
> Upgrading ...
>
> =================================================================================================================================