This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e2a077
commit 4aca588
Showing
7 changed files
with
444 additions
and
212 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
|
||
# This is how I'm running on Flink | ||
# Go to the place where you installed flink, say $HOME/flink-1.7.2/ | ||
# Place this script there. | ||
# NOTE: Files like metastore.json, the .ktr or the fat jar can be also stored in hdfs:// | ||
# File name resolution is done using HDFS. | ||
# Make sure to configure your local environment for HDFS in that case, | ||
# set HADOOP_CONF_DIR for example | ||
# | ||
# Put the fat jar (for now generated with Spoon) in $HOME/software/ | ||
# Put your MetaStore export (for now exported with Spoon) in $HOME/metadata | ||
# | ||
# One argument: The transformation ktr | ||
# | ||
This is how I'm running on Flink | ||
Go to the place where you installed flink, say $HOME/flink-1.8.0/ | ||
Place the script below --- there. | ||
NOTES: | ||
- Files like metastore.json, the .ktr or the fat jar can be also stored in hdfs:// | ||
- File name resolution is done using HDFS. Make sure to configure your local environment for HDFS in that case, set HADOOP_CONF_DIR for example | ||
- Put the fat jar (for now generated with Spoon) in $HOME/software/ | ||
- Put your MetaStore export (for now exported with Spoon) in $HOME/metadata | ||
|
||
Pass one argument to the script: The transformation file (.ktr) | ||
|
||
--- | ||
#!/bin/bash | ||
|
||
TRANS=$1 | ||
|
||
bin/flink run \ | ||
--class org.kettle.beam.pipeline.flink.MainFlink \ | ||
--parallelism 1 \ | ||
~/software/kettle-beam-fat.jar \ | ||
--parallelism 6 \ | ||
~/software/kettle-8.2-beam-2.13-fat.jar \ | ||
"${TRANS}" \ | ||
file:///home/kettle/metadata/metastore.json \ | ||
"Flink server" \ | ||
org.kettle.beam.steps.io.BeamInputMeta,org.kettle.beam.steps.bq.BeamBQOutputMeta,org.kettle.beam.steps.pubsub.BeamPublishMeta,org.kettle.beam.steps.pubsub.BeamSubscribeMeta,org.kettle.beam.steps.window.BeamTimestampMeta,org.kettle.beam.steps.io.BeamOutputMeta,org.kettle.beam.steps.window.BeamWindowMeta,org.kettle.beam.steps.bq.BeamBQInputMeta \ | ||
org.kettle.beam.xp.RunBeamTransExecutionPoint | ||
"Flink server" | ||
|
Oops, something went wrong.