cloudera / cm_api

Cloudera Manager API Client
Apache License 2.0
305 stars 284 forks source link

cloudera-scm-server not starting #58

Open sorabhj opened 7 years ago

sorabhj commented 7 years ago

Hello ,

Using setup-master.sh , its failing at below step : _+ sudo service cloudera-scm-server-db start Creating SCM configuration file: /etc/cloudera-scm-server/db.properties waiting for server to start...............................................................could not start server Could not start database server, giving up

cloudera-scm-server is not coming UP . Logs attached herewith . Logs&Files.zip

i am using below python version . [root@indlin2394 cloudera-scm-server]# python -V Python 2.7.13

Kindly help .

skvenkat commented 7 years ago

@sorabhj,

You have used mysql as external database for cloudera manager and seems like it wasn't configured properly as per the error messages in the cloudera-scm-server.log :

2017-02-22 15:45:23,508 WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0:com.mchange.v2.resourcepool.BasicResourcePool: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@42c5d9ca -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (5). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Make sure you can access mysql server from localhost and remote host. If you can, then refer the following link to ensure any other possibilities cause the error : http://stackoverflow.com/a/2985169/2383136

Note: Disable IPv6 on the mysql server.