Re: Backup and restore Solr 8.11.2 collections and configsets in Zookeeper version: 3.7.0

2022-09-22 Thread Kaushal Shriyan
On Thu, Sep 22, 2022 at 4:06 PM Szalay-Bekő Máté 
wrote:

> Hello Kaushal!
>
> One of my Solr colleagues just mentioned a possible solution. What about
> using the solr admin script? With recursive option, like "solr zk -r"
>
> e.g.
>
> bin/solr zk cp -r file:/apache/confgs/whatever/conf zk:/configs/myconf -z
> 111.222.333.444:2181
>
>
> https://solr.apache.org/guide/8_11/solr-control-script-reference.html#copy-between-local-files-and-zookeeper-znodes
>
> Isn't this what you are looking for?
>
> Best regards,
> Máté
>

Thanks Mate and appreciate it. I will try it out and keep you posted.
Thanks in advance.

Best Regards,

Kaushal


Zookeeper leader election for client read and write requests

2022-09-16 Thread Kaushal Shriyan
Hi,

I am running Zookeeper version: 3.7.0 ( 3 nodes -> 1 Leader and 2
Followers) on CentOS Linux release 7.9.2009 (Core). In an ensemble of 3
nodes with 1 leader and 2 followers, if the leader goes down then two
servers can elect a leader among themselves. I have the below questions.

   1. What is the algorithm used to elect the new leader between the
   remaining 2 followers?
   2. During the leader elections process in place, does the client see a
   503 service unavailable for all read or write requests?
   3. In an ensemble of 3 nodes with 1 leader and 2 followers. Is there a
   way to see which node is serving read operations and which node is serving
   write operations?

Please guide me. Any help will be highly appreciable. Thanks in advance.

Best Regards,

Kaushal


Backup and restore Solr 8.11.2 collections and configsets in Zookeeper version: 3.7.0

2022-09-16 Thread Kaushal Shriyan
Hi,

I am running Solr 8.11.2 (2 nodes) and Zookeeper version: 3.7.0 ( 3 nodes
-> 1 Leader and 2 Followers) on Linux release 7.9.2009 (Core).

Is there a way to back up the collections and configsets in Zookeeper
version: 3.7.0 ( 3 nodes -> 1 Leader and 2 Followers) on Linux release
7.9.2009 (Core) as per the details below?

#./zkCli.sh
/bin/java
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /
solrzookeeper
[zk: localhost:2181(CONNECTED) 0] ls /solr/co
*collections*   *configs*
[zk: localhost:2181(CONNECTED) 0]

Thanks in advance. Please guide and I look forward to hearing from you.

Best Regards,

Kaushal


Re: TLS/SSL support to encrypt traffic between zookeeper nodes

2019-03-20 Thread Kaushal Shriyan
Hi Andor,

Thanks Andor for the email.  Any dates planned to release 3.5.5 version? I
do not see 3.5.5 version in https://zookeeper.apache.org/releases.html

Thanks in Advance and i look forward to hearing from you.

Best Regards,

Kaushal


TLS/SSL support to encrypt traffic between zookeeper nodes

2019-03-19 Thread Kaushal Shriyan
Hi,

Is there a TLS/SSL support to encrypt traffic between zookeeper nodes
(internode communication)?

Thanks in Advance and i look forward to hearing from you.

Best Regards,

Kaushal


Leader elections between 2 nodes.

2018-05-09 Thread Kaushal Shriyan
Hi,

In a ensemble of 3 nodes with 1 leader and 2 followers, if the leader goes
down then two servers can elect a leader among themselves. But we need odd
numbers in order to form a quorum. I am confused. Please correct me if i am
understanding it wrong.

Any help will be highly appreciable

Best Regards,

Kaushal


Zookeeper is always CP or AP in terms of CAP theorem

2017-06-19 Thread Kaushal Shriyan
Hi,

I am reading the CAP theorem and zookeeper either satisfies CP or AP. I am
not sure how do we take care of Availability property or Consistency
property. Any examples to understand it better. Please help me understand
if i am completely wrong?

Thanks in Advance.

Regards,

Kaushal


Zab or Paxos Algorithm

2015-12-31 Thread Kaushal Shriyan
Hi,

Does zookeeper uses zab or paxos algorithm for leader election?

Regards,

Kaushal


Re: view number of zookeeper nodes in a single ensemble

2015-12-16 Thread Kaushal Shriyan
Hi Chris,

Thanks for the reply. I am using Zookeeper version 3.4.5. Is it available
in this specific version?

Regards,

Kaushal

On Wed, Dec 16, 2015 at 11:07 PM, Chris Nauroth 
wrote:

> If you're using the dynamic reconfiguration feature available in the 3.5
> release line, then you might prefer to use the "config" CLI command.
> Instead of the static configuration files, this command reads the current
> dynamic configuration stored in the config znode.  More details are
> available here:
>
> http://zookeeper.apache.org/doc/r3.5.1-alpha/zookeeperReconfig.html#sc_reco
> nfig_retrieving
>
>
> --Chris Nauroth
>
>
>
>
> On 12/14/15, 8:23 AM, "Jens Rantil"  wrote:
>
> >Hi Kaushal,
> >
> >You can always execute
> >
> >$ grep '^server.' /etc/zookeeper/conf/zoo.cnf|wc -l
> >3
> >
> >on a server.
> >
> >Cheers,
> >Jens
> >
> >On Mon, Dec 14, 2015 at 2:32 PM, Kaushal Shriyan
> >
> >wrote:
> >
> >> Hi,
> >>
> >> is there a way to see how many nodes are in a single ensemble? For
> >>example
> >> we have nodetool ring in Cassandra which shows the total number of
> >>nodes in
> >> local datacenter and across datacenters.
> >>
> >> Regards,
> >>
> >> Kaushal
> >>
> >
> >
> >
> >--
> >Jens Rantil
> >Backend engineer
> >Tink AB
> >
> >Email: jens.ran...@tink.se
> >Phone: +46 708 84 18 32
> >Web: www.tink.se
> >
> >Facebook <https://www.facebook.com/#!/tink.se> Linkedin
> ><
> http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo&trkI
> >nfo=VSRPsearchId%3A1057023381369207406670%2CVSRPtargetId%3A2735919%2CVSRPc
> >mpt%3Aprimary>
> > Twitter <https://twitter.com/tink>
>
>


view number of zookeeper nodes in a single ensemble

2015-12-14 Thread Kaushal Shriyan
Hi,

is there a way to see how many nodes are in a single ensemble? For example
we have nodetool ring in Cassandra which shows the total number of nodes in
local datacenter and across datacenters.

Regards,

Kaushal


Re: Multi DC ( DC-1 and DC-2) zookeeper setup

2015-12-12 Thread Kaushal Shriyan
On Sun, Dec 13, 2015 at 8:21 AM, Camille Fournier 
wrote:

> 2 members cannot form a quorum in a 5 node setup.
>
> You cannot guarantee a quorum split across two data centers will withstand
> the loss of either data center. You must have a tiebreaker node in a third
> data center.
>
>
Thanks Camille for the email. Not sure if i understand it completely "You
must have a tiebreaker node in a third
data center." I will appreciate if you can provide me some examples to
understand the concept.

Regards,

Kaushal


Re: Multi DC ( DC-1 and DC-2) zookeeper setup

2015-12-12 Thread Kaushal Shriyan
On Sat, Dec 12, 2015 at 8:07 PM, Flavio Junqueira <
fpjunque...@yahoo.com.invalid> wrote:

