Somewhat outdated instructions at https://amodernstory.com/2014/09/23/installing-hadoop-on-mac-osx-yosemite.