Drill uses JPAM as the PAM authenticator module for username/password verification for PLAIN mechanism. There are some known issues with JPAM which leads to JVM crash and memory leaks. JPAM also requires a manual step in copying the native library.
Also based on the HIVE-16529 there have been mention of these issues with JPAM which is resolved in the libpam4j. Also libpam4j avoids the need to install native library explicitly. It would be good to provide support for libpam4j in Drill to avoid these issues.
Some other reported problems with JPAM: