Step 1: Modify drill-env.sh

Modify <DRILL_HOME>/conf/drill-env.sh to include the required environment variables on each Drill node.
Non-Secure Cluster
On a non-secure cluster, include the following environment variable:
export MAPR_IMPERSONATION_ENABLED=true
Secure Cluster
On a secure cluster, include the following environment variables:
export DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Djava.security.auth.login.config=/opt/mapr/conf/mapr.login.conf -Dzookeeper.sasl.client=true”
export DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Dmapr_sec_enabled=true -Dhadoop.login=maprsasl_keytab -Dzookeeper.saslprovider=com.mapr.security.maprsasl.MaprSaslProvider -Dmapr.library.flatclass"
export MAPR_TICKETFILE_LOCATION=/opt/mapr/conf/mapruserticket