Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Livy unable to connect the cluster

Highlighted

Livy unable to connect the cluster

New Contributor

Hi,

I am trying to use Livy command execute the jar file in the cluster. Before that i am using the below command to check the whether LIVY is working or not.

curl -k --user "admin:admin" -v -X GET "http://mssubuntuserver.corp.XXXXXX.com:8080/livy/batches"

But getting the below Message . Please look in to this issue.

Thanks,

Narender

* Hostname was NOT found in DNS cache * Trying 10.138.24.231... * Connected to mssubuntuserver.corp.XXXXX.com (10.138.24.231) port 8080 (#0) * Server auth using Basic with user 'admin' > GET /livy/batches HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.35.0 > Host: mssubuntuserver.corp.XXXXX.com:8080 > Accept: */* > < HTTP/1.1 404 Not Found < X-Frame-Options: DENY < X-XSS-Protection: 1; mode=block < Content-Type: text/plain;charset=ISO-8859-1 < Content-Length: 45 * Server Jetty(8.1.17.v20150415) is not blacklisted < Server: Jetty(8.1.17.v20150415) < { "status": 404, "message": "Not Found" * Connection #0 to host mssubuntuserver.corp.XXXXX.com left intact

1 REPLY 1

Re: Livy unable to connect the cluster

Rising Star

@narender pasunooti livy rest api is most likely using port 8998. For example, http://http://server.support.com:8998 . This brings up a basic menu for livy such as healthcheck and metrics. It looks like you may have the wrong port. Verify the port you are using and the server to make sure it is correct. Finally, start with a call to just the port to see if you get a response as I showed above.

Hope this helps.