-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem using this library with Apache Spark #104
Comments
I don't have any experience with spark. If you can provide a small sample application that reproduces the problem, I'll be happy to look into it. |
I created a small example that just creates a Marker. To see the error, you can create the assembly of the project with |
Thanks for the example @melrief! It's a good thing you provided it, because I thought you were referring to the spark framework. I have reproduced the problem using apache spark. By default,
which outputs:
A workaround is to set
which outputs
I'm not sure why spark prevents access to the Other than the workaround I mentioned above, I believe the only fix for this will be to either: I'll implement B for the time being. |
Sounds good to me and thanks for the workarounds! |
I've created the PR #108 for this that reimplements the logic of BasicMarker into LogstashBasicMarker |
Thanks for the PR! |
4.4 has been released with this fix |
I'm trying to use this library and it works very well except when I use it in a Spark (both 1.3.1 and 1.4.0) application. I get an
IllegalAccessError
on theLogstashBasicMarker
but I'm not sure why:Maybe
LogstashBasicMarker
should not be used to bypass the visibility level of the constructor ofBasicMarker
? Anyway, do you know how to solve this problem?The text was updated successfully, but these errors were encountered: