Reply
New Contributor
Posts: 2
Registered: ‎07-17-2014
Accepted Solution

host acquiring installation lock forever

Hello, all the masters here!

 
am facing the problem of acquiring installation lock when installing cloudera manager for the first time, i did some googling but nothing works for me :(
 
i have four computers, etc/hosts like:
 
127.0.0.1 localhost.localdomain localhost
172.16.34.143 cluster2.test.com cluster2
172.16.34.140 cluster3.test.com cluster3
172.16.34.139 cluster4.test.com cluster4
172.16.34.141 cluster5.test.com cluster5
 
and etc/sysconfig/network is set accordingly, i managed to have a host installation done which is the cluster2 of ip 172.16.34.143.
 
and the rest three hosts are all stuck in Acquiring installation lock procedure, for like hours!
 
the detail output is like:
 
 
/tmp/scm_prepare_node.bulkkxpo
using SSH_CLIENT to get the SCM hostname: 172.16.34.143 33121 22
opening logging file desciptor
 
Starting installation script...
 
Acquiring installation lock...
 
BEGIN flock 4
 
Can anyone help me with this problem?
Help would be highly appreciated! Thanks in advance!
Posts: 1,754
Kudos: 371
Solutions: 279
Registered: ‎07-31-2013

Re: host acquiring installation lock forever

Leftover /tmp/scm* directories from earlier attempts may cause this issue. Look for such files on your hanging hosts and remove them and then retry the installation from the UI.
New Contributor
Posts: 2
Registered: ‎07-17-2014

Re: host acquiring installation lock forever

Thanks for the reply, the problem is resolved through installation restart.

New Contributor
Posts: 1
Registered: ‎12-23-2014

Re: host acquiring installation lock forever

you can remove /tmp/.scm_prepare_node.lock

New Contributor
Posts: 5
Registered: ‎02-11-2015

Re: host acquiring installation lock forever

Sometime just deleting lock file doesnt work. Need to restart cloudera-server service. Thanks

Cloudera Employee
Posts: 578
Registered: ‎01-20-2014

Re: host acquiring installation lock forever

This is a known defect and we are working to fix it, thanks for your patience thus far.
Regards,
Gautam Gopalakrishnan
New Contributor
Posts: 2
Registered: ‎04-10-2015

Re: host acquiring installation lock forever

This worked for me. Thanks alot.
New Contributor
Posts: 1
Registered: ‎06-26-2015

Re: host acquiring installation lock forever

If removing lock file doesn't help and if you are stuck on cloudera manager, do "Abort installation" and then retry on failed hosts.

Explorer
Posts: 14
Registered: ‎08-14-2015

Re: host acquiring installation lock forever

Hi,

 

Following has been done to get rid of the issue:

 

1) Aborted installation.

2) Logged in to each failed host and removed files in /tmp and retried installation on each failed host.

 

Below is the example:

rm -rf scm_prepare_node.VqVHCy66 scm_prepare_node.WjYHxBu2 scm_prepare_node.0Hk6W9O1 .scm_prepare_node.lock

 

Highlighted
Explorer
Posts: 14
Registered: ‎08-14-2015

Re: host acquiring installation lock forever

Removed any hidden files too under /tmp directory on the failed host.

Use ls -al command to view hidden files

Example:

.scm_prepare_node.lock

Announcements