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 60749DBC3 for ; Mon, 8 Oct 2012 15:34:04 +0000 (UTC) Received: (qmail 38443 invoked by uid 500); 8 Oct 2012 15:33:59 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 38214 invoked by uid 500); 8 Oct 2012 15:33:59 -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 38207 invoked by uid 99); 8 Oct 2012 15:33:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 15:33:59 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thealy@bnl.gov designates 130.199.3.132 as permitted sender) Received: from [130.199.3.132] (HELO smtpgw.bnl.gov) (130.199.3.132) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 15:33:51 +0000 X-BNL-policy-q: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiEUAAvyclCCx/7+/2dsb2JhbABFiF+5cwEBBXgRCxgJFggHCQMCAQIBDyUREwYCAQGHbwMPsAANiVSKaWaCb4MhA5QWjHiFC4MJ X-IronPort-AV: E=Sophos;i="4.80,554,1344225600"; d="scan'208";a="12010953" Received: from t5.itd.bnl.gov (HELO [130.199.254.254]) ([130.199.254.254]) by smtpgw.sec.bnl.local with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 08 Oct 2012 11:33:31 -0400 Message-ID: <5072F24B.4030905@bnl.gov> Date: Mon, 08 Oct 2012 11:33:31 -0400 From: Terry Healy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: user@hadoop.apache.org Subject: Re: sym Links in hadoop References: In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Visioner- I hope it is not heresy to mention here, but I believe the MapR implementation of Hadoop supports symlink via NFS. -Terry On 10/08/2012 10:20 AM, Visioner Sadak wrote: > thanks dave its in hdfs only....any other methods of creating a symlink > > On Mon, Oct 8, 2012 at 7:00 PM, Dave Beech > wrote: > > Hi, > The FileUtil.symlink command does nothing more than call the unix "ln" > command, so it has no knowledge of how to work with Hadoop archive > files, only plain files and directories. > Is your archive on local disk, or in HDFS? > Cheers, > Dave > > On 8 October 2012 13:43, Visioner Sadak > wrote: > > I tried using FileUtil class for creating a symlink within hadoop > actually i > > want to create a symlink for my har directory so my code looks like > > > > FileUtil.symLink("/user2/","har:///user/5oct2012.har") > > > > but getting error like this > > > > org.apache.hadoop.fs.FileUtil > > - Command 'ln -s /user2/ har://user/5oct2012.har/' failed 1 with: ln: > > target `har:///user/5oct2012.har/' is not a directory: No such file or > > directory > > > > > > > > > > On Mon, Oct 8, 2012 at 12:13 PM, Visioner Sadak > > > > wrote: > >> > >> Hello, > >> > >> can we create symlinks within hadoop is ther any shell > commands > >> or can we do it thru java.... > > > > > > -- Terry Healy / thealy@bnl.gov Cyber Security Operations Brookhaven National Laboratory Building 515, Upton N.Y. 11973