How to Read/Write to a Apache hadoop file system (HDFS) file system using JAVAPosted: May 18, 2011
Deploy a HDFS cluster.
Create HDFS client using JAVA.
Genarate Maven2 project.
mvn archetype:generate -DgroupId=org.wso2.carbon -DartifactId=HDFSClient hadoop-core is the only dependency you want in maven2 based project. <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>0.20.2</version> </dependency>
set cluster config in the client
do file operation via JAVA API
find maven2 based sample in in OT svn.