-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Hadoop 3.x and Flink Yarn sessions #115
Open
he-sk
wants to merge
26
commits into
peelframework:master
Choose a base branch
from
he-sk:flink-yarn
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
35857d6
Fix path of stop-dfs.sh script
he-sk 6eeb90a
Fixed wrong spelling
he-sk cae26ea
Fix: Don’t start/stop Flink webclient
he-sk 539256c
Update registration message of task managers
he-sk b37c58e
Added support for Hadoop 3.x
he-sk b8e2d7b
Added reference configuration for HDFS-3.1.1
he-sk c7235f7
Added support for Hadoop 3.x YARN
he-sk 9871cf4
Added support for Flink 1.7.2
he-sk 02983c5
Traverse dependency graphs in BFS order
he-sk e3ffb26
Introduce common base class for Flink systems
he-sk c90894f
Support for Flink YARN sessions
he-sk 6432d67
Predefined beans for Hadoop 3.1.1 and Flink 1.7.2
he-sk 96ebad0
Make Model.Yaml an alias for Model.KeyValue
he-sk 3023869
Generate capacity-scheduler.xml for YARN
he-sk dc9e800
Specify Hadoop configuration in flink-conf.yaml
he-sk 3465887
Bugfix: Definition of system.hadoop-3.config.slaves configuration option
he-sk b554da8
Generate Flink configuration option: taskmanager.useAccelerators
he-sk fd29d53
Generate INI-type configuration files
he-sk c1a8a22
Generate container-executor.cfg and resource-types.xml configuration …
he-sk e964278
Add support for Flink 1.7.0
he-sk 031ae71
Fix missing class definition
he-sk abf5181
Add configuration defaults for Hadoop 3.x Yarn container-executor.cfg
he-sk e62f417
Add documentation for INI model
he-sk f72d404
Set number of task managers and task slots when running Flink YARN se…
he-sk 8ef9476
Disambiguate HADOOP workers when running HDFS and YARN
he-sk bd8f301
Merge branch 'master' into flink-yarn
he-sk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
peel-extensions/src/main/resources/reference.flink-1.7.0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# include common flink configuration | ||
include "reference.flink.conf" | ||
|
||
system { | ||
flink { | ||
path { | ||
archive.url = "http://archive.apache.org/dist/flink/flink-1.7.0/flink-1.7.0-bin-hadoop28-scala_2.12.tgz" | ||
archive.md5 = "b66459379703adb25c64fbe20bf8f4b1" | ||
archive.src = ${app.path.downloads}"/flink-1.7.0-bin-hadoop28-scala_2.12.tgz" | ||
home = ${system.flink.path.archive.dst}"/flink-1.7.0" | ||
} | ||
config { | ||
# flink.yaml entries | ||
yaml { | ||
env.pid.dir = "/tmp/flink-1.7.0-pid" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
peel-extensions/src/main/resources/reference.flink-1.7.2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# include common flink configuration | ||
include "reference.flink.conf" | ||
|
||
system { | ||
flink { | ||
path { | ||
archive.url = "http://archive.apache.org/dist/flink/flink-1.7.2/flink-1.7.2-bin-hadoop28-scala_2.12.tgz" | ||
archive.md5 = "b9469d4d166520ec767bac0d82c165a7" | ||
archive.src = ${app.path.downloads}"/flink-1.7.2-bin-hadoop28-scala_2.12.tgz" | ||
home = ${system.flink.path.archive.dst}"/flink-1.7.2" | ||
} | ||
config { | ||
# flink.yaml entries | ||
yaml { | ||
env.pid.dir = "/tmp/flink-1.7.2-pid" | ||
} | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
peel-extensions/src/main/resources/reference.flink-yarn-1.7.0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include common flink configuration | ||
include "reference.flink-1.7.0.conf" |
2 changes: 2 additions & 0 deletions
2
peel-extensions/src/main/resources/reference.flink-yarn-1.7.2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include common flink configuration | ||
include "reference.flink-1.7.2.conf" |
58 changes: 58 additions & 0 deletions
58
peel-extensions/src/main/resources/reference.hadoop-3.x.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
system { | ||
hadoop-3 { | ||
user = ${system.default.user} | ||
group = ${system.default.group} | ||
path { | ||
isShared = ${system.default.path.isShared} | ||
archive.dst = ${app.path.systems} | ||
config = ${system.hadoop-3.path.home}"/etc/hadoop" | ||
log = ${system.hadoop-3.path.home}"/logs" | ||
input = ${system.hadoop-3.config.core.fs.default.name}"/tmp/input" | ||
output = ${system.hadoop-3.config.core.fs.default.name}"/tmp/output" | ||
} | ||
format = true | ||
startup { | ||
max.attempts = ${system.default.startup.max.attempts} | ||
polling { | ||
counter = ${system.default.startup.polling.counter} | ||
interval = ${system.default.startup.polling.interval} | ||
} | ||
} | ||
config { | ||
# put list of masters | ||
masters = ${system.default.config.masters} | ||
# put list of workers | ||
workers = ${system.default.config.slaves} | ||
# unfortunately, the slaves config key is hard-coded in Java code | ||
slaves = ${system.default.config.slaves} | ||
# hadoop-env.sh entries | ||
env { | ||
JAVA_HOME = ${system.default.config.java.home} | ||
HADOOP_INSTALL = ${system.hadoop-3.path.home} | ||
# directory where process IDs are stored | ||
HADOOP_PID_DIR = "/tmp/hadoop-3/pid" | ||
# avoids loading wrong native library in the default case | ||
# override with /lib/native if lib exists | ||
HADOOP_COMMON_LIB_NATIVE_DIR = "$HADOOP_INSTALL/lib/native" | ||
} | ||
# core-site.xml entries | ||
core { | ||
fs.default.name = "hdfs://localhost:9000" | ||
} | ||
# hdfs-site.xml entries | ||
hdfs { | ||
dfs.replication = 1 | ||
dfs.namenode.name.dir = "file:///tmp/hdfs-3/name" | ||
dfs.datanode.data.dir = "file:///tmp/hdfs-3/data" | ||
} | ||
# mapred-site.xml entries | ||
mapred { } | ||
# yarn-site.xml entries | ||
yarn { } | ||
# capacity-scheduler.xml entries | ||
capacity-scheduler { } | ||
# container-executor.cfg entries | ||
container-executor { } | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
peel-extensions/src/main/resources/reference.hdfs-3.1.1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# include common hadoop-3.x configuration | ||
include "reference.hadoop-3.x.conf" | ||
|
||
system { | ||
hadoop-3 { | ||
path { | ||
archive.url = "http://archive.apache.org/dist/hadoop/core/hadoop-3.1.1/hadoop-3.1.1.tar.gz" | ||
archive.md5 = "0b6ab06b59ae75f433de387783f19011" | ||
archive.src = ${app.path.downloads}"/hadoop-3.1.1.tar.gz" | ||
home = ${system.hadoop-3.path.archive.dst}"/hadoop-3.1.1" | ||
} | ||
config { | ||
# hadoop-env.sh entries | ||
env { | ||
# directory where process IDs are stored | ||
HADOOP_PID_DIR = "/tmp/hadoop-3.1.1-pid" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# include common yarn-3.x configuration | ||
include "reference.yarn-3.x.conf" | ||
|
||
# pick up hdfs-3.1.1 configuration containing archive data | ||
include "reference.hdfs-3.1.1.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include common hadoop-3.x configuration | ||
include "reference.hadoop-3.x.conf" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are using
KeyValue
as a base class for only one concrete subclass (Yaml
), what is the purpose of factoring it out now?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not sure anymore. It could just be that I wanted to distinguish different types of usages. For example, Model.Yaml is also used for log4j.properties which isn't really a Yaml file.