Skip to content
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

[Spark3] NoClassDefFound for jpr_01 #154

Open
eemhu opened this issue Nov 23, 2023 · 1 comment
Open

[Spark3] NoClassDefFound for jpr_01 #154

eemhu opened this issue Nov 23, 2023 · 1 comment
Labels
bug Something isn't working Spark3 Spark3 related issues

Comments

@eemhu
Copy link
Contributor

eemhu commented Nov 23, 2023

%dpl
index=example earliest="2020-01-01T00:00:00+02:00" | regex _raw = "^8.*$" 

results in

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.teragrep.jpr_01.JavaPcre$LibJavaPcre
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:156)
	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
	at java.lang.reflect.Field.get(Field.java:393)
	at com.sun.jna.Native.loadLibraryInstance(Native.java:694)
	at com.sun.jna.Native.getLibraryOptions(Native.java:764)
	at com.sun.jna.Native.getStructureAlignment(Native.java:856)
	at com.sun.jna.Structure.setAlignType(Structure.java:291)
	at com.sun.jna.Structure.<init>(Structure.java:208)
	at com.sun.jna.Structure.<init>(Structure.java:204)
	at com.sun.jna.Structure.<init>(Structure.java:191)
	at com.sun.jna.Structure.<init>(Structure.java:183)
	at com.teragrep.jpr_01.JavaPcre$LibJavaPcre$OptionsStruct.<init>(JavaPcre.java:42)
	at com.teragrep.jpr_01.JavaPcre.<init>(JavaPcre.java:176)
	at com.teragrep.pth10.ast.commands.transformstatement.regex.RegexMatch.call(RegexMatch.java:69)
@StrongestNumber9
Copy link
Contributor

Fixed by installing pcre2 packages on the executor nodes

@eemhu eemhu added bug Something isn't working Spark3 Spark3 related issues labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Spark3 Spark3 related issues
Projects
None yet
Development

No branches or pull requests

2 participants