> Hi Kaushal,
>
> See comments below:
>
> > On 12 Dec 2015, at 04:07, Kaushal Shriyan 
> wrote:
> >
> > Hi,
> >
> > I have couple of questions which are as below :-
> >
> > 1) In a 3 node single ensemble, i have 1 leader and 2 followers. when i
> > explicitly shutdown down the leader for testing purpose, leader election
> > triggers in between the remaining 2 nodes and i see that one of the node
> > becomes a leader and the other is a follower. I am not sure if i
> completely
> > understood it. Since there are only 2 nodes how does leader election
> happen
> > because we need odd numbers in order to form a quorum. Please correct me
> if
> > i am understanding it wrong.
> >
>
> You need an odd number of total members in the ensemble. If you have an
> ensemble of 3, then you can tolerate one crashed server, which means that
> your quorums have size two. That's why two servers can elect a leader among
> them.
>
> In general, if n is the number of servers in the ensemble, then you can
> tolerate f crashed servers and the relationship between n and f is n = 2f +
> 1.
>
> > 2) Is it possible to configure 3 nodes each in DC1 and DC2?
> > meaning 1 ensemble consists of 6 nodes with 3 nodes in DC-1 and 3 nodes
> in
> > DC-2
> > DC-1 1 Leader 2 Followers
> > DC-2  1 Follower 2 Observers.
> >
> > if DC-1 goes down, will there be a leader election between 3 nodes in
> DC-2?
> > Please advise.
>
> No, the two observers won't participate in the election, and the remaining
> participant in DC-2 will keep waiting for DC-1 to come back up.
>
> This question about tolerating a DC going down using a second DC is a
> classic one. If we allowed DC-2 to elect a leader in the total absence of
> processes of DC-1, then we would be prone to split brain scenarios: DC-1
> suspects DC-2 and vice-versa, but they are both up. If you want
> availability when a DC going down, you need a third DC. Also, keep in mind
> that availability here refers to both reads and writes. You can set it up
> to go into read-only mode.
>
> -Flavio
>
>
Thanks Flavio for a detailed explanation. Based on the explanation.

If i lets say if i set the below config

DC-1 1 Leader and 2 Followers
DC-2  2 Followers and 1 observer

Is this a good solution meaning 1 ensemble having 6 nodes. In my earlier
setup it was *1 Follower and 2 Observers in DC-2*. Now i changed it in DC-2
 2 Followers and 1 observer. In this case there are 2 Followers which will
participate in the leader election to form a quorum. Please comment.


Regarding "If you want availability when a DC going down, you need a third
DC. Also, keep in mind that availability here refers to both reads and
writes. You can set it up to go into read-only mode"

you say set up the below configs for high availability.

DC-1 1 Leader and 2 Followers
DC-2  2 Followers and 1 observer
DC-3  2 Followers and 1 observer.

Please advise.

Regards,

Kaushal


Multi DC ( DC-1 and DC-2) zookeeper setup

2015-12-11 Thread Kaushal Shriyan
Hi,

I have couple of questions which are as below :-

1) In a 3 node single ensemble, i have 1 leader and 2 followers. when i
explicitly shutdown down the leader for testing purpose, leader election
triggers in between the remaining 2 nodes and i see that one of the node
becomes a leader and the other is a follower. I am not sure if i completely
understood it. Since there are only 2 nodes how does leader election happen
because we need odd numbers in order to form a quorum. Please correct me if
i am understanding it wrong.

2) Is it possible to configure 3 nodes each in DC1 and DC2?
meaning 1 ensemble consists of 6 nodes with 3 nodes in DC-1 and 3 nodes in
DC-2
 DC-1 1 Leader 2 Followers
 DC-2  1 Follower 2 Observers.

if DC-1 goes down, will there be a leader election between 3 nodes in DC-2?
Please advise.

Regards,

Kaushal


Re: Use FQDN/cname instead of IP address

2015-10-02 Thread Kaushal Shriyan
On Wed, Sep 30, 2015 at 3:26 AM, Kaushal Shriyan 
wrote:

> Hi,
>
> I have a very specific question regarding configuring zookeeper reliable
> distributed coordination system. While configuring can i use fully
> qualified domain name / cname instead of IP address. If in case i want to
> upgrade the server after a years time i can just point the fqdn name to the
> new server ip. Do i need to take care of client connections/sessions for
> dns ttl value?
>
> I will appreciate for the explanation.
>
> Regards,
>
> Kaushal
>

Hi,

Checking in again if somebody can pitch in for help regarding my earlier
post to this Mailing List?

Regards,

Kaushal


Use FQDN/cname instead of IP address

2015-09-30 Thread Kaushal Shriyan
Hi,

I have a very specific question regarding configuring zookeeper reliable
distributed coordination system. While configuring can i use fully
qualified domain name / cname instead of IP address. If in case i want to
upgrade the server after a years time i can just point the fqdn name to the
new server ip. Do i need to take care of client connections/sessions for
dns ttl value?

I will appreciate for the explanation.

Regards,

Kaushal


Re: Odd Number of Nodes spread across 3 Datacenter

2015-08-11 Thread Kaushal Shriyan
Hi,

