Skip to content

Commit

Permalink
Merge pull request GoogleCloudDataproc#180 from Shubha-accenture/subm…
Browse files Browse the repository at this point in the history
…it-job-bug-fix

Submit job bug fix
  • Loading branch information
Shubha-accenture authored Aug 12, 2024
2 parents 6fa175d + 0730417 commit 56792e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs/submitJob.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,10 @@ function SubmitJob({
jarFileSelected: string[] | string,
argumentSelected: string[] | string
) => {
const isJar = mainClassSelected.includes('.jar');
return {
sparkJob: {
mainJarFileUri: mainClassSelected,
...(isJar ? { mainJarFileUri: mainClassSelected } : { mainClass: mainClassSelected }),
...(propertyObject && {
properties: propertyObject
}),
Expand Down

0 comments on commit 56792e9

Please sign in to comment.