spark returns error libsnappyjava.so: failed to map segment from shared object: Operation not permitted spark returns error libsnappyjava.so: failed to map segment from shared object: Operation not permitted hadoop hadoop

spark returns error libsnappyjava.so: failed to map segment from shared object: Operation not permitted


This issue occurs when (for security reasons) /tmp is mounted non-exec. I ran into the same problem and our sysadmin fixed it by remounting /tmp as exec.


This worked for me.

sudo mount -o remount,exec /tmp

More details on this Ask Ubuntu question