>Now,I want to read the file from hadoop directory,just like the hadoop shell >"bin/hadoop dfs -cat filename",but I don't know how I can do this
>By programming,I need help ,thank you very much!!!!! http://lucene.apache.org/hadoop/api/org/apache/hadoop/fs/FileSystem.html Has all the methods you might need to interact with the file system You could look at some sample code in this example http://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/examples/org/apache/hadoop/examples/PiEstimator.java HTH -Lohit PS: hadoop-users@ list might be a good place to send this question. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com