Support Questions
Find answers, ask questions, and share your expertise

Amabari-server setup - MySQL failing

Explorer

Hi All,

I am working on the automation script to install and configure ambari server with MySQL as default database.

ambari-server setup -s -v -j /opt/jdk1.7.0_79 -jdbc-db=mysql -jdbc-driver=/usr/share/java/mysql-connector-java.jar

I had also check that the java binary is available in the respective path /opt/jdk1.7.0_79

------------ INFO: about to run command: chown -R root /var/log/ambari-server INFO: Changing ownership: /var/run/ambari-server root True INFO: about to run command: chown -R root /var/run/ambari-server INFO: Changing ownership: /etc/ambari-server root True INFO: about to run command: chown -R root /etc/ambari-server Checking firewall status... INFO: about to run command: /sbin/service iptables status Checking JDK... INFO: Loading properties from /etc/ambari-server/conf/ambari.properties ERROR: Exiting with exit code 1. REASON: Downloading or installing JDK failed: 'Fatal exception: Path to java home dbc-driver=/usr/share/java/mysql-connector-java.jar or java binary file does not exists, exit code 1'. Exiting. [root@ico-svr ~]# ---------

The ambari-server setup is still looking to download and install the JDK. Does anyone know what parameters that it is looking from ambari.properties confi file regarding the JDK settings ?

Thanks

5 REPLIES 5

Re: Amabari-server setup - MySQL failing

@Siva Konda

There is typo

ambari-server setup -s -v -j /opt/jdk1.7.0_79 -jdbc-db=mysql -jdbc-driver=/usr/share/java/mysql-connector-java.jar

check out this http://henning.kropponline.de/2015/02/01/automated-ambari-install-existing-database/

Re: Amabari-server setup - MySQL failing

Explorer

Hi Neeraj,

Can you please mention whay typo you noticed ?

THnks

S

Re: Amabari-server setup - MySQL failing

Re: Amabari-server setup - MySQL failing

Expert Contributor
@Siva Konda

Use -- for multi character option. Like below:

ambari-server setup -s -v -j /opt/jdk1.7.0_79 --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar

Re: Amabari-server setup - MySQL failing

Mentor

@Siva Konda has this been resolved? Can you provide a solution or accept the best answer?