Giter Club home page Giter Club logo

elephant-bird's People

Contributors

angushe avatar azymnis avatar dvryaboy avatar elifinkelshteyn avatar gerritjvv avatar isnotinvain avatar jimmy0017 avatar johanoskarsson avatar johnynek avatar julienledem avatar kendaleiv avatar kevinweil avatar miguno avatar mteodoro avatar ningtwitter avatar panisson avatar pm-evgenii-ismailov avatar rangadi avatar rore avatar sagemintblue avatar stevenbedrick avatar tdunning avatar traviscrawford avatar voberoi avatar wuman avatar xstevens avatar yuxutw avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elephant-bird's Issues

Error when reading 0 length files

The loader throws an exception if its passes a 0 length file.

The exception received is:

org.apache.pig.backend.executionengine.ExecException: ERROR 6018: Error while reading input
at com.twitter.elephantbird.pig.proto.LzoProtobuffB64LinePigStore.getNext(Unknown Source)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:187)
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:423)
at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
at org.apache.hadoop.mapred.Child.main(Child.java:170)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -17
at org.apache.commons.codec.binary.Base64.isBase64(Base64.java:137)
at org.apache.commons.codec.binary.Base64.discardNonBase64(Base64.java:478)
at org.apache.commons.codec.binary.Base64.decodeBase64(Base64.java:374)
at org.apache.commons.codec.binary.Base64.decode(Base64.java:220)
... 8 more

The fix is to check for the Text.length before reading.

GPB Loading is failing when corrupt lines are in logs

LzoProtobuffB64LinePigStorage.getNext line 169 is throwing an exception when it can transform the gpb line.
This causes the whole job to fail. Its more important that the job does not fail. So I've added in a try catch that writes a BADGPB counter and still allows the job to continue.

Send pull request for LzoPigStorage to kevinweil/elephant-bird?

Hi Gerrit,

I have asked at kevinweil/elephant-bird whether they are interested in merging your LzoPigStorage class into their official repository:

Second, gerritjvv forked Dmitriy's EB repo some time ago (gerritjvv/elephant-bird).
He added the class LzoPigStorage.java. This class appears to be a very simple,
straight-forward LZO-enabled wrapper for standard PigStorage -- less than 10 lines
of effective code.

Dmitriy (https://github.com/dvryaboy) replied:

We can certainly pull in Gerrit's LzoPigStorage, he just needs to send a pull request :).

Would this be ok for you?

Best,
Michael

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.