2

I have deployed a spark standalone cluster, but when i try to access the rest api for some application info. The url i try to access is http://ip:4040/api/v1.

Link for the rest api doc -> http://spark.apache.org/docs/latest/monitoring.html#rest-api

It says

METHOD NOT ALLOWED

I think this is some config issue or something.

Thanks in advance for help.

Raghvendra Singh
  • 952
  • 9
  • 17

1 Answers1

3

Url http://ip:4040/api/v1 is just the common path for all endpoinds. You are getting this because you are calling GET method but its not allowed.

If you need to get list of applications use http://ip:4040/api/v1/applications instead.

Here is implementation if you are interested in.

VladoDemcak
  • 4,893
  • 4
  • 35
  • 42