0

I'm trying to execute this jar file https://github.com/RMLio/rmlmapper-java from Airflow, but for some reason it is failing straight away. I'm using a PythonOperator to execute some python code, and inside it I have a subprocess call to the java command. Test command is:

java -jar /root/airflow/dags/rmlmapper-6.0.0-r363-all.jar -v

I'm running Airflow inside a Docker container. The weird thing is that if I execute the exact same command inside the container it works fine.

I tried a bit of everything but the result is always the same: SegFault 139

The memory of the container seems to be fine so it shouldn't be directly related to some OOM issue. I also tried to reset default memory in the Docker compose file with no success.

My suggestion is that the java application somehow tries to load some files which are stored locally inside the jar file, but for some reason maybe Airflow changes the 'user.dir' directory and therefore it is not able to find them and it fails.

I'm really out of ideas so any help will be highly appreciated. Thank you.

Nicola
  • 11
  • 2

0 Answers0