apache-zookeeper

How to use firewall with ActiveMQ?

狂风中的少年 提交于 2019-12-11 13:23:52
问题 I have this ports configured in my 3 virtual machines running Zookeeper and ActiveMQ . root@mom3:~# ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- 22 ALLOW IN Anywhere 2881 ALLOW IN Anywhere 2888 ALLOW IN Anywhere 3888 ALLOW IN Anywhere 61616 ALLOW IN Anywhere 61617 ALLOW IN Anywhere 22 (v6) ALLOW IN Anywhere (v6) 2881 (v6) ALLOW IN Anywhere (v6) 2888 (v6) ALLOW IN Anywhere (v6)

Broadcasting using the protocol Zab in ZooKeeper

百般思念 提交于 2019-12-11 12:25:45
问题 Good morning, I am new to ZooKeeper and its protocols and I am interested in its broadcast protocol Zab. Could you provide me with a simple java code that uses the Zab protocol of Zookeeper? I have been searching about that but I did not succeed to find a code that shows how can I use Zab. In fact what I need is simple, I have a MapReduce code and I want all the mappers to update a variable (let's say X) whenever they succeed to find a better value of X (i.e. a bigger value). In this case,

System cannot find the path — Apache Kafka Zookeeper

纵饮孤独 提交于 2019-12-11 12:17:38
问题 When i want to start a Zookeeper-Server with the command line I get the message that the system cannot find the path. Yesterday everything was fine and the code/path was correct. Today the system cannot find the path. This is the content of my cmd.exe window which was opened 'As administrator' on Windows 7: C:\Users\KESSP2>cd Documents C:\Users\KESSP2\Documents>cd kafka C:\Users\KESSP2\Documents\kafka>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties Das System kann den

Role of ZooKeeper in cluster?

元气小坏坏 提交于 2019-12-11 11:51:19
问题 If I have cluster hosting 1 topic which has three partitions. So ZooKeeper(ZK) cluster hosting 3 broker instances. Per mine understanding , Producer will interact with ZooKeeper to publish the message on broker. ZK will decide internally which partition it needs to publish the message based on load on each broker instance. Broker will also interact with ZK to maintain offset per consumer instance Similarly Consumer will interact with ZooKeeper to consume the message from broker. ZK will get

Zookeeper Working

强颜欢笑 提交于 2019-12-11 11:42:04
问题 I am learning about Zookeeper. I learned that zookeeper is very useful when the cluster contains 1000's of machines. I have few doubts. I tried reading the following links to understand Explaining Apache ZooKeeper Explaining Apache ZooKeeper I have the following questions 1) How zookeeper is helpful when handling thousands of machines in cluster ? 2) How zookeeper solves the distributed synchronization problem ? 3) How exactly zookeeper solves centralized configuration problem ? 回答1: How

Kafka SimpleConsumer cannot connect to zookeeper : Received -1 when reading from channel

风流意气都作罢 提交于 2019-12-11 11:17:57
问题 I'm trying to connect to a remote kafka zookeeper ( zookeeperhost:1234 ) via SimpleConsumer, and pulling metadata for the topics that I've specified. However, I get this error: RunnerMain failed :java.io.EOFException: Received -1 when reading from channel, socket has likely been closed. I ran telnet zookeeperhost 1234 and got the following: Trying <ip addr of host>... Connected to zookeeperhost.somedomain.com. Escape character is '^]'. So it looks like I am able to reach the service, there is

Error executing hdfs zkfc command

醉酒当歌 提交于 2019-12-11 10:29:37
问题 I am new to hadoop, hdfs.. I have do the next steps: I have started zookeeper in the three namenodes: *vagrant@172:~$ zkServer.sh start I can see the status: *vagrant@172:~$ zkServer.sh status Result Status: JMX enabled by default Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg Mode: follower with jps command only appear jps and sometimes appear quaroom too: *vagrant@172:~$ jps 2237 Jps When I run the next command. * vagrant@172:~$ hdfs zkfc -formatZK 16/01/07 16:10:09 INFO zookeeper

connecting to zookeeper in different server

杀马特。学长 韩版系。学妹 提交于 2019-12-11 10:03:53
问题 I am trying to connect to a zookeeper that is running in another cluster or environment (eg staging) from dev cluster which has its own zookeeper. When I run this in distributed mode, I cannot connect to the a different hbase instance, but when I run in pseudo or standalone mode, I can connect to different hbase environment. Configuration cloneConfig = HBaseConfiguration.create(); cloneConfig.clear(); cloneConfig.set("hbase.zookeeper.quorum", "shost3,shost2,shost1"); cloneConfig.set("hbase

Uploading security.json file in zookeerper

给你一囗甜甜゛ 提交于 2019-12-11 04:59:40
问题 I am facing issues in uploading security..json file in zookeeper. Even though when i am running the zkcli.sh script, it is getting executed without issues. But when i am validating it by the following url, it is giving me error as " no authorization configured". Url to validate: ip address:port/solr/admin/authentication 来源: https://stackoverflow.com/questions/42056458/uploading-security-json-file-in-zookeerper

How to detect when Apache Zookeeper sessions are lost or timed out?

时光毁灭记忆、已成空白 提交于 2019-12-11 04:47:38
问题 Assume we have an Apache Zookeeper quorum up and running and n client nodes connected (using Apache Curator). Is it possible to receive notifications on one of the nodes (the one we are observing) from zookeeper when any of the other nodes sessions are terminated or a timeout is reached? If so, how is this accomplished? 回答1: The answer is fairly simple and can be accomplished using Ephemeral nodes and PathChildrenCache. Zookeeper will detect when a node times out (in this example we set the