commit | 3ec329c384e96088b78bf97ca015408cf6e2eaaa | [log] [tgz] |
---|---|---|
author | Wilfred Spiegelenburg <wspiegelenburg@cloudera.com> | Fri Jun 07 13:21:51 2019 +1000 |
committer | Wilfred Spiegelenburg <wspiegelenburg@cloudera.com> | Fri Jun 07 13:21:51 2019 +1000 |
tree | 187f62951ce91ca653e5d0d7d90d4421d4d7b1ce | |
parent | dafee7762b30fc4cf4af26f1398f6099c8936568 [diff] |
Remove unused imports and build references Move direct proto changes to spec file: - rename job to application because application is a more general term for workloads - include applicationId in RejectedAllocationAsk
Yunikorn Resource Scheduler Interface defines a protobuf interface for communication between the core scheduler and the resource management systems.
The interface has two parts:
Both interfaces are build from the same source.
The source and documentation are included in one file the scheduler-interface-spec
The protocol definition is extracted from the documentation by the build. The extracted protocol definition and the source code generated from the definition are part of the repository but should not be modified directly.
The interface is defined in the specification as blocks of type protobuf
as follows:
```protobuf defintion following the protobuf specifications ```
The blocks of definitions are extracted from the specification file and added together to form the protobuf input. The definitions cannot have lines exceeding 200 characters.
Prerequisite:
Steps:
make
to build.The build process will download and install all required tools to build. Currently only the go source code artifact is generated.
The output of this build is required to build the scheduler and the resource manager(s). To allow building those projects without the requirement of generating the interface artifacts in each the generated artifacts are part of the repository.
The dependent projects can use the interface by importing “github.infra.cloudera.com/yunikorn/scheduler-interface/lib/go/si”
package example
import "github.infra.cloudera.com/yunikorn/scheduler-interface/lib/go/si"