def parse_arguments()

in assets/spark_scripts/SparkScript01.py [0:0]


def parse_arguments():
    spark_job_parser = argparse.ArgumentParser(description='PySpark Job Arguments')
    spark_job_parser.add_argument('--source_bucket', action='store', type=str, required=True)
    spark_job_parser.add_argument('--destination_bucket', action='store', type=str, required=True)
    spark_job_parser.add_argument('--app_name', action='store', type=str, required=True)
    pyspark_args = spark_job_parser.parse_args()
    pyspark_args.app_name
    return pyspark_args