Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73E6DCA0D for ; Mon, 7 May 2012 03:28:57 +0000 (UTC) Received: (qmail 63307 invoked by uid 500); 7 May 2012 03:28:57 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 63216 invoked by uid 500); 7 May 2012 03:28:56 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 63195 invoked by uid 99); 7 May 2012 03:28:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 03:28:56 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of matei@eecs.berkeley.edu does not designate 169.229.218.145 as permitted sender) Received: from [169.229.218.145] (HELO cm04fe.IST.Berkeley.EDU) (169.229.218.145) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 03:28:49 +0000 Received: from c-24-7-114-112.hsd1.ca.comcast.net ([24.7.114.112] helo=[192.168.1.100]) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (auth plain:matei@eecs.berkeley.edu) (envelope-from ) id 1SREcb-0006vb-E1 for mesos-dev@incubator.apache.org; Sun, 06 May 2012 20:28:26 -0700 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: how to set up two hdfs for two hadoops From: Matei Zaharia In-Reply-To: Date: Sun, 6 May 2012 20:28:25 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: mesos-dev@incubator.apache.org X-Mailer: Apple Mail (2.1257) Hi Nairan, HDFS doesn't normally run on top of Mesos, and we generally expect = people to have only one instance of HDFS, which multiple instances of = MapReduce (or other frameworks) would share. If you want two instances = of HDFS, you need to set them up manually, and configure them to use = different ports. Here are the Hadoop settings you need to change: fs.default.name (contains port of NameNode) dfs.http.address (web UI of NameNode) dfs.datanode.address dfs.datanode.ipc.address dfs.datanode.http.address dfs.secondary.http.address dfs.name.dir dfs.data.dir We actually do this in our EC2 scripts = (https://github.com/mesos/mesos/wiki/EC2-Scripts), which will launch a = Mesos cluster with both a "persistent" and an "ephemeral" HDFS for you. = You might take a look at how that gets configured. Matei On May 6, 2012, at 7:04 PM, Nairan Zhang wrote: > Hi, >=20 > It seems it disallows to have the second datanode in one machine. Is = it a > common problem? Anybody can please help me out a little bit? Thanks, >=20 > Nairan