File operations in HDFS using java

Java Interface to HDFS File Read Write 2

Java Interface to HDFS File Read Write This post describes Java interface to HDFS File Read Write and it is a continuation for previous post, Java Interface for HDFS I/O.  Reading HDFS Files Through FileSystem API: In order to read any File in HDFS, We first need to get an instance of FileSystem underlying the cluster. Then we need to get an InputStream to read from the data of the file. We can use IOUtils class […]