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
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
30 REPLIES 30

avatar
Guru

Which Amazon region are getting the AMI from? Perhaps there is an AMI that is not working. Try starting up one in a different region and see if that works.

avatar
New Contributor

I am using us-west-2c. Will this be a issue?

avatar
Guru

I don't know, but try a different a region and see if you have any success.

avatar
Explorer

my region is N virginia and public ip is ec2-54-210-61-32.compute-1.amazonaws.com

avatar
Guru

Did you try this:

ssh root@namenode "ambari-agent restart"

avatar
Explorer

yes I executed the command

The log files indicate same error on host

avatar
Guru

Try this:

1. Run /home/horton/start_all_services.sh

2. Wait 5 minutes

3. If Hadoop services are not started after 5 minutes, terminate your EC2 instance and create a new one because something failed in your VM

avatar
Explorer

it works now.. thanks for all your help

avatar
New Contributor

It worked for me by restarting the ambari service. But as Rich suggested we need to wait for 5 mins to get all service restarted. Thanks Rich.

avatar
New Contributor

Hello, can someone tell me how to scp to the practice EC2, copy my notes to my local before I terminate the instance.

I use the Public DNS:22, and chose the key file, but it still prompts me the user name and password, i tried U: horton and P: hadoop, cannot pass the authentication.