Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasters committed Sep 3, 2019
1 parent 5e2a077 commit 4aca588
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 212 deletions.
35 changes: 17 additions & 18 deletions flink-notes-matt.txt
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"

Loading

0 comments on commit 4aca588

Please sign in to comment.