Giter Site home page Giter Site logo

spark-avro-compactor's Introduction

spark-avro-compactor

Spark job for compacting avro files together

Running locally

  1. local=true sbt
  2. runMain ie.ianduffy.spark.avro.compactor.Runner -i inputPath --output outputPath --schema-registry-url https://confluent-schema-registry --schema-registry-subject schema-subject

Contributors

  1. Kevin Eid
  2. Peter Barron
  3. Ian Duffy

spark-avro-compactor's People

Contributors

imduffy15 avatar

Stargazers

Deepu Mohan Puthrote avatar JeongHoon Baek avatar GISDev01 avatar Artsiom Chuiko avatar Daniel Durante avatar Tayfun Wiechert avatar Tim Van Wassenhove avatar Michal Stypa avatar Daniel Miranda avatar Bijay avatar Sandeep Rayapudi avatar David Cromberge avatar

Watchers

Rui Ramos avatar Kevin Eid avatar  avatar

spark-avro-compactor's Issues

[Feature] Allow time-based compaction

In case the avro files are already partioned by event time, it would be desirable to run compaction with an additional upper bound in terms of event time ti_max so that a single file will only be appended in case e_max -_t e_min_t <= ti_max.

In that case, the resultant files retain their time semantics.

Compression Ratio

Can you give some insights around how did you arrive at compression ratio for these formats?

Why not just using datafu?

Hello, thanks a lot for great work and the article, but I'm wondering why not just using DataFu's CombinedAvroKeyInputFormat?

It should solve the issue with number of spark tasks required to process the input, but listing of s3 objects will remain to be slow (but it may not be the problem as this job still has to read the input data for at least one time).

Serialization

Great job!
One question: Did you face any serialization issues when rdd.coalesce(numPartitions) and how was the performance?

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.