Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F5419CE5 for ; Mon, 9 Jan 2012 22:39:54 +0000 (UTC) Received: (qmail 48376 invoked by uid 500); 9 Jan 2012 22:39:50 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 48258 invoked by uid 500); 9 Jan 2012 22:39:49 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 48249 invoked by uid 99); 9 Jan 2012 22:39:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 22:39:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iefinkel@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 22:39:43 +0000 Received: by iapp10 with SMTP id p10so9622308iap.35 for ; Mon, 09 Jan 2012 14:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=S/F1WzOKDjw3aMxemgVnsrWOecJB9z4KNJ52WQ95aSw=; b=qalAsmhW+pLNKLFwO1VPfFjB1owzX/omLvDTwW9df7nBw1T7F5TnzK8XCn/N6OKwvG 3rqBPRQp9WmF7R4Zwbhd94eh1D+gdmpPJUnZm2C1ctYvVhs3Kz8BO0n0dLb5kzzG4/UZ Jvt0kCJV+96YSlRKB23y4qTrc8AALF6ovQ2NU= Received: by 10.42.244.137 with SMTP id lq9mr19937547icb.28.1326148762490; Mon, 09 Jan 2012 14:39:22 -0800 (PST) Received: from Eli-Finkelshteyns-MacBook-Pro.local ([38.112.1.90]) by mx.google.com with ESMTPS id l35sm255925452ibj.0.2012.01.09.14.39.21 (version=SSLv3 cipher=OTHER); Mon, 09 Jan 2012 14:39:22 -0800 (PST) Message-ID: <4F0B6C9A.7090105@gmail.com> Date: Mon, 09 Jan 2012 17:39:22 -0500 From: Eli Finkelshteyn User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: common-user@hadoop.apache.org Subject: Re: Netstat Shows Port 8020 Doesn't Seem to Listen References: <4F0B2E6E.8080204@gmail.com> <4F0B38BF.10708@gmail.com> <4F0B4214.2050600@gmail.com> <4F0B63E6.9090404@gmail.com> <4F949329-284F-4593-B378-68509E3FDDCF@gmail.com> In-Reply-To: <4F949329-284F-4593-B378-68509E3FDDCF@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Good call! netstat -anl gives me: tcp 0 0 ::ffff:127.0.0.1:8020 :::* LISTEN Now it just looks like nothing is running on 8021. And now I'm really confused about why I get no communication over 8020 from the datanode. Just to reiterate, this definitely is not the firewall, running iptables -nvL gives: ... 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:50070 1 64 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:50030 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8021 1 64 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8020 ... On 1/9/12 5:08 PM, alo.alt wrote: > What happen when you try a "telnet localhost 8020"? > netstat -anl would also useful. > > best, > Alex > > -- > Alexander Lorenz > http://mapredit.blogspot.com > > On Jan 9, 2012, at 2:02 PM, Eli Finkelshteyn wrote: > >> A bit more info: >> >> When I start up only the namenode by itself, I'm not seeing any errors, but what I am seeing that's really odd is: >> >> 2012-01-09 16:48:45,530 INFO org.apache.hadoop.ipc.Server: Starting >> Socket Reader #1 for port 8020 >> 2012-01-09 16:48:45,531 INFO >> org.apache.hadoop.ipc.metrics.RpcMetrics: Initializing RPC Metrics >> with hostName=NameNode, port=8020 >> 2012-01-09 16:48:45,532 INFO >> org.apache.hadoop.ipc.metrics.RpcDetailedMetrics: Initializing RPC >> Metrics with hostName=NameNode, port=8020 >> 2012-01-09 16:48:45,541 INFO >> org.apache.hadoop.hdfs.server.namenode.NameNode: Namenode up at: >> localhost.localdomain/127.0.0.1:8020 >> >> That's despite the fact that doing netstat -a | grep 8020 still returns nothing. To me, that makes absolutely no sense. I feel like I should be getting an error telling me Namenode did not in fact go up on 8020, but I'm not getting that at all. >> >> Eli >> >> On 1/9/12 3:22 PM, Idris Ali wrote: >>> Hi, >>> >>> Looks like problem in starting DFS and MR, can you run 'jps' and see if NN, >>> DN, SNN, JT and TT are running, >>> >>> also make sure for pseudo-distributed mode, the following entries are >>> present: >>> >>> 1. In core-site.xml >>> >>> fs.default.name >>> hdfs://localhost:8020 >>> >>> >>> >>> hadoop.tmp.dir >>> >>> >>> >>> >>> 2. In hdfs-site.xml >>> >>> dfs.replication >>> 1 >>> >>> >>> dfs.permissions >>> false >>> >>> >>> >>> dfs.name.dir >>> Local dir with Read/Write access >>> >>> >>> 3. In mapred-stie.xml >>> >>> mapred.job.tracker >>> localhost:8021 >>> >>> >>> Thanks, >>> -Idris >>> >>> On Tue, Jan 10, 2012 at 1:07 AM, Eli Finkelshteynwrote: >>> >>>> Positive. Like I said before, netstat -a | grep 8020 gives me nothing. >>>> Even if the firewall was the problem, that should still give me output that >>>> the port is listening, but I'd just be unable to hit it from an outside box >>>> (I tested this by blocking port 50070, at which point it still showed up in >>>> netstat -a, but was inaccessible through http from a remote machine). This >>>> problem is something else. >>>> >>>> >>>> On 1/9/12 2:31 PM, zGreenfelder wrote: >>>> >>>>> On Mon, Jan 9, 2012 at 1:58 PM, Eli Finkelshteyn> >>>>> wrote: >>>>> >>>>>> More info: >>>>>> >>>>>> In the DataNode log, I'm also seeing: >>>>>> >>>>>> 2012-01-09 13:06:27,751 INFO org.apache.hadoop.ipc.Client: Retrying >>>>>> connect >>>>>> to server: localhost/127.0.0.1:8020. Already tried 9 time(s). >>>>>> >>>>>> Why would things just not load on port 8020? I feel like all the errors >>>>>> I'm >>>>>> seeing are caused by this, but I can't see any errors about why this >>>>>> occurred in the first place. >>>>>> >>>>>> are you sure there isn't a firewall in place blocking port 8020? >>>>> e.g. iptables on the local machines? if you do >>>>> telnet localhost 8020 >>>>> do you make a connection? if you use lsof and/or netstat can you see >>>>> the port open? >>>>> if you have root access you can try turning off the firewall with >>>>> iptables -F to see if things work without firewall rules. >>>>>