Quickstart
JAR quickstart
To connect the latest Flex JAR to a Flink cluster:
- Get a Free trial license.
- Download the latest Flex JAR.
- Create a
start-flex.sh
that sets environment variables and starts the JAR
Note: Quoting may be required for some variables
Some variables may require quotes, and each line ends with a \
character.
FLINK_REST_URL=127.0.0.1:9002 \
LICENSE_ID=1c99v4-f690-4a4f-b144-73de2369444a \
LICENSE_CODE=TRIAL_30D \
LICENSEE=My Corp \
LICENSE_EXPIRY=2020-09-05 \
LICENSE_SIGNATURE=15CFFF969111DB6DCA142B6F1E0065F94A614251B80128D52C2CD45993A021AE10E90F57B90FF76CC1B992C16E54BCF1CBE7E5EE3124B3E585BE133774836A6EBB51B55E67EF60F4A435EBEC9F07A26CEABDCF6E3CF4137A33201E7662AF1F7986E57341E0EAEB884BBF320C348D62679F521259DAD1E03F6F79DB53D83CD41B \
ENVIRONMENT_NAME=Trade Book (Staging) \
ALLOW_FLINK_SUBMIT=true \
ALLOW_FLINK_JOB_TERMINATE=true \
ALLOW_FLINK_JAR_DELETE=true \
ALLOW_FLINK_JOB_EDIT=true \
java -jar -Xmx8G ./flex-latest.jar
- Run
chmod +x start-flex.sh
then./start-flex.sh
- Flex is now running on
http://localhost:3000
Java commands
In general we recommend starting Flex with a Java command similar to our Dockerfile:
java -jar -Xmx8G ./flex-latest.jar