<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question ambari-server start error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193363#M155427</link>
    <description>&lt;P&gt;I am trying to install a non-default database for Ambari and have chosen MySQL as the non-default database on a Centos7 VM environment.&lt;/P&gt;&lt;P&gt;I have followed all the instructions on this link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have installed the mysql connector using :&lt;/P&gt;&lt;P&gt;1. yum install mysql-connector-java        and also tried using&lt;/P&gt;&lt;P&gt;2. downloading mysql-connector-java-5.1.46.tar.gz , copying the 2 mysql-connector-java-5.1.46.jar file to /usr/share/java as well as /var/lib/ambari-server/resources/ folder. &lt;/P&gt;&lt;P&gt;3. I also provided a symlink as mysql-connector-java.jar file both in the /usr/share/java as well as /var/lib/ambari-server/resources/ folder  , I have also tried them seperately.&lt;/P&gt;&lt;P&gt;I have also added the  property server.jdbc.driver.path=/usr/share.java/mysql-connector-java.jar to /etc/ambari-server/conf/ambari.properties&lt;/P&gt;&lt;P&gt;I have also created the ambari database, amabri user with all permission and also run the script - Ambari-DDL-MySQL-CREATE.sql&lt;/P&gt;&lt;P&gt;My ambari server version is 2.6.1.5.3 and my MySQL version is 5.6.40 MySQL Community Server (GPL)&lt;/P&gt;&lt;P&gt;I can access my MySQL and MySQL is running fine.&lt;/P&gt;&lt;P&gt;Despite trying all types of permutation and combination, I am getting this error after successfully installing ambari-server and ambari-setup. I have also tried  ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;But everytime I run the ambari-server start command I end with the following error.&lt;/P&gt;&lt;P&gt;ERROR [main] DBAccessorImpl:119 - Error while creating database accessor 
java.sql.SQLException: Access denied for user 'ambari'@'xxxx.com' (using password: YES)&lt;/P&gt;&lt;P&gt;Anyhelp would be greatly appreciated !&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 20:32:10 GMT</pubDate>
    <dc:creator>siebguru</dc:creator>
    <dc:date>2018-05-17T20:32:10Z</dc:date>
    <item>
      <title>ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193363#M155427</link>
      <description>&lt;P&gt;I am trying to install a non-default database for Ambari and have chosen MySQL as the non-default database on a Centos7 VM environment.&lt;/P&gt;&lt;P&gt;I have followed all the instructions on this link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_using_ambari_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have installed the mysql connector using :&lt;/P&gt;&lt;P&gt;1. yum install mysql-connector-java        and also tried using&lt;/P&gt;&lt;P&gt;2. downloading mysql-connector-java-5.1.46.tar.gz , copying the 2 mysql-connector-java-5.1.46.jar file to /usr/share/java as well as /var/lib/ambari-server/resources/ folder. &lt;/P&gt;&lt;P&gt;3. I also provided a symlink as mysql-connector-java.jar file both in the /usr/share/java as well as /var/lib/ambari-server/resources/ folder  , I have also tried them seperately.&lt;/P&gt;&lt;P&gt;I have also added the  property server.jdbc.driver.path=/usr/share.java/mysql-connector-java.jar to /etc/ambari-server/conf/ambari.properties&lt;/P&gt;&lt;P&gt;I have also created the ambari database, amabri user with all permission and also run the script - Ambari-DDL-MySQL-CREATE.sql&lt;/P&gt;&lt;P&gt;My ambari server version is 2.6.1.5.3 and my MySQL version is 5.6.40 MySQL Community Server (GPL)&lt;/P&gt;&lt;P&gt;I can access my MySQL and MySQL is running fine.&lt;/P&gt;&lt;P&gt;Despite trying all types of permutation and combination, I am getting this error after successfully installing ambari-server and ambari-setup. I have also tried  ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;But everytime I run the ambari-server start command I end with the following error.&lt;/P&gt;&lt;P&gt;ERROR [main] DBAccessorImpl:119 - Error while creating database accessor 
java.sql.SQLException: Access denied for user 'ambari'@'xxxx.com' (using password: YES)&lt;/P&gt;&lt;P&gt;Anyhelp would be greatly appreciated !&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:32:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193363#M155427</guid>
      <dc:creator>siebguru</dc:creator>
      <dc:date>2018-05-17T20:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193364#M155428</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Guru Kamath"&gt;@Guru Kamath&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;That's a permission issue on the ambari database, can you try running the following &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on *.* to 'ambari'@'xxxx.com' identified by 'ambari_user_password';
flush privileges;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please try that and revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:43:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193364#M155428</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-17T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193365#M155429</link>
      <description>&lt;P&gt;USE ambaridb; &lt;/P&gt;&lt;P&gt;CREATE USER 'ambari'@'localhost' IDENTIFIED BY 'panther'; &lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost'; &lt;/P&gt;&lt;P&gt;CREATE USER 'ambari'@'%' IDENTIFIED BY 'panther'; &lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%'; &lt;/P&gt;&lt;P&gt;FLUSH PRIVILEGES;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:46:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193365#M155429</guid>
      <dc:creator>siebguru</dc:creator>
      <dc:date>2018-05-17T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193366#M155430</link>
      <description>&lt;P&gt;I had created user ambari with all privileges.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:46:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193366#M155430</guid>
      <dc:creator>siebguru</dc:creator>
      <dc:date>2018-05-17T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193367#M155431</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/191499/@Guru%20Kamath"&gt;@Guru Kamath&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You will need explicitly add this privilege because that's the error being thrown out !! &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;grant all privileges on *.* to 'ambari'@'xxxx.com' identified by 'panther'; 
flush privileges;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please do that and revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:56:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193367#M155431</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-17T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server start error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193368#M155432</link>
      <description>&lt;P&gt;Thank You ! That seems to have done the trick. Much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 21:28:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-server-start-error/m-p/193368#M155432</guid>
      <dc:creator>siebguru</dc:creator>
      <dc:date>2018-05-17T21:28:45Z</dc:date>
    </item>
  </channel>
</rss>

