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 EC539DE8D for ; Mon, 8 Oct 2012 14:24:55 +0000 (UTC) Received: (qmail 17178 invoked by uid 500); 8 Oct 2012 14:24:51 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 17081 invoked by uid 500); 8 Oct 2012 14:24:51 -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 17074 invoked by uid 99); 8 Oct 2012 14:24:51 -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 14:24:51 +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 (nike.apache.org: domain of visioner.sadak@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 14:24:42 +0000 Received: by mail-ee0-f48.google.com with SMTP id b45so3177222eek.35 for ; Mon, 08 Oct 2012 07:24:22 -0700 (PDT) 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=wzJ2KbX3TTYjYk0IG5YoupniQJ+KVDOQh3bXuL7VyiQ=; b=xZx0cRwH3ieToNqcu6e4VO3gInAvUWlp3s+X5kmGIQ+LFU2qPH2VPWivERCWa8FHfB VBMrwDm7TwX5Udu0jFrvIShAjInj94EEvCCjE4tcoTjWx7cJXqhZ2VnQfxpdsPIjVQkW 6jw8UniiYDfw/21gs2T1x9pOOb4GcP169nNBHhezf55QFBW602mDwTMDZfbRHD7qv8lE 1oTWtxD0LierXW9sCmb3HV23NMj2VGcY65H61KJFIFZFmHdg77uJeatnMhY9NxBz9vMv MDJCeBMitczQ70REbXRzTnb9BmAs7PaBuyi9HG+qQ7+y141CBjCK/uLtIuo/8Z6LqXlV MEIw== MIME-Version: 1.0 Received: by 10.14.0.198 with SMTP id 46mr8227626eeb.21.1349706262652; Mon, 08 Oct 2012 07:24:22 -0700 (PDT) Received: by 10.14.220.134 with HTTP; Mon, 8 Oct 2012 07:24:22 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Oct 2012 19:54:22 +0530 Message-ID: Subject: Re: sym Links in hadoop From: Visioner Sadak To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b62275e56259b04cb8cfa33 --047d7b62275e56259b04cb8cfa33 Content-Type: text/plain; charset=ISO-8859-1 act i have to access my archived hadoop har files thru http webhdfs normal files i am able to read thru http but once my files are HAR archived i m not able to read it ...thts why creating a symlink so tht the url remains same On Mon, Oct 8, 2012 at 7:50 PM, 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 < >> visioner.sadak@gmail.com> >> > wrote: >> >> >> >> Hello, >> >> >> >> can we create symlinks within hadoop is ther any shell >> commands >> >> or can we do it thru java.... >> > >> > >> > > --047d7b62275e56259b04cb8cfa33 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
act i have to access my archived hadoop har
=A0files thru http webh= dfs normal files i am able to read thru http but once my files are HAR arch= ived i m not able to read it ...thts why creating a symlink so tht the url = remains same

=A0
On Mon, Oct 8, 2012 at 7:50 PM, Visioner Sadak <= span dir=3D"ltr"><visioner.sadak@gmail.com> wrote:
thanks dave its in hdfs only....any o= ther methods of creating a symlink=20


On Mon, Oct 8, 2012 at 7:00 PM, Dave Beech <dbe= ech@apache.org> wrote:
Hi,
The FileUtil.symlink command d= oes 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 <visioner.sadak@gmail.com> wr= ote:
> I tried using FileUtil class for creating a symlink within had= oop actually i
> want to create a symlink for my har directory so my code looks like>
> FileUtil.symLink("/user2/","har:///user/5oct20= 12.har")
>
> but getting error like this
>
> o= rg.apache.hadoop.fs.FileUtil
> =A0- Command 'ln -s /user2/ har://user/5oct2012.har/' failed 1= with: ln:
> target `har:///user/5oct2012.har/' is not a director= y: No such file or
> directory
>
>
>
>
>= ; On Mon, Oct 8, 2012 at 12:13 PM, Visioner Sadak <visioner.sadak@gmail.com> > wrote:
>>
>> Hello,
>>
>> =A0 =A0 = =A0 =A0 =A0 can we create symlinks within hadoop is ther any shell commands=
>> or can we do it thru java....
>
>
<= /blockquote>


--047d7b62275e56259b04cb8cfa33--