Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 F21AB103FC for ; Sun, 19 Apr 2015 17:46:52 +0000 (UTC) Received: (qmail 51527 invoked by uid 500); 19 Apr 2015 17:46:46 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 51413 invoked by uid 500); 19 Apr 2015 17:46:46 -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 51403 invoked by uid 99); 19 Apr 2015 17:46:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2015 17:46:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for user@hadoop.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2015 17:46:41 +0000 Received: from sulu.netzoomi.net (sulu.netzoomi.net [83.138.144.103]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id DC92243E50 for ; Sun, 19 Apr 2015 17:46:19 +0000 (UTC) Received: from vulcan.netzoomi.net (unknown [212.100.249.54]) by sulu.netzoomi.net (Postfix) with ESMTP id 8C3D06A4538 for ; Sun, 19 Apr 2015 18:45:39 +0100 (BST) X-Envelope-From: Received: from vista (cpc7-seve18-2-0-cust228.13-3.cable.virginm.net [86.19.240.229]) by vulcan.netzoomi.net (Postfix) with ESMTPA id 54CD21248BAE for ; Sun, 19 Apr 2015 18:45:39 +0100 (BST) From: "Mich Talebzadeh" To: References: <391515785.6050813.1429258932549.JavaMail.yahoo@mail.yahoo.com><00e801d07ac3$8ac51e90$a04f5bb0$@co.uk> In-Reply-To: Subject: RE: ipc.Client: Retrying connect to server Date: Sun, 19 Apr 2015 18:45:31 +0100 Message-ID: <00f301d07ac8$a1d4a560$e57df020$@co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F4_01D07AD1.03990D60" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdB6x5dYK0fJtx34TuSeUxdKPXbPdAAANWUg Content-Language: en-gb X-domainnameshop-MailScanner-Information: Please contact the ISP for more information X-domainnameshop-MailScanner-ID: 8C3D06A4538.A2B90 X-domainnameshop-MailScanner: Found to be clean X-domainnameshop-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=3.354, required 5, autolearn=disabled, HTML_MESSAGE 0.00, KAM_BADIPHTTP 2.00, NORMAL_HTTP_TO_IP 0.00, RDNS_NONE 1.27, TW_JP 0.08, WEIRD_PORT 0.00) X-domainnameshop-MailScanner-SpamScore: 3 X-domainnameshop-MailScanner-From: mich@peridale.co.uk X-domainnameshop-MailScanner-Watermark: 1430070340.70671@McCd3w58NUSqPncbESpkdA X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No This is a multi-part message in MIME format. ------=_NextPart_000_00F4_01D07AD1.03990D60 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Yes =20 cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 50.140.197.217 rhes564 rhes564 127.0.0.1 rhes564 localhost.localdomain localhost =20 =20 Mich Talebzadeh =20 http://talebzadehmich.wordpress.com =20 Author of the books "A Practitioner=E2=80=99s Guide to Upgrading to = Sybase ASE 15", ISBN 978-0-9563693-0-7.=20 co-author "Sybase Transact SQL Guidelines Best Practices", ISBN = 978-0-9759693-0-4 Publications due shortly: Creating in-memory Data Grid for Trading Systems with Oracle TimesTen = and Coherence Cache Oracle and Sybase, Concepts and Contrasts, ISBN: 978-0-9563693-1-4, = volume one out shortly =20 NOTE: The information in this email is proprietary and confidential. = This message is for the designated recipient only, if you are not the = intended recipient, you should destroy it immediately. Any information = in this message shall not be understood as given or endorsed by Peridale = Ltd, its subsidiaries or their employees, unless expressly so stated. It = is the responsibility of the recipient to ensure that this email is = virus free, therefore neither Peridale Ltd, its subsidiaries nor their = employees accept any responsibility. =20 From: MrAsanjar . [mailto:afsanjar@gmail.com]=20 Sent: 19 April 2015 18:38 To: user@hadoop.apache.org Subject: Re: ipc.Client: Retrying connect to server =20 try adding "127.0.0.1 localhost" to /etc/hosts file =20 On Sun, Apr 19, 2015 at 12:09 PM, Mich Talebzadeh = wrote: Hi, =20 In addition, perhaps an easier approach would be a telnet to test = quickly if server is started on a given port =20 Mine runs on port 9000 so if it works the telnet opening will be = successful. =20 netstat -plten|grep java =20 tcp 0 0 0.0.0.0:10020 0.0.0.0:* = LISTEN 1009 19471 6898/java tcp 0 0 0.0.0.0:50020 0.0.0.0:* = LISTEN 1009 15758 6213/java tcp 0 0 50.140.197.217:9000 0.0.0.0:* = LISTEN 1009 15711 6113/java tcp 0 0 0.0.0.0:50090 0.0.0.0:* = LISTEN 1009 15972 6405/java tcp 0 0 0.0.0.0:19888 0.0.0.0:* = LISTEN 1009 18565 6898/java tcp 0 0 0.0.0.0:10033 0.0.0.0:* = LISTEN 1009 18343 6898/java tcp 0 0 0.0.0.0:50070 0.0.0.0:* = LISTEN 1009 15502 6113/java tcp 0 0 0.0.0.0:10010 0.0.0.0:* = LISTEN 1009 21433 7335/java tcp 0 0 0.0.0.0:50010 0.0.0.0:* = LISTEN 1009 15745 6213/java tcp 0 0 0.0.0.0:9083 0.0.0.0:* = LISTEN 1009 19481 7110/java tcp 0 0 0.0.0.0:50075 0.0.0.0:* = LISTEN 1009 15750 6213/java =20 hduser@rhes564::/home/hduser/dba/bin> telnet rhes564 9000 Trying 50.140.197.217... Connected to rhes564. Escape character is '^]'. =20 HTH =20 Mich Talebzadeh =20 http://talebzadehmich.wordpress.com =20 Author of the books "A Practitioner=E2=80=99s Guide to Upgrading to = Sybase ASE 15", ISBN 978-0-9563693-0-7.=20 co-author "Sybase Transact SQL Guidelines Best Practices", ISBN = 978-0-9759693-0-4 Publications due shortly: Creating in-memory Data Grid for Trading Systems with Oracle TimesTen = and Coherence Cache Oracle and Sybase, Concepts and Contrasts, ISBN: 978-0-9563693-1-4, = volume one out shortly =20 NOTE: The information in this email is proprietary and confidential. = This message is for the designated recipient only, if you are not the = intended recipient, you should destroy it immediately. Any information = in this message shall not be understood as given or endorsed by Peridale = Ltd, its subsidiaries or their employees, unless expressly so stated. It = is the responsibility of the recipient to ensure that this email is = virus free, therefore neither Peridale Ltd, its subsidiaries nor their = employees accept any responsibility. =20 From: Brahma Reddy Battula [mailto:brahmareddy.battula@hotmail.com]=20 Sent: 19 April 2015 17:53 To: user@hadoop.apache.org Subject: RE: ipc.Client: Retrying connect to server =20 Hello Mahmood Naderan, =20 When client is trying to connect to server with configured port(and = address) and server is not started with that port then client will retry = ( and you will get following error..).. =20 I can able to trace that Namenode is not running From JPS report which = you had posted..Please check the namenode logs ( location : = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-namenode-tiger.out/log) =20 _____ =20 Date: Fri, 17 Apr 2015 08:22:12 +0000 From: nt_mahmood@yahoo.com To: user@hadoop.apache.org Subject: ipc.Client: Retrying connect to server Hello, I have done all steps (as far as I know) to bring up the hadoop. = However, I get the this error =20 15/04/17 12:45:31 INFO ipc.Client: Retrying connect to server: = localhost/127.0.0.1:54310. Already tried 0 time(s). =20 There are a lot of threads and posts regarding this error and I tried = them. However still stuck at this error :( =20 Can someone help me? What did I wrong? =20 =20 =20 =20 Here are the configurations: =20 1) Hadoop configurations [mahmood@tiger hadoop-1.0.2]$ cat conf/mapred-site.xml mapred.job.tracker localhost:54311 mapred.child.java.opts -Xmx512m =20 [mahmood@tiger hadoop-1.0.2]$ cat conf/core-site.xml fs.default.name hdfs://localhost:54310 =20 [mahmood@tiger hadoop-1.0.2]$ cat conf/hdfs-site.xml dfs.replication 1 hadoop.tmp.dir = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/tmp= dfs.name.dir = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/name dfs.data.dir = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/data =20 =20 =20 =20 =20 2) Network configuration [root@tiger hadoop-1.0.2]# cat /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 54310 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 54311 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT =20 [root@tiger hadoop-1.0.2]# /etc/init.d/iptables restart iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] iptables: Applying firewall rules: [ OK ] =20 [mahmood@tiger hadoop-1.0.2]$ netstat -an | grep 54310 [mahmood@tiger hadoop-1.0.2]$ netstat -an | grep 54311 tcp 0 0 ::ffff:127.0.0.1:54311 :::* = LISTEN tcp 426 0 ::ffff:127.0.0.1:54311 ::ffff:127.0.0.1:49639 = ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:49639 ::ffff:127.0.0.1:54311 = ESTABLISHED =20 =20 =20 =20 =20 =20 3) Starting Hadoop [mahmood@tiger hadoop-1.0.2]$ stop-all.sh Warning: $HADOOP_HOME is deprecated. stopping jobtracker localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: stopping tasktracker no namenode to stop localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: no datanode to stop localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: stopping secondarynamenode =20 [mahmood@tiger hadoop-1.0.2]$ start-all.sh Warning: $HADOOP_HOME is deprecated. starting namenode, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-namenode-tiger.out localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: starting datanode, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-datanode-tiger.out localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: starting secondarynamenode, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-secondarynamenode-tiger.out starting jobtracker, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-jobtracker-tiger.out localhost: Warning: $HADOOP_HOME is deprecated. localhost: localhost: starting tasktracker, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-tasktracker-tiger.out =20 [mahmood@tiger hadoop-1.0.2]$ jps 21712 JobTracker 21882 TaskTracker 21580 SecondaryNameNode 21989 Jps =20 [mahmood@tiger hadoop-1.0.2]$ hadoop dfsadmin -report Warning: $HADOOP_HOME is deprecated. 15/04/17 12:45:31 INFO ipc.Client: Retrying connect to server: = localhost/127.0.0.1:54310. Already tried 0 time(s). 15/04/17 12:45:32 INFO ipc.Client: Retrying connect to server: = localhost/127.0.0.1:54310. Already tried 1 time(s). =20 Regards, Mahmood =20 ------=_NextPart_000_00F4_01D07AD1.03990D60 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Yes

 

cat = /etc/hosts

# Do not = remove the following line, or various programs

# that require network functionality will = fail.

50.140.197.217=C2=A0 rhes564 = rhes564

127.0.0.1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rhes564 = localhost.localdomain=C2=A0=C2=A0 localhost

 

 

= M= ich Talebzadeh

<= o:p> 

h= ttp://talebzadehmich.wordpress.com

 

Author of the = books "A Practitioner=E2=80=99s Guide to Upgrading to = Sybase ASE = 15", ISBN = 978-0-9563693-0-7. =

co-author = "Sybase Transact SQL Guidelines Best Practices", ISBN = 978-0-9759693-0-4

Publications due shortly:

Cr= eating in-memory Data Grid for Trading Systems with Oracle TimesTen and = Coherence Cache

Oracle and = Sybase, Concepts and Contrasts, = ISBN: = 978-0-9563693-1-4, volume one out = shortly

<= o:p> 

NO= TE: The information in this email is proprietary and confidential. This = message is for the designated recipient only, if you are not the = intended recipient, you should destroy it immediately. Any information = in this message shall not be understood as given or endorsed by Peridale = Ltd, its subsidiaries or their employees, unless expressly so stated. It = is the responsibility of the recipient to ensure that this email is = virus free, therefore neither Peridale Ltd, its subsidiaries nor their = employees accept any responsibility.

 

From:= MrAsanjar = . [mailto:afsanjar@gmail.com]
Sent: 19 April 2015 = 18:38
To: user@hadoop.apache.org
Subject: Re: = ipc.Client: Retrying connect to server

 

try = adding "127.0.0.1 = localhost" to /etc/hosts file

 

On Sun, = Apr 19, 2015 at 12:09 PM, Mich Talebzadeh <mich@peridale.co.uk> = wrote:

Hi,

 =

In addition, = perhaps an easier approach would be a telnet to test quickly if server = is started on a given port

 =

Mine runs on = port 9000 so if it works the telnet opening will be = successful.

 =

netstat = -plten|grep java

 

tcp        = 0      0 0.0.0.0:10020      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       19471 =      6898/java

tcp        = 0      0 0.0.0.0:50020      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15758      6213/java

tcp        = 0      0 50.140.197.217:9000     &n= bsp;   = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15711      = 6113/java

tcp        = 0      0 0.0.0.0:50090      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15972      6405/java

tcp        = 0      0 0.0.0.0:19888      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 18565      6898/java

tcp        = 0      0 0.0.0.0:10033      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 18343      6898/java

tcp        = 0      0 0.0.0.0:50070      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15502      6113/java

tcp        = 0      0 0.0.0.0:10010      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 21433      7335/java

tcp        = 0      0 0.0.0.0:50010      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15745      6213/java

tcp        = 0      0 0.0.0.0:9083      &nb= sp;         = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 19481      7110/java

tcp        = 0      0 0.0.0.0:50075      &n= bsp;        = 0.0.0.0:*          &nbs= p;        = LISTEN      = 1009       = 15750      6213/java

 

hduser@rhes564::/home/hduser/dba/bin> telnet = rhes564 9000

Trying = 50.140.197.217...

Connected to rhes564.

Escape = character is '^]'.

 

H= TH

&= nbsp;

M= ich Talebzadeh

&= nbsp;

<= a href=3D"http://talebzadehmich.wordpress.com" = target=3D"_blank">http://talebzadehmich.wordpress.com

 

Author of the = books "A Practitioner=E2=80=99s Guide to Upgrading to Sybase ASE = 15", ISBN 978-0-9563693-0-7.

co-author = "Sybase Transact SQL Guidelines Best Practices", ISBN = 978-0-9759693-0-4

Publications due shortly:

Cr= eating in-memory Data Grid for Trading Systems with Oracle TimesTen and = Coherence Cache

Oracle and = Sybase, Concepts and Contrasts, ISBN: = 978-0-9563693-1-4, volume one out = shortly

&= nbsp;

NO= TE: The information in this email is proprietary and confidential. This = message is for the designated recipient only, if you are not the = intended recipient, you should destroy it immediately. Any information = in this message shall not be understood as given or endorsed by Peridale = Ltd, its subsidiaries or their employees, unless expressly so stated. It = is the responsibility of the recipient to ensure that this email is = virus free, therefore neither Peridale Ltd, its subsidiaries nor their = employees accept any responsibility.

 =

From:= Brahma = Reddy Battula [mailto:brahmareddy.battula@hotmail.com]
Sent: = 19 April 2015 17:53
To: user@hadoop.apache.org
Subject: RE: = ipc.Client: Retrying connect to = server

 <= /o:p>

Hello Mahmood = Naderan,

 

=

When client is trying to = connect to server with configured port(and address) and server is not = started with that port then client will retry ( and you will get = following error..)..

 

=

I can able to trace that = Namenode is not running From JPS report which you had posted..Please = check the namenode logs ( location /home/mah= mood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mahmood-name= node-tiger.out/log)

 

=

Date: Fri, 17 Apr 2015 = 08:22:12 +0000
From: nt_mahmood@yahoo.com
To: user@hadoop.apache.org
Subject: ipc.Client: = Retrying connect to = server

Hello,<= o:p>

I = have done all steps (as far as I know) to bring up the hadoop. However, = I get the this error

 <= o:p>

15/04/17 = 12:45:31 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. = Already tried 0 time(s).

<= o:p> 

There are a = lot of threads and posts regarding this error and I tried them. However = still stuck at this error :(

 <= o:p>

<= span style=3D'font-family:"Helvetica","sans-serif";color:black'>Can = someone help me? What did I = wrong?

 <= o:p>

 <= o:p>

 <= o:p>

<= o:p> 

Here are the = configurations:

<= o:p> 

1) = Hadoop configurations

<= span = style=3D'font-family:"Helvetica","sans-serif";color:black'>[mahmood@tiger= hadoop-1.0.2]$ cat conf/mapred-site.xml
<?xml = version=3D"1.0"?>
<?xml-stylesheet = type=3D"text/xsl" = href=3D"configuration.xsl"?>
<!-- Put site-specific = property overrides in this file. = -->
<configuration>
<property>
  = <name>mapred.job.tracker</name>
  = <value>localhost:54311</value>
</property>
<pr= operty>
  = <name>mapred.child.java.opts</name>
  = <value>-Xmx512m</value>
</property>
</configur= ation>

<= o:p> 

<= span = style=3D'font-family:"Helvetica","sans-serif";color:black'>[mahmood@tiger= hadoop-1.0.2]$ cat conf/core-site.xml
<?xml = version=3D"1.0"?>
<?xml-stylesheet = type=3D"text/xsl" = href=3D"configuration.xsl"?>
<!-- Put site-specific = property overrides in this file. = -->
<configuration>
<property>
  = <name>fs.default.name</name>
  = <value>hdfs://localhost:54310</value>
</property></configuration>

<= o:p> 

<= span = style=3D'font-family:"Helvetica","sans-serif";color:black'>[mahmood@tiger= hadoop-1.0.2]$ cat conf/hdfs-site.xml
<?xml = version=3D"1.0"?>
<?xml-stylesheet = type=3D"text/xsl" = href=3D"configuration.xsl"?>
<!-- Put site-specific = property overrides in this file. = -->
<configuration>
<property>
  = <name>dfs.replication</name>
  = <value>1</value>
</property>
<property>
=   <name>hadoop.tmp.dir</name>
  = <value>/home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/tmp&l= t;/value>
</property>
<property>
  = <name>dfs.name.dir</name>
  = <value>/home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/name&= lt;/value>
</property>
<property>
  = <name>dfs.data.dir</name>
  = <value>/home/mahmood/bigdatabench/apache/hadoop-1.0.2/folders/data&= lt;/value>
</property>
</configuration><= /o:p>

 <= o:p>

 <= o:p>

 <= o:p>

 <= o:p>

 <= o:p>

2) = Network configuration

