Skip to content

niels1voo/simple-web-hdfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DETAILS

simple-web-hdfs is a proxy on top of Hadoop HDFS. It is intended to be used with older versions of HDFS (0.20.2 for the moment)

BUILDING

simple-web-hdfs is built with maven (http://maven.apache.org/). To build from the command line:

mvn clean install

DOWNLOAD

simple-web-hdfs-0.0.1

INSTALLATION

Unpack simple-web-hdfs and cd to the root. Edit conf/jetty.properties and set hdfs.host and hdfs.port to point to your Hadoop HDFS cluster. Then

cd bin
./startup.sh

USAGE

List files

Sample request:

http://localhost:8080/simple-web-hdfs/list?path=/hbase&is_recursive=true

Sample response:

{ "files" : [ 
    { "directory" : true,
      "modificationTime" : 1344642286054,
      "path" : "/hbase/-ROOT-"
    },
    { "directory" : true,
      "modificationTime" : 1344552270982,
      "path" : "/hbase/.META."
    },
    { "directory" : true,
      "modificationTime" : 1344555875027,
      "path" : "/hbase/.logs"
    },
    { "directory" : false,
      "modificationTime" : 1344552270685,
      "path" : "/hbase/hbase.version"
    }
],
"statusCode" : 200
}

Check if file exists

Sample request:

http://localhost:8080/simple-web-hdfs/exists?path=/hbase/hbase.version

Sample response:

{
  message: "true",
  statusCode: 200
}

Check if path is a directory

Sample request:

http://localhost:8080/simple-web-hdfs/isdir?path=/hbase/hbase.version

Sample response:

{
  message: "false",
  statusCode: 200
}

Download file

Sample request:

http://localhost:8080/simple-web-hdfs/download?path=/hbase/hbase.version

About

Simple web HDFS proxy

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 98.5%
  • Shell 1.5%