Giter VIP home page Giter VIP logo

ukwa-ingest-services's Introduction

ukwa-ingest-services's People

Contributors

anjackson avatar gilhoggarth avatar

Stargazers

Nick Ruest avatar

Watchers

 avatar James Cloos avatar  avatar  avatar Nicola Bingham avatar Dorota Walker avatar  avatar  avatar

ukwa-ingest-services's Issues

Develop Apache Flume version of copy-to-hdfs

Rather than perform the main copy in Luigi, we could run Apache Flume when pushing files up to HDFS. It's an extremely well-established and mature tool that's built to do exactly this.

We could use a Spooling Directory Source for *.warc.gz files, and a Taildir Source to continuously process crawl log files. These would be sent to a suitable HDFS Sink.

The directory sources should be set to not delete files (see deletePolicy), and to put the file path in the fileHeader so we can use ${file} to reconstruct the path on HDFS. (see rough outline here)

A second Luigi-powered process would check for files and delete them when the checksums of both had been verified.

Should be pretty easy to Dockerize, and use a Java 8 base image rather than something like this.

Create a HDFS 'Watcher' that drives events?

Modern versions of HDFS support an iNotify API. Here's an example: https://github.com/onefoursix/hdfs-inotify-example

We could wrap this daemon up as e.g. a Storm Spout (although this is being considered already and there are issues around scaling). Alternatively, we could just run it as a plain daemon that publishes to e.g. Kafka.

Note that the overall design would have to assume this would sometimes miss things, and make it possible to (re-)run and processing via occasional hadoop fs -lsr jobs.

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.