繁体   English   中英

自定义引导时,AWS EMR集群终止

[英]AWS EMR Cluster terminates while custom bootstrapping

我正在运行以下命令来创建EMR群集,并且该群集在引导阶段终止

aws emr create-cluster --ami-version 3.1.0 \
--ami-version 3.8.0 \
--service-role EMR.sentmtEMRServiceRole \
--bootstrap-actions Path=s3://ae1-s3-sentmt-anlys/config-nltk.sh,Name="Custom action" \
--log-uri s3://aws-logs-476270297889-us-east-1/elasticmapreduce \
--ec2-attributes InstanceProfile=ec2-sentmt.role,KeyName=ae1-nat-sentmt-anlys \
--instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m1.medium InstanceGroupType=CORE,InstanceCount=1,InstanceType=m1.medium

并且日志文件在S3存储桶中具有以下条目:

Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  28 M RSS (412 MB VSZ)
    Started: Wed Jul 15 08:25:44 2015 - 00:18 ago
    State  : Running, pid: 1430


Transaction check error:
  file /etc/init.d from install of chkconfig-1.3.49.3-2.14.amzn1.x86_64 conflicts with file from package EmrMetrics-1.0-1.noarch
  file /etc/init.d from install of chkconfig-1.3.49.3-2.14.amzn1.x86_64 conflicts with file from package service-nanny-1.0-1.noarch
  file /etc/init.d from install of chkconfig-1.3.49.3-2.14.amzn1.x86_64 conflicts with file from package instance-controller-1.0-1.noarch
  file /etc/init.d from install of chkconfig-1.3.49.3-2.14.amzn1.x86_64 conflicts with file from package hadoop-state-pusher-1.0-1.noarch

Error Summary
-------------

/usr/bin/python: No module named nltk

有人可以告诉我该命令出了什么问题吗? 谢谢您提前提供的所有帮助:)

这已经很晚了,但是对于其他像我一样遇到这种情况的人。 可以在这里找到解决方案: https : //forums.aws.amazon.com/message.jspa?messageID=614195

有两种修复方法。 最简单的方法是使用最新的AMI版本。 因此,如果您复制了某人的命令行以启动集群,则将ami版本标记替换为:--ami-version 3.9.0

如果您停留在当前的ami版本上,则可以通过使用releasever修改yum命令来解决此问题:

yum --releasever=2014.09 install <package_name>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM