When trying to run tensorflow inside Apache Spark on Amazon EMR, the tensorflow java library crushes the JVM on boot up with the following error:
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007f7570e5f6d7, pid=24374, tid=0x00007f757e146700
JRE version: OpenJDK Runtime Environment (8.0_171-b10) (build 1.8.0_171-b10) Java VM: OpenJDK 64-Bit Server VM (25.171-b10 mixed mode linux-amd64 >compressed oops) Problematic frame: C [libtensorflow_framework.so+0x9276d7] nsync::nsync_mu_lock(nsync::nsync_mu_s_*)+0x17
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
An error report file with more information is saved as: /mnt/yarn/usercache/hadoop/appcache/application_1536299931720_0001/container_1536299931720_0001_01_000002/hs_err_pid24374.log
If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.
Please help if you have encountered similar issues