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 CD2D410338 for ; Thu, 6 Mar 2014 19:37:06 +0000 (UTC) Received: (qmail 98112 invoked by uid 500); 6 Mar 2014 19:36:57 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 98017 invoked by uid 500); 6 Mar 2014 19:36:57 -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 97832 invoked by uid 99); 6 Mar 2014 19:36:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 19:36:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of threadedblue@gmail.com designates 74.125.82.179 as permitted sender) Received: from [74.125.82.179] (HELO mail-we0-f179.google.com) (74.125.82.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 19:36:52 +0000 Received: by mail-we0-f179.google.com with SMTP id x48so3706696wes.38 for ; Thu, 06 Mar 2014 11:36:31 -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=JUgZMTFsTw5Vtlt61emuKWMw5lDfcM5zJRxwYmGGAe8=; b=u17zFWvFOS5ZvG2xswYKQKV7jdrErWqPAt12Doog66zTF6QYDbI2mgGWx9tGO2Ec6i 7BAczaBS1UmLHkTka9eeAAKA+etqtWw6hOtprB+Y5FR6Ua34JuMvcQ2rZ4gZv6j8l3C5 WddRQQYxKyXL4S2+uA5OXUr2t3AT0GV3+EO6FQm5NXgzbWUACsf6+P7k0dwLipqXle8A VB42il1JgKGie0ftHOl3wEjQWiKZYcEjg9j7kNekylWdsnhjm8RzmbnrE31e+Mcetd5m tniCqzXTrmXqPUwdDhPx7hVz22HoMaiaLUlPHRWZ6LYQx85+s+yjT46s++R8PWp8tv5X kRGA== MIME-Version: 1.0 X-Received: by 10.194.62.206 with SMTP id a14mr13242015wjs.26.1394134591588; Thu, 06 Mar 2014 11:36:31 -0800 (PST) Received: by 10.194.90.40 with HTTP; Thu, 6 Mar 2014 11:36:31 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Mar 2014 14:36:31 -0500 Message-ID: Subject: Re: HDFS java client vs the Command Line From: Geoffry Roberts To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b66f8e119cbf004f3f5414b X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66f8e119cbf004f3f5414b Content-Type: text/plain; charset=ISO-8859-1 Thanks for the response. I figured out what was wrong. I was doing this: Configuration conf = new Configuration(); conf.addResource(new Path(F.CFG_PATH + "/core-site.xml")); conf.addResource(new Path(F.CFG_PATH + "/hdfs-site.xml")); conf.addResource(new Path(F.CFG_PATH + "/mapred-site.xml")); F.CFG_PATH was close but not correct. Fixed it and all is well. Thanks On Thu, Mar 6, 2014 at 1:05 PM, Harsh J wrote: > I've never faced an issue trying to run hadoop and related programs on > my OSX. What is your error exactly? > > Have you ensured your Java classpath carries the configuration > directory on it as well, if you aren't running the program via "hadoop > jar ..." but via "java -cp ..." instead. > > On Thu, Mar 6, 2014 at 9:50 AM, Geoffry Roberts > wrote: > > All, > > > > I'm running the 2.3.0 distribution as a single node on OSX 10.7. I want > to > > create a directory. From the command line it works; from java it > doesn't. > > I have Googled and read bits and pieces that this is an issue with the > OSX > > "feature" of case insensitivity with its file system. Can anyone confirm > > this? If so, can anyone advise as to a workaround? > > > > Such a simple thing to get hung up on, go figure. > > > > Thanks > > > > -- > > There are ways and there are ways, > > > > Geoffry Roberts > > > > -- > Harsh J > -- There are ways and there are ways, Geoffry Roberts --047d7b66f8e119cbf004f3f5414b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for the response. =A0I figured out what was wr= ong. =A0

I was doing this:

Configuration c= onf =3D new Configuration();

conf.addResource(= new Path(F.CFG_PATH + &q= uot;/core-site.xml"));

conf.addResource(= new Path(F.CFG_PATH + &q= uot;/hdfs-site.xml"));

conf.addResource(= new Path(F.CFG_PATH + &q= uot;/mapred-site.xml"));


F.CFG_PATH was close but not correct. =A0Fixed it and all is wel= l.


Thanks




On Thu, Mar 6, 2014 at 1:05 PM, Harsh J <harsh@cloudera.com&g= t; wrote:
I've never faced an issue trying to run = hadoop and related programs on
my OSX. What is your error exactly?

Have you ensured your Java classpath carries the configuration
directory on it as well, if you aren't running the program via "ha= doop
jar ..." but via "java -cp ..." instead.

On Thu, Mar 6, 2014 at 9:50 AM, Geoffry Roberts <threadedblue@gmail.com> wrote:
> All,
>
> I'm running the 2.3.0 distribution as a single node on OSX 10.7. = =A0I want to
> create a directory. =A0From the command line it works; from java it do= esn't.
> I have Googled and read bits and pieces that this is an issue with the= OSX
> "feature" of case insensitivity with its file system. =A0Can= anyone confirm
> this? =A0If so, can anyone advise as to a workaround?
>
> Such a simple thing to get hung up on, go figure.
>
> Thanks
>
> --
> There are ways and there are ways,
>
> Geoffry Roberts



--
Harsh J



--
There are ways and there are ways,=A0
Geoffry Roberts
--047d7b66f8e119cbf004f3f5414b--