Git Product home page Git Product logo

jpr_01's Introduction

Teragrep

This is a portal page for accessing different parts of Teragrep.

List of Teragrep Components

Component Description

ajs_01

Teragrep user-interface

blf_01

Bloom filter library

blf_02

MariaDB bloom filter plugin

bos_01

Teragrep flavor repack of s3proxy

cfe_16

HTTP event capture to RFC5424

doc_01

Teragrep documentation

dpf_02

Batch collect

dpf_03

Tokenizer Aggregator

jla_01

Logback RELP appender library

jla_02

Example source for jla_01

jla_04

Java Util logging RELP handler

jla_05

Log4j RELP plugin

jla_06

Log4j2 RELP plugin

jlt_01

Java lookup tables

jpr_01

Java PCRE library

jsa_01

JavaScript Log4js appender

jue_01

Java UNIX Extensions

pth_03

Data Processing Language (DPL) parser

pth_06

Teragrep Datasource for Apache Spark

pth_07

Data Processing Language (DPL) Interpreter for Apache Zeppelin

pth_10

Data Processing Language (DPL) translator for Apache Spark

rad_01

Record Audit Data library

rlo_04

rsyslog regex perfect file input plugin

rlo_06

Syslog (RFC 5424) library for Java

rlo_08

Syslog (RFC 5424) formatter for JavaScript

rlp_01

Java RELP library

rlp_02

NodeJS RELP library

rlp_03

Java RELP server library

rlp_05

Go RELP library

zep_01

Teragrep back-end

jpr_01's People

Contributors

eemhu avatar kortemik avatar ronja-ui avatar tiihott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jpr_01's Issues

Clean up tests

Description

Clean up tests to match our standards

Use case or motivation behind the feature request

There are a lot of branching and try/catches, non-standard domains, while loops and such, should avoid them if possible

Modernize pom to our standards

Description

Modernize pom to our standards

Use case or motivation behind the feature request

Doesn't have Maven Enforcer plugin, Rat plugin and such.

change malloc/free pairs to use AutoCloseable

change the Java classes to use AutoCloseable interface so that pointers get automatically freed

see https://www.yegor256.com/2017/08/08/raii-in-java.html

then usage of the resources should happen with try-with-resources which ensures their closing

try (final SomeClass sc = new SomeClass("perhaps arg").open()) { // allocates memory, open returns allocated instance of the class
System.out.println("you have call()ed and it provides you with " + sc.something());
} // frees it because close is automatically done

care must be taken that SomeClass methods are blocked while allocation is not done, for example with AtomicBoolean and if not the thr IllegalStateException

see also https://stackoverflow.com/a/69444249

cannot find native library LibJavaPcre.so

on jpr_01 3.0.0, JavaPcre pcre = new JavaPcre(); causes

java.lang.UnsatisfiedLinkError: Unable to load library 'JavaPcre':
libJavaPcre.so: cannot open shared object file: No such file or directory
libJavaPcre.so: cannot open shared object file: No such file or directory
Native library (linux-x86-64/libJavaPcre.so) not found in resource path (...)
	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:307)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:467)
	at com.sun.jna.Library$Handler.<init>(Library.java:192)
	at com.sun.jna.Native.load(Native.java:622)
	at com.sun.jna.Native.load(Native.java:596)
	at com.teragrep.jpr_01.JavaPcre$LibJavaPcre.<clinit>(JavaPcre.java:39)
	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)

Check if noexec is enabled before loading native libraries

Description

Check if noexec is enabled before loading native libraries

Use case or motivation behind the feature request

Getting errors like
.cache/JNA/temp/jna2624433973614287324.tmp: failed to map segment from shared object: Operation not permitted

due to noexec being enabled in $HOME, stacktrace points it to being jpr_01

<snip>
  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:187)
  at com.teragrep.pth10.ast.commands.transformstatement.regex.RegexMatch.call(RegexMatch.java:70)
  at com.teragrep.pth10.ast.commands.transformstatement.regex.RegexMatch.call(RegexMatch.java:57)
<snip>

This doesn't seem to be a bug but I am also not sure how feasible it is to do a self sanity check

Additional context

https://github.com/teragrep/pth_10

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.