Search code examples
apache-flink

Error 404 for the url http://localhost:8081/jars/:jarid/run


I have jar file that already upload in flink cluster. I'm using flink 1.6.0

Here is the result after i uploaded the jar file

address "http://localhost:8081"
files   
  0 
    id        "1d6dc437-bd5f-4147-a37e-b1d40d425a99_NicoWordCount.jar"
    name      "NicoWordCount.jar"
    uploaded  1537174925000
    entry   
      0 
        name         "WordCount"
        description  null

When I run the following url

"http://localhost:8081/jars/1d6dc437-bd5f-4147-a37e-b1d40d425a99_NicoWordCount.jar/run" it returns: Failure: 404 Not Found

When I run

"http://localhost:8081/jars/1d6dc437-bd5f-4147-a37e-b1d40d425a99_NicoWordCount.jar/plan"

it returns a result.

When I run NicoWordCount.jar in flink dashboard, it also run well and gives the expected result.

What am I doing wrong?


Solution

  • Which HTTP method do you use?

    Run should be executed with POST. For more info on flink's API check this doc.