Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you are reading this then the JBOD talk for Hadoop has probably already sunk in.  Letting the worker nodes have as many spindles as possible is a cornerstone to this strategy whose overall goal is to spread out the I/O and to ensure data locality.  How many spindles per node?  Well, there are slight differences in opinion here and I've previously shared my thoughts in my hadoop worker node configuration recommendations (1-2-10) blog posting.  But, before we start talking about different node stereotypes let's focus on common file systems for all nodes (master, workers, edge, perimeter, management, etc) that will have Hadoop bits laid down on then move into the differences for each node type.

Info
titleDISCLAIMER

The recommendations presented in this blog are MINE and not necessarily that of my current employer (Hortonworks) or aligned with other Hadoop distribution vendors or platform architecture experts.  That said, I think this will make a lot of sense and I welcome comments & questions at the bottom of the posting.

I 'm am most familiar with HDP (which is 100% Apache open-source), so I'm including the contents of HDP File Locations here as a quick primer.
Include Page
lestermartin:HDP File Locationslestermartin:
HDP File Locations

General Background

...

During most of my Hadoop consulting engagements I've seen a trend to simply buy the same hardware for masters and workers (and sometimes edge nodes).  It is easy to understand why companies new to Hadoop do this.  It seems to boil down to the fact they know how to create "t-shirt sizes" for common usages such as application servers and database servers, but neither of these configurations are optimal for Hadoop worker nodes.  Teams then spend a good amount of time with the hardware procurement team defining a box that ends up looking something like 12 2TB drives, dual 8 core processors, and 128GB of RAMWell... that or they give-up and start in the cloud! 

Once the internal hardware ordering team "gets it" for the workers, the next conversation starts about how to configure the masters and usually heads start turning.  About this time, most folks just go with the strategy of ordering the same hardware for the masters to keep the procurement process rolling.  At first this bothered me a bit, but now I've realized this works out nicely as you'll see later when we talk about file system mount points for masters.

...

This is surely a touchy one as I've met many Linux systems administrators and while there is a lot of consistency, there is still a bit of "special sauce" that gets smothered on top; especially when we touch talk about the base OS partition. Generally, I tried try to stay out of these religious arguments.  Besides, many teams have already made decisions on how they lay down the OS.  Of the four main areas that Hadoop distributions need disk space for (i.e. bits, config, logs and data), I usually subscribe to the model of letting the bits, config and logs, as identified above, be persisted in their default locations.  As there are many independently running Hadoop componentsservices, it is easy to imagine a big requirements on disk storage for logging.  If the Linux administrators have a strategy for this, then great, but it does need to be thought about.

...

The rest of this blog posting will be to offer up my suggestions around file system mount points based on the primary node stereotypes.  In addition to the thoughts on the root file system and an appropriate mechanism for /var/log, I suggest ALL nodes have a /hadoop mount point as most components need a centralized directory to base additional configuration from.

...

The worker nodes have a different restoration policy than the masters , and should be setup to maximize storage instead of minimizing the possibility of failure.  Taking this into account, I prescribe the following based on the hardware described earlier.

...

Especially when there are multiple edge nodes and the expectation is for a user (or process) to arbitrarily log into any of them and have a consistent home directory, other alternatives, such as a network mounted home directory may be appropriate.

...

With all of the varying opinions, experiences and self-imposed standards at play, it is very likely that the individual mount points used for one enterprise's Hadoop cluster will be identical to that from another company.  Fortunately, what matters most is understanding what the technology itself is doing, which components will be most utilized and validating your assumptions to ensure you are being data-driven (not emotionally-driven) when making these important decisions for your cluster.  I'm hopeful this information helped a bit.

...