Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

connection refused - AWS (HDPCD practice exam) : getting this error eventhouth i restarted ambari-agent

avatar
Rising Star

Hi there,

I'm trying to work with AWS for HDPCD practice exam. I ran " hdfs dfs -ls / " cmd on the terminal and getting " connection refused error". I could see all the services are not running and displays with red colour rectangle icon. I ran the below command

ssh root@namenode

password: hadoop

service ambari-agent restart

exit

~/start-all-services.sh

but, no services are running except Zookeeper and Ganglia services. Please let me know to solve this issue. Thanks! @rich

1 ACCEPTED SOLUTION

avatar
Guru

If you startup one of our practice exams and the cluster services are not running, here are some things to try first:

1. Run the start_all_services.sh script. You can watch the progress of this script in Ambari - it uses the Ambari REST API to start all HDP services.

2. Login to Ambari and try to start services that way

3. Restart the ambari-agent process on each node in the cluster (password for root is hadoop), then run start_all_services.sh again:

ssh root@namenode "ambari-agent restart"
ssh root@resourcemanager "ambari-agent restart"   # This only applies the HDPCA exam
ssh root@hiveserver "ambari-agent restart"	# This only applies to the HDPCA exam

If none of the steps above fix the issue, then it is likely an issue with the Docker containers not starting properly. Since you do not have root access on your practice exam, the quickest solution is to simply terminate your EC2 instance and startup another one.

-Rich

View solution in original post

30 REPLIES 30

avatar
New Contributor

Hi,

I wanted to take HDPCD exam . .tried logging in AWS. but when i do hadoop fs -ls .. it throws connection refused. few times. Tried recreating the instance .. still the same error.. tried starting all the services individually in ambari ... still the same error. The above root@hostname isn't working. Can you pl help ASAP? i am planning to take the exam this week