[root@tiger = hadoop-1.0.2]# cat /etc/sysconfig/iptables
# Firewall configuration = written by system-config-firewall
# Manual customization of this file = is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT = [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state = ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT = -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport = 5901 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 = -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j = ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j = ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 54310 -j = ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 54311 -j = ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A = FORWARD -j REJECT --reject-with = icmp-host-prohibited
COMMIT

 <= o:p>

[root@tiger = hadoop-1.0.2]# /etc/init.d/iptables restart
iptables: Flushing = firewall = rules:           &= nbsp;           &n= bsp; [  OK  ]
iptables: Setting chains to policy ACCEPT: = filter          [  = OK  ]
iptables: Unloading = modules:           = ;            =         [  OK  = ]
iptables: Applying firewall = rules:           &= nbsp;           &n= bsp; [  OK  ]

 <= o:p>

[mahmood@tiger= hadoop-1.0.2]$ netstat -an | grep = 54310

[mahmood@tiger= hadoop-1.0.2]$ netstat -an | grep = 54311
tcp        = 0      0 ::ffff:127.0.0.1:54311      = :::*           &nb= sp;            = LISTEN
tcp      = 426      0 ::ffff:127.0.0.1:54311      = ::ffff:127.0.0.1:49639      = ESTABLISHED
tcp        = 0      0 ::ffff:127.0.0.1:49639      = ::ffff:127.0.0.1:54311      = ESTABLISHED

 <= o:p>

 <= o:p>

 <= o:p>

 <= o:p>

 <= o:p>

 <= o:p>

3) = Starting Hadoop

[mahmood@tiger= hadoop-1.0.2]$ stop-all.sh
Warning: $HADOOP_HOME is = deprecated.

stopping jobtracker
localhost: Warning: = $HADOOP_HOME is deprecated.
localhost:
localhost: stopping = tasktracker
no namenode to stop
localhost: Warning: $HADOOP_HOME = is deprecated.
localhost:
localhost: no datanode to = stop
localhost: Warning: $HADOOP_HOME is = deprecated.
localhost:
localhost: stopping = secondarynamenode

 <= o:p>

[mahmood@tiger= hadoop-1.0.2]$ start-all.sh
Warning: $HADOOP_HOME is = deprecated.

starting namenode, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-namenode-tiger.out
localhost: Warning: $HADOOP_HOME is = deprecated.
localhost:
localhost: starting datanode, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-datanode-tiger.out
localhost: Warning: $HADOOP_HOME is = deprecated.
localhost:
localhost: starting secondarynamenode, = logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-secondarynamenode-tiger.out
starting jobtracker, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-jobtracker-tiger.out
localhost: Warning: $HADOOP_HOME is = deprecated.
localhost:
localhost: starting tasktracker, logging to = /home/mahmood/bigdatabench/apache/hadoop-1.0.2/libexec/../logs/hadoop-mah= mood-tasktracker-tiger.out

 <= o:p>

[mahmood@tiger= hadoop-1.0.2]$ jps
21712 JobTracker
21882 TaskTracker
21580 = SecondaryNameNode
21989 Jps

 <= o:p>

<= span = style=3D'font-family:"Helvetica","sans-serif";color:black'>[mahmood@tiger= hadoop-1.0.2]$ hadoop dfsadmin -report
Warning: $HADOOP_HOME is = deprecated.
15/04/17 12:45:31 INFO ipc.Client: Retrying connect to = server: localhost/127.0.0.1:54310. Already tried 0 = time(s).
15/04/17 12:45:32 INFO ipc.Client: Retrying connect to = server: localhost/127.0.0.1:54310. Already tried 1 = time(s).

 <= o:p>

Regards,
Ma= hmood

 

------=_NextPart_000_00F4_01D07AD1.03990D60--