Help Center/ MapReduce Service/ FAQs/ Peripheral Ecosystem Interconnection/ How Do I Use PySpark on an ECS to Connect to an MRS Spark Cluster with Kerberos Authentication Enabled, on the Intranet?
Updated on 2022-09-14 GMT+08:00

How Do I Use PySpark on an ECS to Connect to an MRS Spark Cluster with Kerberos Authentication Enabled, on the Intranet?

Change the value of spark.yarn.security.credentials.hbase.enabled in the spark-defaults.conf file of Spark to true and use spark-submit --master yarn --keytab keytabfile --principal principal command to specify the Kerberos authentication file.