d2iq-archive / dcos-flink-service

11 stars 17 forks source link

CLI subcommand: upload #38

Closed OhRobin closed 7 years ago

OhRobin commented 7 years ago

Considering https://github.com/mesosphere/dcos-flink-service/pull/37/commits/3828c336ceaa13b8dc2311304da8b06cad264f2a as a starting point, upload command uploads an empty jar file. So, while it does show up as a correct jarfile, it gives an error when run is called.

As an FYI, the following curl requests work:

curl --header "Authorization: token=$(dcos config show core.dcos_acs_token)" -X POST -H "Expect:" -F "jarfile=@<Jarfile location>" <MASTER_IP>/service/flink/jars/upload

curl --request POST \
  --url http://<MASTER_IP>/service/flink/jars/upload \
  --header 'authorization: $(dcos config show core.dcos_acs_token)' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --form jarfile=@<jarfile location>

Therefore, undoing https://github.com/mesosphere/dcos-flink-service/pull/37/commits/3828c336ceaa13b8dc2311304da8b06cad264f2a will give a good starting point to start. It will upload in the correct format, but it will not run.

OhRobin commented 7 years ago

40