import sys To get sys.argv[] list argument pass to the python.without sys library getResolvedOptions method will not work.That is "getResolvedOptions(sys.argv, ['JOB_NAME'])" from awsglue.transforms import * With the import of awsglue.trnaformation , we can use all the glue managed data transformation classes on the dataframe. from awsglue.utils import getResolvedOptions awsglue.utils is responsible to read the parameters of the job. from pyspark.context import SparkContext It is an entry point to the pyspark functionality. from awsglue.context import GlueContext With awsglue.context, glue will interact with the spark-context. from awsglue.job import Job It will initialise the job and commit the job.