Comments (8)
Thanks for the report. The errors are somewhat conspicuous. The first one
seems to be caused by the fact that we merge hadoop old and new api into
the same class (which migt be exacerbated by clojure) while the latter
looks like a bug. I recall quite a number of changes between cascading
2.0.x and 2.1.x - not sure whether these are to blame or not...
Have you tried upgrading cascading with cascalog?
On Thursday, May 9, 2013, Jeroen van Dijk wrote:
Thanks for this repo. I've tried the Cascading code and it seems to work.
The input example gives an error at the end though, see
https://github.com/jeroenvandijk/elasticsearch-hadoop-trial/blob/master/src/trial/input.cljI also tried to get the ES Cascading code to work with Cascalog. The input
code worked perfectly, the output code failed at the Cascading level
though, see
https://github.com/jeroenvandijk/elasticsearch-hadoop-trial/blob/master/src/trial/cascalog/output.clj.
I don't why this would happens. Cascalog does depend on an older version of
Cascading (2.0.8), but I'm not sure if that's the issue.The complete trial repo can be found here:
https://github.com/jeroenvandijk/elasticsearch-hadoop-trialI hope you don't mind the Clojure code. I hope it translates easily to the
original Java code.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.
Costin
from elasticsearch-hadoop.
Thanks for you reply. I haven't tried changing the internals of Cascalog if that is what you mean. This project already uses Cascading 2.15 so I guess Cascalog is fine with that for the sink part, but might not be for the source part. I did try downgrading the Cascading version to 2.0.8 (the one Cascalog wants), but that broke the sink version and gave the same error for the source version if I recall correctly.
from elasticsearch-hadoop.
That's good to know as it excludes the version incompatibilities in
cascading.
On Thursday, May 9, 2013, Jeroen van Dijk wrote:
Thanks for you reply. I haven't tried changing the internals of Cascalog
if that is what you mean. This project already uses Cascading 2.15 so I
guess Cascalog is fine with that for the sink part, but might not be for
the source part. I did try downgrading the Cascading version to 2.0.8 (the
one Cascalog wants), but that broke the sink version and gave the same
error for the source version if I recall correctly.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-17683196
.
Costin
from elasticsearch-hadoop.
The latest nightly build (#50) fixes the AbstractMethodError you saw during the input ingestion.
I'll take a look at the output code tomorrow (and hope to fix it the same day).
from elasticsearch-hadoop.
I have eliminated the NPE from the source part in Cascalog. It looks like Cascalog is not fully upgraded to Cascading 2.1.x since it breaks the init contract (Tap#flowConfInit is not called, which the NPE to occur).
I've bumped into a different issue related to parsing which I need to fix (see #49).
These being said, unless Cascalog is properly upgraded to Cascading 2.1 (and Hadoop 1.x which is marked as stable and has been released for quite some time now), I foresee other issues down the road.
from elasticsearch-hadoop.
I just had some time to look into this again. Thanks for taking the time to fix this. Should the nullpointer issue be fixed now? I still got that issue locally. Maybe I have an old version?
Cascalog needs to use a newer version Indeed. Hopefully this will happen soon.
from elasticsearch-hadoop.
The NPE should not occur - at least I thought I fixed that. Make sure you use the latest nightly build (you can double check the jar manifest to get the build number) and if it still occurs, please post the stacktrace in a gist or something.
Regarding cascalog I'm not sure why the upgrade hasn't happened yet - Hadoop 1.1.2 is considered stable (as oppose to 0.20) while Cascading is already at 2.1.6 (as opposed to 2.0.8)
from elasticsearch-hadoop.
@jeroenvandijk I've tested the latest 1.10 cascalog release and all the tests pass fine. I have forked your project, applied some minor updates and published the results here.
I'm closing the issue for now but would be great to hear whether things are working on your end.
Cheers!
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.