Questions tagged [znodes]

14 questions
6
votes
1 answer

Zookeeper znode count

Here is the output of zookeeper monitoring zk_version 3.4.6-1569965, built on 02/20/2014 09:09 GMT zk_avg_latency 0 zk_max_latency 0 zk_min_latency 0 zk_packets_received 3 zk_packets_sent 2 zk_num_alive_connections …
chandu
  • 403
  • 1
  • 6
  • 15
5
votes
1 answer

Zookeeper Node vs. zNode

I just start reading about zookeeper. And I am getting confused about the data replication and data module. The ZooKeeper ensemble will contain multiple nodes(Machine) with one leader and others as followers. The data module is a tree structure…
user1947415
  • 933
  • 4
  • 14
  • 31
4
votes
2 answers

ERROR org.apache.zookeeper.ClientCnxn - Error while calling watcher

I am new to zookeeper. I have written simple program to create Persistent Node. Its working but giving exception once execution is completed.I tried to search on google but there is no satisfactory answer. Can any one advice me anything. public…
Kapil
  • 193
  • 2
  • 14
2
votes
1 answer

Get all subnode keys and values from zookeeper

I am attempting to implement zookeeper as a shared state engine for an application I am creating in erlang. The structure for the state would be like the following: /appRoot /parent1:{json} /child1:{json} …
RockyMountainHigh
  • 2,871
  • 5
  • 34
  • 68
1
vote
0 answers

zookeeper: how to delete id from ACL?

I've added some id's to certain znode by using addauth and setAcl digest. For example when I do getAcl /app, I get 'user1, ' hashvalue :crdwa. How to delete this record from ACL list?
1
vote
1 answer

HBase: The table test does not exist in meta but has a znode. run hbck to fix inconsistencies (which fails)

I recently added a table test while getting started on HBase. I decided to reinstall HBase due to some issues. After reinstalling and running the HBase shell I tried: hbase(main):004:0> list TABLE 0 row(s) in 0.0070 seconds => [] So there are no…
hjonas
  • 141
  • 10
1
vote
1 answer

How to get znode ip

I have many services connected to zookeeper, and I want that service A can get service B's IP, when service B connected to zookeeper, is there any API can do that? Or I have to use other config file to write down all services's IP?
Endlesscode
  • 23
  • 1
  • 3
1
vote
1 answer

Expiration of zookeeper persistent node

I am not able to find information regarding automatic expiration of persistent node in zookeeper. Is persistent node only expire when zookeeper server is shut down or it can expired before before that ?. if yes, what are the possible reason. Here I…
vaibhav.g
  • 729
  • 1
  • 9
  • 28
1
vote
0 answers

Streaming data into hbase 0.98.1 using flume 1.4 wiith a custom sink

I am trying to load data into hbase using apache flume using a custom sink but I get this error: ERROR async.HBaseClient: The znode for the -ROOT- region doesn't exist! 14/05/14 17:12:08 ERROR lifecycle.LifecycleSupervisor: Unable to start…
0
votes
1 answer

Java Zookeeper API weird ZNode behavior. Unable to delete ZNode properly. It has unexpected results

I am trying to create a persistent ZNode and storing the number of lines of a particular file that I have processed. Creation works just like it should, so does reading data from the node, but deletion doesn't work if it's in the same code. I'd…
Vipul Rajan
  • 494
  • 1
  • 5
  • 16
0
votes
1 answer

Can we give the path of text files as data in zookeeper znodes?

I am newbie to zookeeper. I have a question related to data for znodes. If we want to store the contents of the text file as a data in znodes what will be the syntax? Can we specify the path of the text file in the data. The syntax is create…
Raj
  • 1
  • 1
0
votes
1 answer

Zookeeper znode watch counter

Having 3 zookeeper in 3 machines with one kafka broker in each zookeeper. number of host : 3 number of znodes to be tracked : 1 [1* number of hosts = 3] Is there any way to track the hostname&znode with Zookeeper.Stat class variables when znode…
sathish
  • 65
  • 8
0
votes
1 answer

ZkException: Unable to connect to zNode01:2181

I am new to hadoop so sorry if this seems dumb but here is what is happening. I am working to setup a multi node kakfa broker so test real time ingestion and as kafka requires ZK it was suggested to best run a replicated ZK. On the Zookeeper side I…
Suren Baskaran
  • 1,228
  • 1
  • 10
  • 17
0
votes
1 answer

Producer Consumer queue in zookeeper

I am new to zookeeper programming. I am trying to implement produce consumer queue using zookeeper.I am getting exception while initializing queue. In my zookeeper only root entry is there which is [zookeeper]. I am trying to execute code given at. …
Kapil
  • 193
  • 2
  • 14