Try SnapshotFormatter:
https://stackoverflow.com/questions/17894808/how-do-one-read-the-zookeeper-transaction-log
We might need to have a SnapshotToolkit tool to verify snapshot files similar to TxnLogToolkit.
Andor
> On 2019. Oct 30., at 23:48, rammohan ganapavarapu <rammohanganap@gmail.com> wrote:
>
> There are cases where zk will fail to start with invalid snapshot if
> snapshot file is corrupt or incomplete, i wanted to verify if the snapshot
> is not corrupt or complete before restore.
>
> Ram
>
> On Wed, Oct 30, 2019 at 2:25 PM Enrico Olivelli <eolivelli@gmail.com> wrote:
>
>> Ram
>>
>> Il mer 30 ott 2019, 21:23 rammohan ganapavarapu <rammohanganap@gmail.com>
>> ha scritto:
>>
>>> Hi,
>>>
>>> I am trying to see is there any tool available to verify the zk snapshot
>>> file, any such thing exist?
>>>
>>
>> What do you mean with 'verify'? To inspect the contents?
>>
>> Enrico
>>
>>>
>>> Thanks,
>>> Ram
>>>
>>
|