Giter Club home page Giter Club logo

hbase-fs-rest's Introduction

hbase-fs-rest

hbase-fs is a InputStream/OutputStream lib for reading & writing file on HBase. It's not very convenient for end-user. So, we build a HTTP-REST Service to simplify the operation.

Basically, we use HEAD, GET, PUT, POST, DELETE to manipulate files. The request like this:

curl -X HEAD http://${host}:${port}/${version}/fs/${identifier}?${paras}

OP PARAS DESC
HEAD Test if the file exists, 404 or 200
GET Get the file
GET details=true Get json of the file details
PUT desc="blabla" add new file desc
POST desc="blabla" add new file with desc
DELETE delete the file

根据REST风格的规范我们如下设计URL

对应URL一栏前缀例如:http://serverhost:8080/v1

HTTP动词 对应URL 描述
HEAD files/{fileID} 查看文件是否存在,返回状态: 404 或者 200
GET files/{fileID} 获得指定文件(Fiel MD5)
GET files/{fileID}?details=true 获得指定文件的元数据信息
PUT files/{fileID} 修改文件描述
POST files/ 新增文件
DELETE files/{fileID} 删除指定文件(Fiel MD5)

hbase-fs-rest's People

Contributors

gerodan avatar leeychee avatar

Stargazers

邢增龙 avatar

Watchers

 avatar

Forkers

chattg1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.