Coder Social home page Coder Social logo

Comments (4)

costin avatar costin commented on September 23, 2024

Can you be more specific? I assume you are referring to the configuration of OM to be tweaked (specifically to register extra inspectors) as exposing... well, that's a bit difficult considering the Input/OutputFormat are instantiated by Hadoop on each node .

from elasticsearch-hadoop.

tzolov avatar tzolov commented on September 23, 2024

Sorry for the vague description but I've assumed it correct.
One way to do it is to add an additional (ES_OBJECTMAPPER_CLASS) parameter to Job Configuration. This param will hold the class name of a custom ObjectMapper implementation. Later (if provided) is instantiated by the RestClient using reflection. If the param is not set then a normal ObjectMapper is created. The custom OM implementation is distributed via the DistCache similar to the es-hadoop.jar.

The following patch should illustrate the approach:
tzolov@8fb1fb6

from elasticsearch-hadoop.

tzolov avatar tzolov commented on September 23, 2024

Just merged with the upstream.
The new Settings class simplifies the custom OM implementation:

from elasticsearch-hadoop.

costin avatar costin commented on September 23, 2024

Closing this issue as won't fix since the object mapper has been replaced internally with stream parsing for core communication with ES. OM is still used but sparingly and only for internal use.

from elasticsearch-hadoop.

Related Issues (20)

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.