Re: Get File object from HDFS with Java

2009-11-04 Thread Jeff Zhang
No sure why you need file object. in hdfs, Path is something like File Object in local filesystem. Jeff Zhang On Wed, Nov 4, 2009 at 3:28 AM, iGama wrote: > Hy all. I'm using Java. > > I Have a function that receives a File ( it manipulates images ). in a > local file system I would use : > >

Re: datanode ack behavior for block receive

2009-11-04 Thread B. X.
I guess you are right. It doesn't affect correctness, or even performance. The only bits I am not sure about performance is can we safely assume all the status messages and seqno ack messages will travel in one TCP packets? Given that there probably won't being long chains of datanodes, the total

Get File object from HDFS with Java

2009-11-04 Thread iGama
Hy all. I'm using Java. I Have a function that receives a File ( it manipulates images ). in a local file system I would use : File imageFile = new File(path); But to run in hadoop, what would be the best way to acheve this? At this point, what I have figured out , would something in the lin

Who can give me an example to tell me how to use JobControl? Thanks

2009-11-04 Thread 于凤东
my Code sinpper: but it doesn't work; public class TestMain { /** * @param args */ public static void main(String[] args) throws Exception{ JobControl jc = new JobControl("JC");// JobConf conf = new JobConf(TestMain.class); conf.setJobName("Tester1");