Configuring Spark Thrift Server with MapR-SASL
Describes how to enable and start the Spark Thrift server on all nodes.
You can configure Spark Thrift server to use MapR-SASL for its communications with various
      components on a secure Data Fabric cluster. Minimal
      configuration is required. 
    
    NOTE
 Starting in EEP
        4.0, for secure clusters, you can skip the steps outlined in this section. For new installs
        done through the 6.0 Installer, the installer enables this configuration. For manual
        installs and upgrades, running
          configure.sh -R enables these settings.To manually enable MapR-SASL authentication on a non-secure cluster or in versions earlier than EEP 4.0:
- Verify that the 
hive.server2.authenticationproperty inhive-site.xmlis set to the value,MAPRSASL.<property> <name>hive.server2.authentication</name> <value>MAPRSASL</value> </property> - Restart Spark Thrift server to apply this change. 
sbinis in your Spark directory at/opt/mapr/spark/spark-<spark_version>/.IMPORTANTThe Data Fabric administrative user (generally, the account namedmapr) should start the Spark Thrift server. Then, process identifier (PID) files will be owned by this user, and impersonation support (where applicable) will function correctly../sbin/stop-thriftserver.sh ./sbin/start-thriftserver.sh 
Bringing up the Spark Thrift server on every node
When you
        start and stop Warden after enabling Spark or after running configure.sh or after installing a patch, Spark starts only on one
        (1) node and not on all nodes. This happens because by default, the Warden configuration
        file for Spark has the value 1 instead of all. For
        example:
# grep services /opt/mapr/conf/conf.d/warden.spark-thriftserver.conf
services=spark-thriftserver:1:cldbTo
      fix this issue permanently:
      -  Modify
          
/opt/mapr/spark/spark-2.4.0/warden/warden.spark-thriftserver.confand change1toall:# grep services /opt/mapr/spark/spark-2.4.0/warden/warden.spark-thriftserver.conf services=spark-thriftserver:all:cldb - Run 
/opt/mapr/server/configure.sh -R. 
/opt/mapr/conf/conf.d/warden.spark-thriftserver.conf file.