Commit ecbcdda3 by amira

submit flink job an ssh

parent 9e3b4ed8
[adding your ssh key to a remote server]
create public key:
ssh-keygen -t rsa
copy it:
cat ~/.ssh/id_rsa.pub | ssh root@[ip/domain] "cat >> ~/.ssh/authorized_keys"
[install R]
......
# SUBMIT FLINK JOB
1 copy the job jar to /opt/mcx/config/flink/jobs/ or wget from archiva
e.g wget https://municipalitybank.com:8081/repository/internal/com/ipgallery/esp/activities-cep-job/1.0.2/activities-cep-job-1.0.2-all.jar
2 go to /opt/mcx/config/flink/jobs/
3 copy the job jar to flink jobmanager instance and start it:
$ JOBMANAGER_CONTAINER=$(docker ps --filter name=jobmanager --format={{.ID}})
$ docker cp path/to/jar "$JOBMANAGER_CONTAINER":/job.jar
$ docker exec -t -i "$JOBMANAGER_CONTAINER" flink run /job.jar
4 prey (;-)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment