There is an application that works on two nodes.
I run it on each node with this script:

export APP_NODE=node2 APP_INSTALL=${home}/app kinit app -kt /home/someuser/app/conf/app.keytab | java -Dconfig.file=${APP_INSTALL}/conf/application.conf \ -Dlogback.configurationFile=${APP_INSTALL}/conf/logback.xml \ -Djava.library.path=${APP_INSTALL}/bicrypt \ -Djava.security.krb5.conf=/etc/krb5.conf \ -jar ${APP_INSTALL}/app.jar ${APP_NODE} >>${APP_INSTALL}/logs/start.log 2>&1 & result=$? sleep 15 return ${result} 

kinit needed to work with Kerberos , but I am sure that this in no way affects my problem.

The application uses JNI ,
for this there is a switch -Djava.library.path=${APP_INSTALL}/bicrypt

On the first node everything is OK, on ​​the second I get

java.lang.UnsatisfiedLinkError: /home/someuser/app/bicrypt/libbicr64.so: libtmdrv.so: can not be shared

I go to the second node in /home/someuser/app/bicrypt and see with my own eyes the files libbicr64.so and libtmdrv.so with 0755 rights.

What may not be enough for the second node?

    0