-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
25 lines (22 loc) · 989 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export JOB_SERVER_PORT=8080 # Same port as before
export PATH=/Users/andresvervaecke/tools/apache-maven-3.8.6/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home
export OUTPUT_FILE="src/main/resources/output"
export INPUT_FILE="src/main/resources/input.csv"
export MODEL_PATH="src/main/resources/model"
# cd multi-language-beam
# mvn compile exec:java -Dexec.mainClass=org.apache.beam.examples.multilanguage.SklearnMnistClassification \
# -Dexec.args="--runner=PortableRunner \
# --jobEndpoint=localhost:$JOB_SERVER_PORT \
# --output=$OUTPUT_FILE \
# --input=$INPUT_FILE \
# --modelPath=$MODEL_PATH" \
# -Pportable-runner
cd ..
cd beam
./gradlew :examples:multi-language:sklearnMinstClassification --args=" \
--runner=PortableRunner \
--jobEndpoint=localhost:$JOB_SERVER_PORT \
--output=$OUTPUT_FILE \
--input=$INPUT_FILE \
--modelPath=$MODEL_PATH"