/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ option java_package = "org.apache.hadoop.hive.llap.daemon.rpc"; option java_outer_classname = "LlapDaemonProtocolProtos"; option java_generic_services = true; option java_generate_equals_and_hash = true; // TODO Change this as the interface evolves. Currently using Tez constructs. message UserPayloadProto { optional bytes user_payload = 1; optional int32 version = 2; } message EntityDescriptorProto { optional string class_name = 1; optional UserPayloadProto user_payload = 2; optional bytes history_text = 3; } message IOSpecProto { optional string connected_vertex_name = 1; optional EntityDescriptorProto io_descriptor = 2; optional int32 physical_edge_count = 3; } message GroupInputSpecProto { optional string group_name = 1; repeated string group_vertices = 2; optional EntityDescriptorProto merged_input_descriptor = 3; } message FragmentSpecProto { optional string task_attempt_id_string = 1; optional string dag_name = 2; optional string vertex_name = 3; optional EntityDescriptorProto processor_descriptor = 4; repeated IOSpecProto input_specs = 5; repeated IOSpecProto output_specs = 6; repeated GroupInputSpecProto grouped_input_specs = 7; optional int32 vertex_parallelism = 8; optional int32 fragment_number =9; optional int32 attempt_number = 10; } message FragmentRuntimeInfo { optional int32 num_self_and_upstream_tasks = 1; optional int32 num_self_and_upstream_completed_tasks = 2; optional int32 within_dag_priority = 3; optional int64 dag_start_time = 4; optional int64 first_attempt_start_time = 5; } enum SourceStateProto { S_SUCCEEDED = 1; S_RUNNING = 2; } message SubmitWorkRequestProto { optional string container_id_string = 1; optional string am_host = 2; optional int32 am_port = 3; optional string token_identifier = 4; optional bytes credentials_binary = 5; optional string user = 6; optional string application_id_string = 7; optional int32 app_attempt_number = 8; optional FragmentSpecProto fragment_spec = 9; optional FragmentRuntimeInfo fragment_runtime_info = 10; } message SubmitWorkResponseProto { } message SourceStateUpdatedRequestProto { optional string dag_name = 1; optional string src_name = 2; optional SourceStateProto state = 3; } message SourceStateUpdatedResponseProto { } service LlapDaemonProtocol { rpc submitWork(SubmitWorkRequestProto) returns (SubmitWorkResponseProto); rpc sourceStateUpdated(SourceStateUpdatedRequestProto) returns (SourceStateUpdatedResponseProto); }