Spark OLAC¶
- SSH to emr master node
Bash - Run the following command
- Connect to spark tool
- Connect to pyspark
Bash -
Include the below additional configuration if you have enabled JWT authorization in the cluster.
-
To pass the JWT token directly as a command-line argument, use the following configuration:
Bash -
To use the file path containing the JWT token, use the following configuration:
Bash
-
-
Run spark read/write
- Connect to spark-shell
Bash -
Include the below additional configuration if you have enabled JWT authorization in the cluster.
-
To pass the JWT token directly as a command-line argument, use the following configuration:
Bash -
To use the file path containing the JWT token, use the following configuration:
Bash
-
-
Run spark read/write
- Connect to spark-sql
Bash -
Include the below additional configuration if you have enabled JWT authorization in the cluster.
-
To pass the JWT token directly as a command-line argument, use the following configuration:
Bash -
To use the file path containing the JWT token, use the following configuration:
Bash
-
-
Run spark sql query
- Prev topic: Iceberg
- Next topic: AWS EMR Serverless