Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --job-args and --spark-submit-opts for EMR on EC2 #30

Closed
2 tasks
kirillklimenko opened this issue Oct 16, 2023 · 1 comment
Closed
2 tasks

Add --job-args and --spark-submit-opts for EMR on EC2 #30

kirillklimenko opened this issue Oct 16, 2023 · 1 comment

Comments

@kirillklimenko
Copy link

kirillklimenko commented Oct 16, 2023

Add --job-args (variable never used) and --spark-submit-opts (variable not exists) for EMR on EC2.
Currently --job-args as well as --spark-submit-opts works only for EMR Serverless:

# application_id indicates EMR Serverless job
    if application_id is not None:
        # We require entry-point and job-role
        if entry_point is None or job_role is None:
            raise click.BadArgumentUsage(
                "--entry-point and --job-role are required if --application-id is used."
            )

        if job_args:
            job_args = job_args.split(",")
        emrs = EMRServerless(application_id, job_role, p)
        emrs.run_job(
            job_name, job_args, spark_submit_opts, wait, show_stdout, s3_logs_uri
        )

    # cluster_id indicates EMR on EC2 job
    if cluster_id is not None:
        if job_args:
            job_args = job_args.split(",")
        emr = EMREC2(cluster_id, p, job_role)
        emr.run_job(job_name, job_args, wait, show_stdout)  # add spark_submit_opts

Tasks

@kirillklimenko kirillklimenko changed the title Add --spark-submit-opts for EMR on EC2 Add --job-args and --spark-submit-opts for EMR on EC2 Oct 16, 2023
@dacort
Copy link
Contributor

dacort commented Dec 1, 2023

Fixed in #35

@dacort dacort closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants