You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by yogesh dhari <yo...@live.com> on 2012/09/11 17:55:19 UTC
Error in : hadoop fsck /
Hi all,
I am running hadoop-0.20.2 on single node cluster,
I run the command
hadoop fsck /
it shows error:
Exception in thread "main" java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
Please suggest why it so.. it should show the health status:
Re: Error in : hadoop fsck /
Posted by Harsh J <ha...@cloudera.com>.
Atop what Arpit has said, the format of dfs.http.address is a simple
host:port, and should not be http://host:port (which you may have set
instead).
On Tue, Sep 11, 2012 at 10:14 PM, Arpit Gupta <ar...@hortonworks.com> wrote:
> Yogesh
>
> try this
>
> hadoop fsck -Ddfs.http.address=localhost:50070 /
>
> 50070 is the default http port that the namenode runs on. The property
> dfs.http.address should be set in your hdfs-site.xml
>
> --
> Arpit Gupta
> Hortonworks Inc.
> http://hortonworks.com/
>
> On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
>
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> ________________________________
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the
> right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
>
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
>
>
--
Harsh J
Re: Error in : hadoop fsck /
Posted by Harsh J <ha...@cloudera.com>.
Atop what Arpit has said, the format of dfs.http.address is a simple
host:port, and should not be http://host:port (which you may have set
instead).
On Tue, Sep 11, 2012 at 10:14 PM, Arpit Gupta <ar...@hortonworks.com> wrote:
> Yogesh
>
> try this
>
> hadoop fsck -Ddfs.http.address=localhost:50070 /
>
> 50070 is the default http port that the namenode runs on. The property
> dfs.http.address should be set in your hdfs-site.xml
>
> --
> Arpit Gupta
> Hortonworks Inc.
> http://hortonworks.com/
>
> On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
>
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> ________________________________
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the
> right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
>
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
>
>
--
Harsh J
Re: Error in : hadoop fsck /
Posted by Harsh J <ha...@cloudera.com>.
Atop what Arpit has said, the format of dfs.http.address is a simple
host:port, and should not be http://host:port (which you may have set
instead).
On Tue, Sep 11, 2012 at 10:14 PM, Arpit Gupta <ar...@hortonworks.com> wrote:
> Yogesh
>
> try this
>
> hadoop fsck -Ddfs.http.address=localhost:50070 /
>
> 50070 is the default http port that the namenode runs on. The property
> dfs.http.address should be set in your hdfs-site.xml
>
> --
> Arpit Gupta
> Hortonworks Inc.
> http://hortonworks.com/
>
> On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
>
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> ________________________________
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the
> right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
>
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
>
>
--
Harsh J
Re: Error in : hadoop fsck /
Posted by Harsh J <ha...@cloudera.com>.
Atop what Arpit has said, the format of dfs.http.address is a simple
host:port, and should not be http://host:port (which you may have set
instead).
On Tue, Sep 11, 2012 at 10:14 PM, Arpit Gupta <ar...@hortonworks.com> wrote:
> Yogesh
>
> try this
>
> hadoop fsck -Ddfs.http.address=localhost:50070 /
>
> 50070 is the default http port that the namenode runs on. The property
> dfs.http.address should be set in your hdfs-site.xml
>
> --
> Arpit Gupta
> Hortonworks Inc.
> http://hortonworks.com/
>
> On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
>
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> ________________________________
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the
> right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
>
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
>
>
--
Harsh J
Re: Error in : hadoop fsck /
Posted by Arpit Gupta <ar...@hortonworks.com>.
Yogesh
try this
hadoop fsck -Ddfs.http.address=localhost:50070 /
50070 is the default http port that the namenode runs on. The property dfs.http.address should be set in your hdfs-site.xml
--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
Re: Error in : hadoop fsck /
Posted by Arpit Gupta <ar...@hortonworks.com>.
Yogesh
try this
hadoop fsck -Ddfs.http.address=localhost:50070 /
50070 is the default http port that the namenode runs on. The property dfs.http.address should be set in your hdfs-site.xml
--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
Re: Error in : hadoop fsck /
Posted by Arpit Gupta <ar...@hortonworks.com>.
Yogesh
try this
hadoop fsck -Ddfs.http.address=localhost:50070 /
50070 is the default http port that the namenode runs on. The property dfs.http.address should be set in your hdfs-site.xml
--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
Re: Error in : hadoop fsck /
Posted by Arpit Gupta <ar...@hortonworks.com>.
Yogesh
try this
hadoop fsck -Ddfs.http.address=localhost:50070 /
50070 is the default http port that the namenode runs on. The property dfs.http.address should be set in your hdfs-site.xml
--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
On Sep 11, 2012, at 9:03 AM, yogesh dhari <yo...@live.com> wrote:
> Hi Hemant,
>
> Its the content of core-site.xml
>
> <configuration>
> <property>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
> </property>
> <property>
> <name>hadoop.tmp.dir</name>
> <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> </configuration>
>
> Regards
> Yogesh Kumar
>
> Date: Tue, 11 Sep 2012 21:29:36 +0530
> Subject: Re: Error in : hadoop fsck /
> From: yhemanth@thoughtworks.com
> To: user@hadoop.apache.org
>
> Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)
> Please paste it here so we can look for clues.
>
> Thanks
> hemanth
>
> On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
>
RE: Error in : hadoop fsck /
Posted by yogesh dhari <yo...@live.com>.
Hi Hemant,
Its the content of core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
<description>A base for other temporary directories.</description>
</property>
</configuration>
Regards
Yogesh Kumar
Date: Tue, 11 Sep 2012 21:29:36 +0530
Subject: Re: Error in : hadoop fsck /
From: yhemanth@thoughtworks.com
To: user@hadoop.apache.org
Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
Hi all,
I am running hadoop-0.20.2 on single node cluster,
I run the command
hadoop fsck /
it shows error:
Exception in thread "main" java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
Please suggest why it so.. it should show the health status:
RE: Error in : hadoop fsck /
Posted by yogesh dhari <yo...@live.com>.
Hi Hemant,
Its the content of core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
<description>A base for other temporary directories.</description>
</property>
</configuration>
Regards
Yogesh Kumar
Date: Tue, 11 Sep 2012 21:29:36 +0530
Subject: Re: Error in : hadoop fsck /
From: yhemanth@thoughtworks.com
To: user@hadoop.apache.org
Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
Hi all,
I am running hadoop-0.20.2 on single node cluster,
I run the command
hadoop fsck /
it shows error:
Exception in thread "main" java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
Please suggest why it so.. it should show the health status:
RE: Error in : hadoop fsck /
Posted by yogesh dhari <yo...@live.com>.
Hi Hemant,
Its the content of core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
<description>A base for other temporary directories.</description>
</property>
</configuration>
Regards
Yogesh Kumar
Date: Tue, 11 Sep 2012 21:29:36 +0530
Subject: Re: Error in : hadoop fsck /
From: yhemanth@thoughtworks.com
To: user@hadoop.apache.org
Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
Hi all,
I am running hadoop-0.20.2 on single node cluster,
I run the command
hadoop fsck /
it shows error:
Exception in thread "main" java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
Please suggest why it so.. it should show the health status:
RE: Error in : hadoop fsck /
Posted by yogesh dhari <yo...@live.com>.
Hi Hemant,
Its the content of core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
<description>A base for other temporary directories.</description>
</property>
</configuration>
Regards
Yogesh Kumar
Date: Tue, 11 Sep 2012 21:29:36 +0530
Subject: Re: Error in : hadoop fsck /
From: yhemanth@thoughtworks.com
To: user@hadoop.apache.org
Could you please review your configuration to see if you are pointing to the right namenode address ? (This will be in core-site.xml)Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
Hi all,
I am running hadoop-0.20.2 on single node cluster,
I run the command
hadoop fsck /
it shows error:
Exception in thread "main" java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
Please suggest why it so.. it should show the health status:
Re: Error in : hadoop fsck /
Posted by Hemanth Yamijala <yh...@thoughtworks.com>.
Could you please review your configuration to see if you are pointing to
the right namenode address ? (This will be in core-site.xml)
Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
Re: Error in : hadoop fsck /
Posted by Hemanth Yamijala <yh...@thoughtworks.com>.
Could you please review your configuration to see if you are pointing to
the right namenode address ? (This will be in core-site.xml)
Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
Re: Error in : hadoop fsck /
Posted by Hemanth Yamijala <yh...@thoughtworks.com>.
Could you please review your configuration to see if you are pointing to
the right namenode address ? (This will be in core-site.xml)
Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>
Re: Error in : hadoop fsck /
Posted by Hemanth Yamijala <yh...@thoughtworks.com>.
Could you please review your configuration to see if you are pointing to
the right namenode address ? (This will be in core-site.xml)
Please paste it here so we can look for clues.
Thanks
hemanth
On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari <yo...@live.com> wrote:
> Hi all,
>
> I am running hadoop-0.20.2 on single node cluster,
>
> I run the command
>
> hadoop fsck /
>
> it shows error:
>
> Exception in thread "main" java.net.UnknownHostException: http
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
> at sun.net.www.http.HttpClient.New(HttpClient.java:290)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
> at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)
>
>
>
>
> Please suggest why it so.. it should show the health status:
>