Skip to content

Commit f0f9889

Browse files
authored
docs: add README (#54)
Signed-off-by: 佑祎 <zzw261520@alibaba-inc.com>
1 parent 2570b0a commit f0f9889

File tree

2 files changed

+154
-24
lines changed

2 files changed

+154
-24
lines changed

README-zh_CN.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<h1 align="center">
2+
<p align="center">Koordinator goyarn</p>
3+
<a href="https://koordinator.sh"><img src="https://github.com/koordinator-sh/koordinator/raw/main/docs/images/koordinator-logo.jpeg" alt="Koordinator"></a>
4+
</h1>
5+
6+
[![License](https://img.shields.io/github/license/koordinator-sh/koordinator.svg?color=4EB1BA&style=flat-square)](https://opensource.org/licenses/Apache-2.0)
7+
[![GitHub release](https://img.shields.io/github/v/release/koordinator-sh/goyarn.svg?style=flat-square)](https://github.com/koordinator-sh/goyarn/releases/latest)
8+
[![CI](https://img.shields.io/github/actions/workflow/status/koordinator-sh/goyarn/ci.yaml?label=CI&logo=github&style=flat-square&branch=main)](https://github.com/koordinator-sh/goyarn/actions/workflows/ci.yaml)
9+
[![Go Report Card](https://goreportcard.com/badge/github.com/koordinator-sh/goyarn?style=flat-square)](https://goreportcard.com/report/github.com/koordinator-sh/goyarn)
10+
[![codecov](https://img.shields.io/codecov/c/github/koordinator-sh/goyarn?logo=codecov&style=flat-square)](https://codecov.io/github/koordinator-sh/goyarn)
11+
[![PRs Welcome](https://badgen.net/badge/PRs/welcome/green?icon=https://api.iconify.design/octicon:git-pull-request.svg?color=white&style=flat-square)](CONTRIBUTING.md)
12+
[![Slack](https://badgen.net/badge/slack/join/4A154B?icon=slack&style=flat-square)](https://join.slack.com/t/koordinator-sh/shared_invite/zt-1756qoub4-Cn4~esfdlfAPsD7cwO2NzA)
13+
14+
15+
[English](./README.md) | 简体中文
16+
17+
## 介绍
18+
19+
Koordinator已经支持了K8s生态内的在离线混部,通过Batch超卖资源以及BE QoS,离线任务可以使用到集群内的空闲资源,提升资源使用效率。然而,
20+
在K8s生态外,仍有相当数量的应用运行在其他资源管理系统,例如Apache Hadoop YARN。作为大数据生态下的资源管理系统,YARN承载了包括MapReduce、
21+
Spark、Flink以及Presto等在内的多种计算引擎。
22+
23+
为了进一步丰富Koordinator支持的在离线混部场景,Koordinator社区提供了面向大数据场景的YARN混部套件,支持Hadoop YARN应用与K8s混部,
24+
将Koordiantor的Batch资源提供给Hadoop YARN使用,进一步提升集群资源的使用效率。Koordinator YARN混部套件具备以下特点:
25+
26+
- 面向开源生态:针对开源版本的Hadoop YARN实现,无需对YARN本身做侵入式改造。
27+
- 统一资源优先级和QoS策略:YARN混部套件完全对标Koordinator的Batch资源模型,同时接受单机一系列QoS策略的管控。
28+
- 节点资源共享:在同一节点上可以同时运行Batch类型的Pod和YARN的Task。
29+
- 适应多种环境:YARN混部套件对集群类型没有约束,可以在包括公共云、IDC等多种场景下使用。
30+
31+
## 快速开始
32+
33+
你可以在 [Koordinator website](https://koordinator.sh/docs) 查看到完整的文档集。
34+
35+
- 安装/升级 Koordinator [最新版本](https://koordinator.sh/docs/installation)
36+
- 参考[最佳实践](https://koordinator.sh/zh-Hans/docs/next/best-practices/colocation-of-hadoop-yarn/),里面包含了关于K8s与YARN混部的详细示例。
37+
38+
## 行为守则
39+
40+
Koordinator 社区遵照[行为守则](https://github.com/koordinator-sh/koordinator/CODE_OF_CONDUCT.md) 。我们鼓励每个人在参与之前先读一下它。
41+
42+
为了营造一个开放和热情的环境,我们作为贡献者和维护者承诺:无论年龄、体型、残疾、种族、经验水平、教育程度、社会经济地位、国籍、个人外貌、种族、宗教或性认同和性取向如何,参与我们的项目和社区的每个人都不会受到骚扰。
43+
44+
## 贡献
45+
46+
我们非常欢迎每一位社区同学共同参与 Koordinator 的建设,你可以从 [CONTRIBUTING.md](https://github.com/koordinator-sh/koordinator/CONTRIBUTING.md) 手册开始。
47+
48+
## 成员
49+
50+
我们鼓励所有贡献者成为成员。我们的目标是发展一个由贡献者、审阅者和代码所有者组成的活跃、健康的社区。在我们的[社区成员](https://github.com/koordinator-sh/community/blob/main/community-membership.md)页面,详细了解我们的成员要求和责任。
51+
52+
## 社区
53+
54+
[koordinator-sh/community 仓库](https://github.com/koordinator-sh/community) 中托管了所有社区信息, 例如成员制度、代码规范等。
55+
56+
我们鼓励所有贡献者成为成员。我们的目标是发展一个由贡献者、审阅者和代码所有者组成的活跃、健康的社区。
57+
请在[社区成员制度](https://github.com/koordinator-sh/community/blob/main/community-membership.md)页面,详细了解我们的成员要求和责任。
58+
59+
活跃的社区途径:
60+
61+
- 社区双周会(中文):
62+
- 周二 19:30 GMT+8 (北京时间)
63+
- [钉钉会议链接](https://meeting.dingtalk.com/j/cgTTojEI8Zy)
64+
- [议题&记录文档](https://shimo.im/docs/m4kMLdgO1LIma9qD)
65+
- Slack( English ): [koordinator channel](https://kubernetes.slack.com/channels/koordinator) in Kubernetes workspace
66+
- 钉钉( Chinese ): 搜索群ID `33383887`或者扫描二维码加入
67+
68+
<div>
69+
<img src="https://github.com/koordinator-sh/koordinator/raw/main/docs/images/dingtalk.png" width="300" alt="Dingtalk QRCode">
70+
</div>
71+
72+
## License
73+
74+
Koordinator is licensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE) for the full license text.
75+
<!--
76+
77+
## Star History
78+
79+
[![Star History Chart](https://api.star-history.com/svg?repos=koordinator-sh/koordinator&type=Date)](https://star-history.com/#koordinator-sh/koordinator&Date)
80+
-->

README.md

Lines changed: 74 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,84 @@
1-
# goyarn
2-
use goyarn as native go clients for Apache Hadoop YARN.
1+
<h1 align="center">
2+
<p align="center">Koordinator goyarn</p>
3+
<a href="https://koordinator.sh"><img src="https://github.com/koordinator-sh/koordinator/raw/main/docs/images/koordinator-logo.jpeg" alt="Koordinator"></a>
4+
</h1>
35

4-
It includes an early version of Hadoop IPC client and requisite YARN client libraries to implement YARN applications completely in go (both YARN application-client and application-master).
6+
[![License](https://img.shields.io/github/license/koordinator-sh/koordinator.svg?color=4EB1BA&style=flat-square)](https://opensource.org/licenses/Apache-2.0)
7+
[![GitHub release](https://img.shields.io/github/v/release/koordinator-sh/goyarn.svg?style=flat-square)](https://github.com/koordinator-sh/goyarn/releases/latest)
8+
[![CI](https://img.shields.io/github/actions/workflow/status/koordinator-sh/goyarn/ci.yaml?label=CI&logo=github&style=flat-square&branch=main)](https://github.com/koordinator-sh/goyarn/actions/workflows/ci.yaml)
9+
[![Go Report Card](https://goreportcard.com/badge/github.com/koordinator-sh/goyarn?style=flat-square)](https://goreportcard.com/report/github.com/koordinator-sh/goyarn)
10+
[![codecov](https://img.shields.io/codecov/c/github/koordinator-sh/goyarn?logo=codecov&style=flat-square)](https://codecov.io/github/koordinator-sh/goyarn)
11+
[![PRs Welcome](https://badgen.net/badge/PRs/welcome/green?icon=https://api.iconify.design/octicon:git-pull-request.svg?color=white&style=flat-square)](CONTRIBUTING.md)
12+
[![Slack](https://badgen.net/badge/slack/join/4A154B?icon=slack&style=flat-square)](https://join.slack.com/t/koordinator-sh/shared_invite/zt-1756qoub4-Cn4~esfdlfAPsD7cwO2NzA)
513

6-
Koordinator extends `github.com/hortonworks/gohadoop` by implementing resource manager administration service and other clients.
714

8-
# Notes:
9-
Set HADOOP_CONF_DIR environment variable, and ensure the conf directory contains both *-default.xml and *-site.xml files.
10-
rm_update_node_resource.go is an example go YARN rpc client of rm-admin: call update node resource to do the updates.
15+
English | [简体中文](./README-zh_CN.md)
16+
## Introduction
1117

12-
# Run rm_update_node_resource example
13-
Change the `host` and `port` to target node id.
18+
Koordinator has supported hybrid orchestration workloads on Kubernetes, so that batch jobs can use the requested but unused resource
19+
as `koord-batch` priority and `BE` QoS class to improve the cluster utilization. However, there still lots of applications
20+
running beyond K8s such as Apache Haddop YARN. As a resource management platform in BigData ecosystem, YARN has supported
21+
numbers of computing engines including MapReduce, Spark, Flink, Presto, etc.
1422

15-
Execute command:
23+
In order to extend the co-location scenario of Koordinator, now the community has provided Hadoop YARN extended suits
24+
in BigData ecosystem, supporting running Hadoop YARN jobs by `koord-batch` resources with other K8s pods. The Koordiantor
25+
YARN suits has following characters:
1626

17-
```shell script
18-
$ HADOOP_CONF_DIR=conf go run pkg/yarn/client/examples/rm_update_node_resource.go
19-
```
27+
- Open-Source native: implement against open-sourced version of Hadoop YARN; so there is no hack inside YARN modules.
28+
- Unifed resource priority and QoS strategy: the suits aims to the `koord-batch` priority of Koordinator, and also managed by QoS strategies of koordlet.
29+
- Resource sharing on node level: node resources of `koord-batch` priority can be requested by tasks of YARN or `Batch` pods both.
30+
- Adaptive for multiple environments: the suits can be run under any environment, including public cloud or IDC.
2031

21-
# Run yarn-operator
22-
Install `koordinator` according to [doc](https://koordinator.sh/docs/installation/).
32+
## Quick Start
2333

24-
Add annotation to node with YARN node ID
25-
```shell script
26-
kubectl annotate node --overwrite ${k8s.node.name} node.yarn.koordinator.sh=${yarn.node.id}
27-
```
34+
You can view the full documentation from the [Koordinator website](https://koordinator.sh/docs).
2835

29-
Change the `yarn.resourcemanager.admin.address` in config/manager/configmap.yaml
36+
- Install or upgrade Koordinator with [the latest version](https://koordinator.sh/docs/installation).
37+
- Referring to [best practices](https://koordinator.sh/docs/next/best-practices/colocation-of-hadoop-yarn), there will be
38+
detailed instructions for running Hadoop YARN jobs with Koordinator batch resources in K8s.
3039

31-
Execute command:
32-
```shell script
33-
$ kubectl apply -f config/manager/
34-
```
40+
## Code of conduct
41+
42+
The Koordinator community is guided by our [Code of Conduct](https://github.com/koordinator-sh/koordinator/CODE_OF_CONDUCT.md),
43+
which we encourage everybody to read before participating.
44+
45+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making
46+
participation in our project and our community a harassment-free experience for everyone, regardless of age, body size,
47+
disability, ethnicity, level of experience, education, socio-economic status,
48+
nationality, personal appearance, race, religion, or sexual identity and orientation.
49+
50+
## Contributing
51+
52+
You are warmly welcome to hack on Koordinator. We have prepared a detailed guide [CONTRIBUTING.md](https://github.com/koordinator-sh/koordinator/ONTRIBUTING.md).
53+
54+
## Community
55+
56+
The [koordinator-sh/community repository](https://github.com/koordinator-sh/community) hosts all information about
57+
the community, membership and how to become them, developing inspection, who to contact about what, etc.
58+
59+
We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers,
60+
and code owners. Learn more about requirements and responsibilities of membership in
61+
the [community membership](https://github.com/koordinator-sh/community/blob/main/community-membership.md) page.
62+
63+
Active communication channels:
64+
65+
- Bi-weekly Community Meeting (APAC, *Chinese*):
66+
- Tuesday 19:30 GMT+8 (Asia/Shanghai)
67+
- [Meeting Link(DingTalk)](https://meeting.dingtalk.com/j/cgTTojEI8Zy)
68+
- [Notes and agenda](https://shimo.im/docs/m4kMLdgO1LIma9qD)
69+
- Slack(English): [koordinator channel](https://kubernetes.slack.com/channels/koordinator) in Kubernetes workspace
70+
- DingTalk(Chinese): Search Group ID `33383887` or scan the following QR Code
71+
72+
<div>
73+
<img src="https://github.com/koordinator-sh/koordinator/raw/main/docs/images/dingtalk.png" width="300" alt="Dingtalk QRCode">
74+
</div>
75+
76+
## License
77+
78+
Koordinator is licensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE) for the full license text.
79+
<!--
80+
81+
## Star History
82+
83+
[![Star History Chart](https://api.star-history.com/svg?repos=koordinator-sh/koordinator&type=Date)](https://star-history.com/#koordinator-sh/koordinator&Date)
84+
-->

0 commit comments

Comments
 (0)