得到“现有锁/var/run/yum.pid:另一个副本以pid的形式运行..."在EMR引导过程中 [英] Getting "Existing lock /var/run/yum.pid: another copy is running as pid ..." during bootstraping in EMR
本文介绍了得到“现有锁/var/run/yum.pid:另一个副本以pid的形式运行..."在EMR引导过程中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
作为引导步骤的一部分,我需要在EMR群集(AMI 3.1.1)中安装python3.所以我添加了以下命令:
I need to install python3 in my EMR cluster (AMI 3.1.1) as a part of bootstraping step. So I added the following command:
sudo yum install -y python3
但是每次出现错误时,都会说:
But everytime I got an error saying the following:
Existing lock /var/run/yum.pid: another copy is running as pid 1829.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
如何避免此错误?还是有一种无需经过此途径即可安装Python 3的方法?
How can I avoid this error? Or is there a way to install Python 3 without going through this route?
推荐答案
我最终从源代码安装:
wget --no-check-certificate -O Python-3.4.2.tgz "https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz"
tar xvfz Python-3.4.2.tgz
cd Python-3.4.2
./configure
make
sudo make altinstall
这篇关于得到“现有锁/var/run/yum.pid:另一个副本以pid的形式运行..."在EMR引导过程中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文