Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 2B7F110F47 for ; Wed, 26 Feb 2014 02:51:27 +0000 (UTC) Received: (qmail 40344 invoked by uid 500); 26 Feb 2014 02:51:18 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 40045 invoked by uid 500); 26 Feb 2014 02:51:17 -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 39887 invoked by uid 99); 26 Feb 2014 02:51:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 02:51:16 +0000 X-ASF-Spam-Status: No, hits=3.4 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirag.dewan@ericsson.com designates 193.180.251.45 as permitted sender) Received: from [193.180.251.45] (HELO mailgw1.ericsson.se) (193.180.251.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 02:51:11 +0000 X-AuditID: c1b4fb2d-b7f5d8e000002a7b-9f-530d56891562 Received: from ESESSHC023.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id 4C.C8.10875.9865D035; Wed, 26 Feb 2014 03:50:49 +0100 (CET) Received: from ESESSMB105.ericsson.se ([169.254.5.166]) by ESESSHC023.ericsson.se ([153.88.183.87]) with mapi id 14.02.0387.000; Wed, 26 Feb 2014 03:50:47 +0100 From: Chirag Dewan To: "user@hadoop.apache.org" Subject: RE: Wrong FS hdfs:/localhost:9000 ;expected file/// Thread-Topic: Wrong FS hdfs:/localhost:9000 ;expected file/// Thread-Index: Ac8xVv6tIdV5T5h/RHCNDOC50Uj3IABOdSwAAAMl66A= Date: Wed, 26 Feb 2014 02:50:48 +0000 Message-ID: <6ED92CB759CBB24EAF3F30FC49C774941B7736@ESESSMB105.ericsson.se> References: <6ED92CB759CBB24EAF3F30FC49C774941B703F@ESESSMB105.ericsson.se> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [153.88.183.20] Content-Type: multipart/alternative; boundary="_000_6ED92CB759CBB24EAF3F30FC49C774941B7736ESESSMB105ericsso_" MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsUyM+JvjW5nGG+wwZ1dkhY9U6axODB6TOja whjAGMVlk5Kak1mWWqRvl8CVsbD/LHvBFZuK62e9GhgPmHUxcnJICJhIrGmczQJhi0lcuLee rYuRi0NI4BCjxOz+JewQzhJGiTcLn7GDVLEJ6EksOLqIuYuRg0NEwFSi56kuSFhYwEbi7ozV jCC2iICtxLpXd9kgbCuJ2atOMYPYLAKqEqdvzmUCsXkFvCVanz0CqxESmMQo8e+sBYjNKRAo 8ar3BdhBjEAHfT+1BqyeWUBc4taT+UwQhwpILNlznhnCFpV4+fgfK4StKHF1+nKo+nyJR713 mSF2CUqcnPmEZQKjyCwko2YhKZuFpAwiriOxYPcnNghbW2LZwtfMMPaZA4+ZkMUXMLKvYmTP TczMSS833MQIjJKDW37r7mA8dU7kEKM0B4uSOO+Ht85BQgLpiSWp2ampBalF8UWlOanFhxiZ ODilGhgNrh5YU20XenTi03bJZQ6Vv2y+9529MuPJ3ktvnHeFpa59fex8XFu40+KJq81fioa3 BT/Y2jWjIGl+IHus8iY3o/9BopaWqUoR6nrT7ltPNrDiudt5cknx68kqmbNmnJdykGPcV7/u 0Z2tfDULpr3tv8SyzvO8ZEf+Id+47+6HNq3R8K6TdZRVYinOSDTUYi4qTgQAKq0ysmACAAA= X-Virus-Checked: Checked by ClamAV on apache.org --_000_6ED92CB759CBB24EAF3F30FC49C774941B7736ESESSMB105ericsso_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Thanks a lot everyone for the quick response. I got that working by putting HADOOP_CONF_DIR in the classpath. Thanks. Chirag Dewan From: Shumin Guo [mailto:gsmsteve@gmail.com] Sent: Wednesday, February 26, 2014 7:50 AM To: user@hadoop.apache.org Subject: Re: Wrong FS hdfs:/localhost:9000 ;expected file/// The value should be hdfs:///localhost: On Feb 24, 2014 6:37 AM, "Chirag Dewan" > wrote: Hi All, I am new to hadoop. I am using hadoop 2.2.0. I have a simple client code wh= ich reads a file from HDFS on a single node cluster. Now when I run my code= using java -jar mytest.jar it throws the error Wrong FS hdfs://localhost. When I run the same code with hadoop jar test.jar it works just fine. I have my core-site.xml with fs.default.name as hdf= s://localhost Am I missing some classpath dependency here? Thanks in advance. Chirag Dewan --_000_6ED92CB759CBB24EAF3F30FC49C774941B7736ESESSMB105ericsso_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,=

 <= /p>

Thanks a lot everyone for= the quick response.

 <= /p>

I got that working by put= ting HADOOP_CONF_DIR in the classpath.

 <= /p>

Thanks.=

 <= /p>

Chirag Dewan

 <= /p>

From: Shumin G= uo [mailto:gsmsteve@gmail.com]
Sent: Wednesday, February 26, 2014 7:50 AM
To: user@hadoop.apache.org
Subject: Re: Wrong FS hdfs:/localhost:9000 ;expected file///

 


The value should be hdfs:///localhost:<port>

--_000_6ED92CB759CBB24EAF3F30FC49C774941B7736ESESSMB105ericsso_--