Hi all.
I’m a student in Dublin, Ireland doing my final year project on Hadoop and Big Data.
I am following this Hortonworks tutorial:
http://hortonworks.com/blog/deploying-hadoop-cluster-amazon-ec2-hortonworks/
Everything was going fine until I came to the Confirm Hosts stage of the Ambari web app install.
The status failed came up for all 7 instances.
When I clicked “failed” it is telling me that the reason for failure is:
STDOUT
STDERR
Please login as the user “ec2-user” rather than the user “root”.
scp /usr/lib/python2.6/site-packages/ambari_server/os_type_check.sh done for host ip-172-31-21-233.eu-west-1.compute.internal, exitcode=1
Copying os type check script finished
ERROR: Bootstrap of host ip-172-31-21-233.eu-west-1.compute.internal fails because previous action finished with non-zero exit code (1)
So the key part seems to be:
Please login as the user “ec2-user” rather than the user “root”.
I have checked all the Google searches and Stackoverflow forums but to no avail.
Apologies in advance if some of the following question are stupid ones.
The error is referring to the “login” but I’m not sure which login it is referring to exactly.
According to the Hortonworks tutorial I have logged into the Ambari web UI as “admin” and “admin”.
But looking at the error I presume it is actually referring to an Amazon EC2 instance login via SSH (Terminal on a Mac).
If that’s correct, then which login exactly is it referring to?
The login that was used when the Ambari software was installed?
or
The login being used currently while I’m trying to run Ambari?
If it’s the former (login used for install) then should I try to uninstall Ambari and re-install as ec2-user?
When I get the error now, I am definitely logging in as ec2-user and not root, but I can’t be 100% sure what user I was when I installed Ambari originally, it could have been “root” but as far as I remember AWS wouldn’t let me so I used ec2-user and sudo.
I hope this makes sense and any help would be greatly appreciated.
BM.