- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HA : Rack awarness with two racks
- Labels:
-
Apache Zookeeper
Created on ‎09-12-2016 02:58 PM - edited ‎09-16-2022 03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Can we consider that with Rack awarness and 2 racks we can support the failure of one rack?
Lot of blogs and articles are saying yes. But what about Journal nodes and Zookeeper ? I'll have one rack with 2 journal nodes or zookeepers. Losing this particular rack will get my cluster down. Am I missing something ?
Created ‎09-12-2016 03:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tim,
Rack awareness is related to how blocks are replicated amongst a cluster, so you won't loose any data (and improve locality) by setting it; It's not related to how masters are configured, but you can ensure by configuring them accordingly that you won't get your cluster down. Note that you possibly install more than 3 zk or journal nodes (has pros and cons though)
There's a nice 2-parts article on HCC: https://community.hortonworks.com/articles/43057/rack-awareness-1.html
Created ‎09-12-2016 03:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tim,
Rack awareness is related to how blocks are replicated amongst a cluster, so you won't loose any data (and improve locality) by setting it; It's not related to how masters are configured, but you can ensure by configuring them accordingly that you won't get your cluster down. Note that you possibly install more than 3 zk or journal nodes (has pros and cons though)
There's a nice 2-parts article on HCC: https://community.hortonworks.com/articles/43057/rack-awareness-1.html
Created ‎09-13-2016 08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎09-14-2016 12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
that's correct; Indeed, if you have only one JN left you'll get into troubles with namenodes going down, same thing for zookeeper which must have a quorum
from zookeeper doc : Three ZooKeeper servers is the minimum recommended size for an ensemble
Created ‎09-14-2016 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Laurent Edel Sure, I understand the risk when the NN goes down. What happens if the active NN is still up and I loose two JNs or two ZKs ?
Created ‎09-14-2016 12:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you loose 2 ZK then NN will stay up but if it goes down the failover won't occur.
if you loose 2 JNs your NNs will go down.
