Created 03-26-2018 04:54 AM
Hello,
I am getting the error while setting ambari-server setup.i have copied path in ambari properties. still i have received the error.
kindly advice.
ERROR: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property "server.jdbc.driver.path=[path/to/custom_jdbc_driver]" in ambari.properties.
ERROR: Exiting with exit code -1.
REASON: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property "server.jdbc.driver.path=[path/to/custom_jdbc_driver]" in ambari.properties.
Created 03-26-2018 05:21 AM
You will need to refer to if you are planning to sue MySQL as ambari database : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/using_amba...
Please download the MySQL driver from https://dev.mysql.com/downloads/connector/j/
and then place the JAR as following in the location:
# ls /usr/share/java/mysql-connector-java.jar
.
Then run the ambari setup command as following:
# ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar
.
You also need to create ambari users & tables schema in advance as mentioned in the above link.
Created 03-26-2018 08:05 AM
Ambari Server 'setup' completed successfully.
but when i start ambari server ambari-server start it is giving the following error.
Waiting for server start.........Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode 1. Check /var/log/ambari-server/ambari-server.out for more information.
and in the out file this is the error its providing.
/var/log/ambari-server/ambari-server.out: line 1: syntax error near unexpected token `('
/var/log/ambari-server/ambari-server.out: line 1: `Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0'
please help!
Created 03-26-2018 08:17 AM
Can you pelase check if by any chance have you set any incorrect JAVA_HOME on your host?
(OR) by any chance have you edited the "ambari.properties" file , the following property in incorrect way?
# grep 'java.home' /etc/ambari-server/conf/ambari.properties
.
Can you please share/attach your complete "ambari.properties" and also the complete "ambari-server.out" file.
Created 03-26-2018 10:03 AM
Ambari server setup completed succesfully. but i am getting the below error.
Waiting for server start.........Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode 1. Check /var/log/ambari-server/ambari-server.out for more information.
ambari -server.out
[root@m1 /]# /var/log/ambari-server/ambari-server.out
/var/log/ambari-server/ambari-server.out: line 1: syntax error near unexpected token `('
/var/log/ambari-server/ambari-server.out: line 1: `Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0'
Created 03-27-2018 04:56 AM
# grep 'java.home' /etc/ambari-server/conf/ambari.properties
java.home=/usr/jdk64/jdk1.7.0_67
Created 02-17-2020 01:43 AM
grep 'java.home' /etc/ambari-server/conf/ambari.properties
after use this this command showing this output
java.home=/usr/jdk64/jdk1.8.0_77
Created 03-27-2018 06:21 AM
Looks like when you might be running the "ambari-server setup" that time there might be some incorrect entries have happened which is causing the parsing error "syntax error near unexpected token"
As this is a fresh setup so it is better to re run the ambari-server setup command and try again.
.