Comments (4)
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.
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.
Just merged with the upstream.
The new Settings class simplifies the custom OM implementation:
- new ConfigurationOptions.ES_OBJECTMAPPER_CLASS constant.
- Extended RestClient constructor and new createObjectMapper(String className) method (
https://github.com/tzolov/elasticsearch-hadoop/blob/objectmapper/src/main/java/org/elasticsearch/hadoop/rest/RestClient.java)
from elasticsearch-hadoop.
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)
- Nested objects fail parsing in Spark SQL when empty objects present
- Latency Spike during Spark Structured Streaming HOT 2
- Upgrade to Spark 3.4.x HOT 3
- Policy about type name in index name is too harsh HOT 3
- Unable to build the newly cloned project due to invalid dependency paths
- Spark dependency is not compatible resulting in compile error HOT 1
- 7.17.11 failed backwards compatibility for 5.5.3 HOT 4
- [Bug][CVE-2019-10172] found CVE in the latest release 8.12.2 and 8.9.1 HOT 1
- Es.write.operation documentation is deceptive on default values when used via spark HOT 1
- spark read long datatype error HOT 3
- ES-hadoop is not compatible with spark 3.5.1 HOT 7
- Stop using deprecated "stored" field in scripts for updates
- Automatic index creation fails with Elasticsearch >= 8.6.0 HOT 6
- Option es.read.field.*.include unable to take field names containing a colon
- Unable to index with elasticsearch-spark on serverless elasticsearch HOT 1
- What's the status on Elasticsearch 8.13 support? HOT 3
- Add support for creating suggester fields with weights
- Does Elasticsearch-Hadoop support HTTPS proxy connections ?
- Option 'es.read.field.include' with Spark SQL fails to pushdown field or _source filtering
- [Structured Streaming] Compact files in sink checkpoint location get bigger and bigger HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-hadoop.