You are getting error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Which indicates that you might have configured your Ambari Server to use MySQL (ambari by default uses Embedded Postgres). So if you are using MySQL then you will need to do little presetup on your Database.
You might not have set the "root" user permission inside your DB like:
Please check if you have done the steps that are mentioned in : https://docs.hortonworks.com/HDPDocuments/Ambari-126.96.36.199/bk_ambari-administration/content/using_amba...
If there is anything wrong with your MySQL DB setup then you might be seeing something like following insied your ambari-server.out /ambari-server.log:
Caused by: java.lang.RuntimeException: Error while creating database accessor at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:
@Jay kumar let me check otherwise you can take my remote and help to solve it.