Giter VIP home page Giter VIP logo

hdfs-sequence-file-expander's Introduction

HDFS Sequence file expander

Hey guys have you came across a situation where you need to see data in the sequence files saved in HDFS, well that may seems to be a very specific usecase but if you have to do it this utility would help you.
  • Just export the following envand run sbt run or you may simple make a jar using sbt assembly to run it on multiple places
  • You just need to export the following env vars
  export HDFS_URL=hdfs://localhost:9000 #default
  export HDFS_USER=hadoop
  #DESTINATION_FOLDER must end with a "/"
  export DESTINATION_FOLDER="/some-local-path/"
  #top most path which has the the sequence file
  export HDFS_DIR="/"

Note

  • For HDFS_DIR the top level directory is required, it will find all the sequence files under it directories may also contain files other then sequence file but that's okay, given that in case you just need to expand one file you may simple give the absolute path to the sequence file for env var HDFS_DIR

Quick Test

  • For a quick test you may pull this image shuhamknoldus/hdfs-container:3.2.1 the user in this image is root so you may run docker run -p9000:9000 -p9870:9870 shuhamknoldus/hdfs-container:3.2.1 then you can simply use this without having to setup HDFS locally
  • After saving you can save some sequence file in to the hdfs
  • Using
export HDFS_URL=hdfs://localhost:9000 
export HDFS_USER=hadoop

as hdfs parameters

Feel free to report any bugs/enhancement :)

hdfs-sequence-file-expander's People

Watchers

James Cloos 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.