Help Center> MapReduce Service> FAQs> Peripheral Ecosystem Interconnection> How Do I Use PySpark to Connect MRS Spark?
Updated on 2023-10-19 GMT+08:00

How Do I Use PySpark to Connect MRS Spark?

Question: How do I use pyspark on an ECS to connect an MRS Spark cluster with Kerberos authentication enabled on the Intranet?

Answer: 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.

Peripheral Ecosystem Interconnection FAQs

more