Git Product home page Git Product logo

jsr203-hadoop's Introduction

jsr203-hadoop

JSR 203 Implementation for Hadoop Distributed File System

Build Status Coverage Status Maven Central Dependency Status Codacy Badge

Maven artifact

    <dependency>
        <groupId>com.github.jsr203hadoop</groupId>
        <artifactId>jsr203hadoop</artifactId>
        <version>1.0.3</version>
    </dependency>

Prerequisites

jsr203-hadoop requires:

  • Git
  • Maven 3.0.4 (or higher)
  • JDK 1.7 (or higher)

Download and build

$ git clone git://github.com/damiencarol/jsr203-hadoop.git
$ cd jsr203-hadoop
$ mvn install

Use mvn -DskipTests if you do not want to execute the tests.

Example

jsr203-hadoop provide NIO 2 access to your HDFS cluster. For example, you can build URI starts with hdfs://<namebode>:<port> and use standard NIO API :

URI uri = new URI("hdfs://" + host + ":" + port + "/somefile");
Path file = Paths.get(uri);
System.out.println("File [" + file.toString() + "] exists = '" + Files.exists(file) + "'");

Status

This project is still a beta.

The following features are complete.

Feature Status Description
Path support - build from string/URI Done
Path support - resolve, relativize, equals, ... Done
Directory stream (provide ability to list files in directory, get status, ...) Done
Create/delete file/directory Done
Input/Output Partial Full support of SeekableByteChannel, FileChannel pending
Attribute view "basic" Done Full support (fileKey is implemented)
Attribute view "owner" Done Full support (Use Hadoop UGI)
Attribute view "posix" Done
Hadoop dedicated view "hadoop" for hadoop specific attributes (len, block size, replication factor) Done More attributes will come

More features will come :

  • Security and permissions
  • complete list of hadoop specific attributes

For more details, see the Reference guide.

More information

Ressources

jsr203-hadoop's People

Contributors

aymandf avatar carlspring avatar damiencarol avatar nicolaferraro avatar pditommaso avatar tomwhite avatar zong0jie avatar

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.