Configuring Spark Thrift Server with MaprR-SASL

You can configure Spark Thrift server to use MapR-SASL for its communications with various components on a secure MapR cluster. Minimal configuration is required.

To enable MapR-SASL authentication:

  1. Set the hive.server2.authentication property in hive-site.xml to the value, MAPRSASL.
  2. Restart Spark Thrift server to apply this change. sbin is in your Spark directory at /opt/mapr/spark/spark-2.1.0/.
    Important: The MapR administrative user (generally, the account named mapr) should start Spark Thrift server. Then, process identifier (PID) files will be owned by this user, and impersonation support (where applicable) will function correctly.