Help Center/ MapReduce Service/ FAQs/ Peripheral Service Interconnection/ How Do I Use PySpark to Connect MRS Spark?
Updated on 2024-08-16 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.