hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Healy <the...@bnl.gov>
Subject Re: sym Links in hadoop
Date Mon, 08 Oct 2012 15:33:31 GMT
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 <dbeech@apache.org
> <mailto:dbeech@apache.org>> 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 <visioner.sadak@gmail.com
>     <mailto:visioner.sadak@gmail.com>> 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 <mailto:visioner.sadak@gmail.com>>
>     > 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

Mime
View raw message