Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop >> mail # user >> Re: sym Links in hadoop


Copy link to this message
-
Re: sym Links in hadoop
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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <
>> [EMAIL PROTECTED]>
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >>           can we create symlinks within hadoop is ther any shell
>> commands
>> >> or can we do it thru java....
>> >
>> >
>>
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB