Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - How to timeout HFDS commands


Copy link to this message
-
Re: How to timeout HFDS commands
Jeff Zhang 2010-01-22, 10:40
Then you can put the HDFS operation in one thread, and kill the thread if
you want to it timeout

On Fri, Jan 22, 2010 at 6:37 PM, Yiping Han <[EMAIL PROTECTED]> wrote:

> No, I mean in java program.
>
> Thanks~
> -- Yiping
>
>
> On 1/22/10 6:32 PM, "Jeff Zhang" <[EMAIL PROTECTED]> wrote:
>
> > Try Ctrl+C
> >
> >
> > On Fri, Jan 22, 2010 at 5:50 PM, Yiping Han <[EMAIL PROTECTED]> wrote:
> >
> >> Hi all,
> >>
> >> I'm using org.apache.hadoop.fs.FileSystem in my code for some HDFS
> >> operations. I would like to timeout and abort the operation if it takes
> too
> >> long (for example, copyFromLocal of a huge file). What is the best way
> to
> >> do
> >> this?
> >>
> >>
> >> Thanks~
> >> --Yiping
> >>
> >>
> >
>
> ----------------------
> Yiping Han
> [EMAIL PROTECTED]
> US phone: +1(408)349-4403
> Beijing phone: +86(10)8215-9357
>
>
--
Best Regards

Jeff Zhang