Using jpam as the PAM Authenticator

To use jpam as the PAM authenticator with Drill, complete the following steps:


Do not point to an existing directory where other Hadoop components are installed. Other file system libraries can conflict with the Drill libraries and cause system errors.

  1. Download the tar.gz file for the Linux platform:

  2. Untar the file, and copy the file into a directory that does not contain other Hadoop components. For example, /opt/pam/

  3. Add the following line to <DRILL_HOME>/conf/, including the directory where the file is located:

     export DRILLBIT_JAVA_OPTS="-Djava.library.path=<directory>"


     export DRILLBIT_JAVA_OPTS="-Djava.library.path=/opt/pam/"
  4. Add the following configuration to the drill.exec block in <DRILL_HOME>/conf/drill-override.conf:

           drill.exec: {
             cluster-id: "drillbits1",
             zk.connect: ",,",
             impersonation: {
               enabled: true,
               max_chained_user_hops: 3
             security: {
                     auth.mechanisms : ["PLAIN"],
             security.user.auth: {
                     enabled: true,
                     packages += "",
                     impl: "pam",
                     pam_profiles: [ "sudo", "login" ]
  5. (Optional) To add or remove different PAM profiles, add or delete the profile names in the “pam_profiles” array shown above.

  6. Restart the Drillbit process on each Drill node, as shown:

    <DRILLINSTALL_HOME>/bin/ restart