Skip to content

Commit 32bc036

Browse files
Google APIscopybara-github
authored andcommitted
feat: add support for new Dataproc features
1. Allow flink job support for jobs 2. Add unreachable output field for LIST jobs API PiperOrigin-RevId: 672705294
1 parent 76ffdb2 commit 32bc036

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

google/cloud/dataproc/v1/jobs.proto

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,47 @@ message TrinoJob {
515515
LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL];
516516
}
517517

518+
// A Dataproc job for running Apache Flink applications on YARN.
519+
message FlinkJob {
520+
// Required. The specification of the main method to call to drive the job.
521+
// Specify either the jar file that contains the main class or the main class
522+
// name. To pass both a main jar and a main class in the jar, add the jar to
523+
// [jarFileUris][google.cloud.dataproc.v1.FlinkJob.jar_file_uris], and then
524+
// specify the main class name in
525+
// [mainClass][google.cloud.dataproc.v1.FlinkJob.main_class].
526+
oneof driver {
527+
// The HCFS URI of the jar file that contains the main class.
528+
string main_jar_file_uri = 1;
529+
530+
// The name of the driver's main class. The jar file that contains the class
531+
// must be in the default CLASSPATH or specified in
532+
// [jarFileUris][google.cloud.dataproc.v1.FlinkJob.jar_file_uris].
533+
string main_class = 2;
534+
}
535+
536+
// Optional. The arguments to pass to the driver. Do not include arguments,
537+
// such as `--conf`, that can be set as job properties, since a collision
538+
// might occur that causes an incorrect job submission.
539+
repeated string args = 3 [(google.api.field_behavior) = OPTIONAL];
540+
541+
// Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
542+
// Flink driver and tasks.
543+
repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL];
544+
545+
// Optional. HCFS URI of the savepoint, which contains the last saved progress
546+
// for starting the current job.
547+
string savepoint_uri = 9 [(google.api.field_behavior) = OPTIONAL];
548+
549+
// Optional. A mapping of property names to values, used to configure Flink.
550+
// Properties that conflict with values set by the Dataproc API might be
551+
// overwritten. Can include properties set in
552+
// /etc/flink/conf/flink-defaults.conf and classes in user code.
553+
map<string, string> properties = 7 [(google.api.field_behavior) = OPTIONAL];
554+
555+
// Optional. The runtime log config for job execution.
556+
LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL];
557+
}
558+
518559
// Dataproc job config.
519560
message JobPlacement {
520561
// Required. The name of the cluster where the job will be submitted.
@@ -722,6 +763,9 @@ message Job {
722763

723764
// Optional. Job is a Trino job.
724765
TrinoJob trino_job = 28 [(google.api.field_behavior) = OPTIONAL];
766+
767+
// Optional. Job is a Flink job.
768+
FlinkJob flink_job = 29 [(google.api.field_behavior) = OPTIONAL];
725769
}
726770

727771
// Output only. The job status. Additional application-specific
@@ -964,6 +1008,12 @@ message ListJobsResponse {
9641008
// to fetch. To fetch additional results, provide this value as the
9651009
// `page_token` in a subsequent <code>ListJobsRequest</code>.
9661010
string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL];
1011+
1012+
// Output only. List of jobs with
1013+
// [kms_key][google.cloud.dataproc.v1.EncryptionConfig.kms_key]-encrypted
1014+
// parameters that could not be decrypted. A response to a `jobs.get` request
1015+
// may indicate the reason for the decryption failure for a specific job.
1016+
repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
9671017
}
9681018

9691019
// A request to cancel a job.

0 commit comments

Comments
 (0)