Don't think you can install with homebrew (yet). Apache Ambari, another apache project that helps install and manage Hadoop stack, should very soon be supporting installation of 2.x both on single node and on a cluster.