title: How Do I Build Hadoop From Source Without Errors
body: <p>I have spent weeks trying to resolve different errors in building Hadoop. SO was helpful in pointing me towards the answer to an occasional problem, but after a lot of searching here on SO, I was never able to get the whole thing to build. </p>
  
  <p>It’s been a couple of weeks since all this started so I have forgotten most of the explicit error messages, but the problems I had included </p>
  
  <ul>
  <li>Protobuff versions being wrong</li>
  <li>SSH connections not working</li>
  <li>Mojofailure Exceptions during build</li>
  <li>Incorrect Java versions being used</li>
  <li>C++ sanity checks failing</li>
  <li>a host of other crap that made no sense to me and I couldn't decipher root causes for</li>
  </ul>
  
  <p>Today I finally got Hadoop to build from the git repo source and wanted to record the process for the SO community members that face similar problems.</p>
  
  <p>For those of you trying to build Hadoop from source, here is how I got everything to compile from source.</p>
  
  <p>Some notes on configuration:</p>
  
  <ul>
  <li>I am installing Hadoop in a virtual environment, in my case VirtualBox. </li>
  <li>The Host machine runs Windows 7 x64</li>
  <li>The Guest VM runs CentOS 7 x64</li>
  <li>I am aiming for the bare minimum installation</li>
  </ul>