While referring to
http://whilefalse.blogspot.com.es/2012/12/building-global-highly-available.html
and the description "ZooKeeper requires a majority (n/2 + 1) of servers to
be available and able to communicate with each other in order to form a
quorum" I suppose it is floor function and not ceiling function while
referring to
https://en.wikipedia.org/wiki/Floor_and_ceiling_functions#Examples. Please
correct me if i am understanding it wrong?

Regards,

Kaushal

On Tue, 11 Aug 2015 at 14:31 Flavio Junqueira  wrote:

> I don't think there is a straightforward answer to the question, but here
> is some insight.
>
> If you use 3 servers with 3 data centers, you'll have one server per DC,
> which means that upon a crash, the clients in some data center will have to
> go remotely for reads.
>
> With 5 servers, at least one DC will have at most one server, which is a
> bit better, but the DC with one server will have the problem that with the
> one server crashing, the clients will need to go remotely for reads.
>
> 7 or 9 are better options, since you can have multiple nodes per DC to
> serve local read traffic.
>
> I have used 5-7 per DC with flexible quorums in a system I worked on.
>
> -Flavio
>
> > On 11 Aug 2015, at 08:47, Kaushal Shriyan 
> wrote:
> >
> > Hi,
> >
> > I have a very basic question of setting up Zookeeper ensemble across 3
> > Datacenter. Since zookeeper quorum is based on odd number of nodes for
> > Leader election. What would be the ideal odd number of nodes spread
> across
> > 3 Datacenter is it 3 or 5 or 7 or 9? if either of DC1 or DC2 or DC3 is
> not
> > reachable or degraded?
> >
> > DC1 meaning Datacenter 1
> > DC2 meaning Datacenter 2
> > DC3 meaning Datacenter 3
> >
> > Any help will be highly appreciable.
> >
> > Regards,
> >
> > Kaushal
>
>


Odd Number of Nodes spread across 3 Datacenter

2015-08-11 Thread Kaushal Shriyan
Hi,

I have a very basic question of setting up Zookeeper ensemble across 3
Datacenter. Since zookeeper quorum is based on odd number of nodes for
Leader election. What would be the ideal odd number of nodes spread across
3 Datacenter is it 3 or 5 or 7 or 9? if either of DC1 or DC2 or DC3 is not
reachable or degraded?

DC1 meaning Datacenter 1
DC2 meaning Datacenter 2
DC3 meaning Datacenter 3

Any help will be highly appreciable.

Regards,

Kaushal


Re: Meaning of quorum and ensemble

2015-05-29 Thread Kaushal Shriyan
Thanks Chris for the explanation. Please help me understand how would I
implement a 3 node or a 5 node ensemble in a AWS region for example
Singapore Region which has two Availability Zone 1a and 1b if either of the
zone becomes unavailable due to say for example Network Glitch or not
reachable.

Regards,

Kaushal
 On 29 May 2015 23:41, "Chris Nauroth"  wrote:

> Hello Kaushal,
>
> 1. "Quorum" refers to the minimum number of nodes that must agree on a
> transaction before it is considered committed.
> 2. Yes, your understanding of ceil(N/2) is correct.  It sounds like your
> formulation of it is more like floor((N+1)/2).  The two formulations are
> equivalent, so whichever one is more intuitive to you is valid.
> 3. "Ensemble" refers to the full set of peer servers in a ZooKeeper
> cluster.
>
> Tying this back to your examples, a 3-node ensemble requires a quorum of 2
> servers running to commit a transaction.  A 5-node ensemble requires a
> quorum of 3 servers running to commit a transaction.  An administrator can
> deploy a ZooKeeper cluster sized according to trade-offs between budget
> (number of servers) and desired fault tolerance (number of simultaneous
> server failures).  A more detailed discussion is available in the
> ZooKeeper Internals document:
>
> http://zookeeper.apache.org/doc/r3.4.6/zookeeperInternals.html
>
>
> I hope this helps.
>
> --Chris Nauroth
>
>
>
>
> On 5/29/15, 10:08 AM, "Kaushal Shriyan"  wrote:
>
> >Hi,
> >
> >I have a question regarding quorum in context to
> >
> http://stackoverflow.com/questions/13022244/zookeeper-reliability-three-ve
> >rsus-five-nodes
> >
> >Zookeeper requires that you have a quorum of servers up, where quorum is
> >ceil(N/2). For a 3 server ensemble, that means 2 servers must be up at any
> >time, for a 5 server ensemble, 3 servers need to be up at any time.
> >
> >   1. what does quorum mean?
> >   2. so does ceil(N/2) mean 3+1/2 = 4/2 which is 2 servers in context to
> >3
> >   server ensemble and 5+1/2 = 6/2 which is 3 servers in context to 5
> >server
> >   ensemble if the ceil(N/2) is a ceiling function?
> >   3. what does ensemble mean in context to Apache zookeeper?
> >
> >I would appreciate your help.
> >
> >Regards,
> >
> >Kaushal
>
>


