Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72783DDAB for ; Wed, 7 Nov 2012 13:29:21 +0000 (UTC) Received: (qmail 61950 invoked by uid 500); 7 Nov 2012 13:29:16 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 61850 invoked by uid 500); 7 Nov 2012 13:29:15 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 61758 invoked by uid 99); 7 Nov 2012 13:29:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 13:29:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of visioner.sadak@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 13:29:08 +0000 Received: by mail-vc0-f176.google.com with SMTP id fo13so1786126vcb.35 for ; Wed, 07 Nov 2012 05:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0k0pve9SGtQZ6SSGsFjK7AJCZHY3bgR3aDBm5qIFGvk=; b=iz3VZtvoqM4lply6HBQxVvLNjG+0G9A/VAa7ggO3cePtbSp9IKVeiKI0bziD45Zyrp seeU0C3w4/221TLPkaUBu8/HU3YaI8buq7cbH7in3zADRPFt+PXwScC8iIXEqZ/wJUqE nfbZyGx4hbvArsYEQ+TKxCm9aOwWlYhFOpgWVSYYHYn0zzyC2N3e+51t3f/kcJZ37dqB Nj7VR4ISga2nGl8ETdUPSCJo3XkCES4b1qJB0QcBhalwupFZdJA4AtfM1BRWwNJ0Sqpe 01fwwrOoRpaghN5aApyhqNXDfnyvgEcq9A6s/ZBhURXS5RnPS92aShkIMYNzJnNjS3Bk uKPA== MIME-Version: 1.0 Received: by 10.220.150.145 with SMTP id y17mr4039619vcv.11.1352294927516; Wed, 07 Nov 2012 05:28:47 -0800 (PST) Received: by 10.58.247.2 with HTTP; Wed, 7 Nov 2012 05:28:47 -0800 (PST) In-Reply-To: References: Date: Wed, 7 Nov 2012 18:58:47 +0530 Message-ID: Subject: Re: Hadoop configs From: Visioner Sadak To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d043d67e9c945c304cde7b2ed X-Virus-Checked: Checked by ClamAV on apache.org --f46d043d67e9c945c304cde7b2ed Content-Type: text/plain; charset=ISO-8859-1 I tried configuring secondary namenode but getting this error when i start it Exception in thread "main" java.lang.IllegalArgumentException: Target address cannot be null. any hints.. On Wed, Nov 7, 2012 at 1:47 PM, Visioner Sadak wrote: > I have configured a cluster setup of hadoop,shud i create a directory for > secondary namenode as well if i need one hw to mention tht in core-site.xml > ,is tmp directory needed in coresite.xml or can i remove tht... > > secondly what is rpc-address and http-address currently i am running > hadoop with rpc-address only is http-address mandatory....... > > below are my cluster configs > > core-site.xml > > > > > > hadoop.tmp.dir > /home/hadoop/tmp > > > fs.default.name > viewfs:/// > > > fs.viewfs.mounttable.default.link./NN1Home > hdfs://132.148.0.10:9001/ns1home > > > fs.viewfs.mounttable.default.link./NN2Home > hdfs://132.148.0.11:9001/ns2home > > > > and > > hdfs-site.xml > > > > > > > > dfs.permissions > false > > > dfs.replication > 2 > > > dfs.namenode.name.dir > /home/hadoop/nn > > > dfs.datanode.data.dir > /home/hadoop/dn > > > > dfs.webhdfs.enabled > true > > > > dfs.federation.nameservices > ns1,ns2 > > > dfs.namenode.rpc-address.ns1 > 132.148.0.10:9001 > > > dfs.namenode.rpc-address.ns2 > 132.148.0.11:9001 > > > > > > --f46d043d67e9c945c304cde7b2ed Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I tried configuring secondary namenode but getting this error when i s= tart it
=A0
Exception in thread "main" java.lang.IllegalArgumentExceptio= n: Target address cannot be null. any hints..

On Wed, Nov 7, 2012 at 1:47 PM, Visioner Sadak <= span dir=3D"ltr"><visioner.sadak@gmail.com> wrote:
I have configured a cluster setup of hadoop,shud i create a directory = for secondary namenode as well if i need=A0one=A0hw to mention tht in core-= site.xml ,is tmp directory needed in coresite.xml or can i remove tht...
=A0
secondly what is rpc-address and http-address currently i am running h= adoop with rpc-address only is http-address mandatory.......
=A0
below are my cluster configs
=A0
core-site.xml
=A0
<?xml version=3D"1.0" encoding=3D"UTF-8"?><?xml-stylesheet type=3D"text/xsl" href=3D"configuratio= n.xsl"?>
<configuration>=A0=A0=A0=A0
<property>= =A0=A0=A0=A0=A0=A0=A0=A0
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/tmp<= ;/value>
</property>
<property>
<name>fs.default.name</name= >
<value>viewfs:///</value>
</property>
<property&= gt;
<name>fs.viewfs.mounttable.default.link./NN1Home</name><= br><value>hdfs://132.148.0.10:9001/ns1home</value>
</property>
<property>
<name>fs.viewfs.mounttable.d= efault.link./NN2Home</name>
<value>hdfs://132.148.0.11:9001/ns2home&= lt;/value>
</property>
</configuration>
=A0
and
=A0
hdfs-site.xml
=A0
=A0
=A0
<?xml version=3D"1.0" encoding=3D"UTF-8"?><?xml-stylesheet type=3D"text/xsl" href=3D"configuratio= n.xsl"?>
<configuration>
=A0<property>
=A0=A0<name>dfs.permissions</name><= br>=A0=A0=A0=A0=A0=A0=A0 <value>false</value>
=A0</proper= ty>
=A0<property>
=A0 =A0<name>dfs.replication</name>
=A0=A0 =A0<value= >2</value>
=A0</property>
=A0<property>
=A0= =A0=A0=A0=A0 <name>dfs.namenode.name.dir</name>
=A0=A0=A0=A0= =A0 <value>/home/hadoop/nn</value>
=A0</property>
=A0<property>
=A0=A0=A0=A0=A0=A0=A0=A0=A0 = <name>dfs.datanode.data.dir</name>
=A0=A0=A0=A0=A0=A0=A0=A0= =A0 <value>/home/hadoop/dn</value>
=A0</property>
= =A0
=A0=A0=A0 <property>
=A0=A0=A0=A0=A0=A0=A0 <name>dfs.= webhdfs.enabled</name>
=A0=A0=A0=A0=A0=A0=A0 <value>true</value>
=A0=A0=A0 </pro= perty>
=A0
=A0=A0=A0 <property>
=A0=A0=A0=A0=A0=A0=A0 <= ;name>dfs.federation.nameservices</name>
=A0=A0=A0=A0=A0=A0=A0 = <value>ns1,ns2</value>
=A0=A0=A0 </property>
=A0=A0=A0 <property>
=A0=A0=A0=A0=A0=A0=A0 <name>dfs.namenod= e.rpc-address.ns1</name>
=A0=A0=A0=A0=A0=A0=A0 <value>132.148.0.10:9001<= /value>
=A0=A0=A0=A0=A0 </property>
=A0=A0=A0 <property>
=A0=A0=A0=A0=A0=A0=A0 <name>dfs.namenod= e.rpc-address.ns2</name>
=A0=A0=A0=A0=A0=A0=A0 <value>132.148.0.11:9001<= /value>
=A0=A0=A0=A0=A0 </property>
=A0
</configuration>
=A0
=A0

--f46d043d67e9c945c304cde7b2ed--