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.

Ambari 2.1.2 REST API very slow

Highlighted

Ambari 2.1.2 REST API very slow

Explorer

Hi, I am executing the following REST API call to start all the services on a given node. I see two different behaviors. When I run it from the command line, it runs almost instantaneously and I see that all the services are started. However when I call the very same API from a shell script which is in turn called from our framework, it takes nearly 10m to start all the services. I see a few of the services saying "INSTALLING" for quite some time before they start up.

http://10.9.100.227:8080/api/v1/clusters/hdp/hosts/vnode-109-149.robinsystems.com/host_components

3 REPLIES 3
Highlighted

Re: Ambari 2.1.2 REST API very slow

Mentor

are you sure your framework is not adding latency to the API calls? One you rule that out, you should see if Ambari heapsize is set adequately. Also please help us by answering the following: how many nodes are you running, what version of HDP is it and why are you still using bari 2.1? We recently identified an issue with Ambari prior to 2.2.2.0 that take a long time to execute on large clusters, though I'm leaning towards issues woth your framework and/or Ambari has sufficient resources.

Highlighted

Re: Ambari 2.1.2 REST API very slow

Explorer

Artem, I am running it on a test setup of 2 nodes with 12 instances spread across these nodes. The ambari server instance has 1GB of RAM and 1 core allocated to it which I presume is not enough. However even the cli call was issued to this very same instance so what could be the difference. There two servers are quite beefy with about 137GB of RAM in total.

Highlighted

Re: Ambari 2.1.2 REST API very slow

Mentor

That's why I asked how sure are you your framework does not introduce any latency. Please follow this guide to increase Ambari heapsize https://community.hortonworks.com/questions/622/how-to-increase-the-ambari-heap-size.html

Don't have an account?
Coming from Hortonworks? Activate your account here