Meaning of quorum and ensemble

2015-05-29 Thread Kaushal Shriyan
Hi,

I have a question regarding quorum in context to
http://stackoverflow.com/questions/13022244/zookeeper-reliability-three-versus-five-nodes

Zookeeper requires that you have a quorum of servers up, where quorum is
ceil(N/2). For a 3 server ensemble, that means 2 servers must be up at any
time, for a 5 server ensemble, 3 servers need to be up at any time.

   1. what does quorum mean?
   2. so does ceil(N/2) mean 3+1/2 = 4/2 which is 2 servers in context to 3
   server ensemble and 5+1/2 = 6/2 which is 3 servers in context to 5 server
   ensemble if the ceil(N/2) is a ceiling function?
   3. what does ensemble mean in context to Apache zookeeper?

I would appreciate your help.

Regards,

Kaushal


Problem reading snap file in zookeeper (version: 3.4.5-1392090)

2014-07-03 Thread Kaushal Shriyan
Hi,

I am encountering *problem reading snap file
/mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2c2b00*

The zookeeper logs are as below:-

Starting zookeeper ... STARTED
18,889 [myid:] - INFO  [main:QuorumPeerConfig@101] - Reading configuration
from: /mnt/zoouat4/conf/zookeeper/zoo.cfg
2014-07-04 01:25:18,895 [myid:] - INFO  [main:QuorumPeerConfig@334] -
Defaulting to majority quorums
2014-07-04 01:25:18,899 [myid:2] - INFO  [main:DatadirCleanupManager@78] -
autopurge.snapRetainCount set to 3
2014-07-04 01:25:18,899 [myid:2] - INFO  [main:DatadirCleanupManager@79] -
autopurge.purgeInterval set to 0
2014-07-04 01:25:18,899 [myid:2] - INFO  [main:DatadirCleanupManager@101] -
Purge task is not scheduled.
2014-07-04 01:25:18,911 [myid:2] - INFO  [main:QuorumPeerMain@127] -
Starting quorum peer
2014-07-04 01:25:18,932 [myid:2] - INFO  [main:NIOServerCnxnFactory@94] -
binding to port 0.0.0.0/0.0.0.0:2181
2014-07-04 01:25:18,946 [myid:2] - INFO  [main:QuorumPeer@913] - tickTime
set to 2
2014-07-04 01:25:18,947 [myid:2] - INFO  [main:QuorumPeer@933] -
minSessionTimeout set to -1
2014-07-04 01:25:18,947 [myid:2] - INFO  [main:QuorumPeer@944] -
maxSessionTimeout set to -1
2014-07-04 01:25:18,947 [myid:2] - INFO  [main:QuorumPeer@959] - initLimit
set to 10
*2014-07-04 01:25:18,959 [myid:2] - INFO  [main:FileSnap@83] - Reading
snapshot /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2c2b00*
*2014-07-04 01:25:19,094 [myid:2] - WARN  [main:FileSnap@96] - problem
reading snap file
/mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2c2b00*
*java.io.IOException: CRC corruption in snapshot :
 /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2c2b00*
 at
org.apache.zookeeper.server.persistence.FileSnap.deserialize(FileSnap.java:91)
at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:130)
 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)
2014-07-04 01:25:19,095 [myid:2] - INFO  [main:FileSnap@83] - Reading
snapshot /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b0176
2014-07-04 01:25:19,176 [myid:2] - WARN  [main:FileSnap@96] - problem
reading snap file
/mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b0176
java.io.IOException: CRC corruption in snapshot :
 /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b0176
