#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to list the directory in HDFS?
  • //To create a new directory
    Sample Code Segment

    FileSystem fs = FileSystem.get(conf);
    FileStatus[] status= fs.listStatus(new Path(“hadoop/path”));

    Command

    hadoop fs -ls <hadoop path>