Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 22E5A1042E for ; Thu, 6 Mar 2014 19:53:56 +0000 (UTC) Received: (qmail 42580 invoked by uid 500); 6 Mar 2014 19:53:47 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 42473 invoked by uid 500); 6 Mar 2014 19:53: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 42466 invoked by uid 99); 6 Mar 2014 19:53:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 19:53:46 +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 (nike.apache.org: domain of harsh@cloudera.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-ig0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 19:53:41 +0000 Received: by mail-ig0-f173.google.com with SMTP id t19so9234998igi.0 for ; Thu, 06 Mar 2014 11:53:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=Zq1nioIKeaZGPnCmZ86eNBdFvIVQjEA/BaTtFUsKGsc=; b=TXNvLJvNXEarYxz0KZytytnvdyyfIfUrnEKWhTVHKSglSomHZreTgR4BnkSrM/cVOS NOlzFGc4CrHf1bhb3wXbAqSaKHU1EJLX6FWmYwkeCGEifM2D1ruaQf6wbZTYkiOB9tz3 PJtOk4Pt4L+uvfpqqEjpFAqclD9AroL+gBuOB1TiFbws6O9CanPv4KgqB++jNgozFgkL Q1PLFvgXxgO/ZUWmZGr2dWsWg/EtpGY66tgqUpLXBqGOI44rs+Ctjr/HRzbOMb6FwTBT BylRWmSXON2HtYAHn8rYVN9eeMcvmP6OhRdkc7mcBICxyfrt/zmGSoFgue5ja8X6hKoQ +eUg== X-Gm-Message-State: ALoCoQntwTT/1kfb0IhmdNvFz/jvAHsLy42+HspG0BOio9vqyEVsKNAOE5elvu6G4QhnFPLjfOgs X-Received: by 10.42.118.14 with SMTP id v14mr2740714icq.73.1394135600146; Thu, 06 Mar 2014 11:53:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.61.97 with HTTP; Thu, 6 Mar 2014 11:53:00 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Thu, 6 Mar 2014 11:53:00 -0800 Message-ID: Subject: Re: HDFS java client vs the Command Line To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You could avoid all that code by simply placing the configuration directory on the classpath - it will auto-load necessary properties. On Thu, Mar 6, 2014 at 11:36 AM, Geoffry Roberts wrote: > 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 -- Harsh J