at
org.apache.zookeeper.server.persistence.FileSnap.deserialize(FileSnap.java:91)
 at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:130)
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)
2014-07-04 01:25:19,176 [myid:2] - INFO  [main:FileSnap@83] - Reading
snapshot /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b013d
2014-07-04 01:25:19,224 [myid:2] - WARN  [main:FileSnap@96] - problem
reading snap file
/mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b013d
java.io.IOException: CRC corruption in snapshot :
 /mnt/zoouat4/data/zookeeper/data/version-2/snapshot.2b013d
 at
org.apache.zookeeper.server.persistence.FileSnap.deserialize(FileSnap.java:91)
at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:130)
 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)
2014-07-04 01:25:19,225 [myid:2] - ERROR [main:QuorumPeer@453] - Unable to
load database on disk
java.io.IOException: Not able to find valid snapshots in
/mnt/zoouat4/data/zookeeper/data/version-2
 at
org.apache.zookeeper.server.persistence.FileSnap.deserialize(FileSnap.java:105)
at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:130)
 at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)

Re: List nodes and sub nodes in zookeeper

2013-12-25 Thread Kaushal Shriyan
On Wed, Dec 25, 2013 at 2:59 PM, Kaushal Shriyan
wrote:

> On Wed, Dec 25, 2013 at 2:56 PM, Raúl Gutiérrez Segalés <
> r...@itevenworks.net> wrote:
>
>> On 24 December 2013 09:52, Kaushal Shriyan 
>> wrote:
>>
>> > Hi,
>> >
>> > Is there a way to list all the nodes and sub nodes on the command line
>> in
>> > Zookeeper ?
>> >
>>
>> You can do this with zk_shell:
>>
>> $ pip install zk_shell
>> $ zk-shell server:2181 --run-once "tree /"
>>
>>
> Thanks Raul for the reply, Do i need to install zk_shell on the server
> where zookeeper leader or observer process is running?
> I am not sure if i understand it completely.
>
> Thanks and Regards,
>
> Kaushal
>
>
Hi

I am getting the below error

zk-shell server:2181 --run-once "tree /"
Traceback (most recent call last):
  File "/usr/bin/zk-shell", line 3, in 
from zk_shell.cli import CLI
  File "/usr/lib/python2.6/site-packages/zk_shell/cli.py", line 7, in

from .shell import Shell
  File "/usr/lib/python2.6/site-packages/zk_shell/shell.py", line 50, in

from .copy import copy, CopyError
  File "/usr/lib/python2.6/site-packages/zk_shell/copy.py", line 334
with src, dst:
^
SyntaxError: invalid syntax
# zk-shell 127.0.0.1:2181 --run-once "tree /"
Traceback (most recent call last):
  File "/usr/bin/zk-shell", line 3, in 
from zk_shell.cli import CLI
  File "/usr/lib/python2.6/site-packages/zk_shell/cli.py", line 7, in

from .shell import Shell
  File "/usr/lib/python2.6/site-packages/zk_shell/shell.py", line 50, in

from .copy import copy, CopyError
  File "/usr/lib/python2.6/site-packages/zk_shell/copy.py", line 334
with src, dst:
^
SyntaxError: invalid syntax
]#

Thanks and Regards,

Kaushal


Re: List nodes and sub nodes in zookeeper

2013-12-25 Thread Kaushal Shriyan
On Wed, Dec 25, 2013 at 2:56 PM, Raúl Gutiérrez Segalés  wrote:

> On 24 December 2013 09:52, Kaushal Shriyan 
> wrote:
>
> > Hi,
> >
> > Is there a way to list all the nodes and sub nodes on the command line in
> > Zookeeper ?
> >
>
> You can do this with zk_shell:
>
> $ pip install zk_shell
> $ zk-shell server:2181 --run-once "tree /"
>
>
Thanks Raul for the reply, Do i need to install zk_shell on the server
where zookeeper leader or observer process is running?
I am not sure if i understand it completely.

Thanks and Regards,

Kaushal


List nodes and sub nodes in zookeeper

2013-12-24 Thread Kaushal Shriyan
Hi,

Is there a way to list all the nodes and sub nodes on the command line in
Zookeeper ?

Regards,

Kaushal