启动YARN时,ResourceManager 和 NodeManager报错 Error found before invoking supervisord dictionary update s
2017-07-01 15:53
405 查看
在通过CM启动Yarn服务时候,不同的版本可能都会遇到同样的一个问题,如下图所示:
Error found before invoking supervisord: dictionary update sequence element #89 has length 1; 2 is required
之前在cm5.5、cm5.7以及现在的cm5.11都出现过这样的问题。
在cm5.5中,修改文件
修改内容如下,原文件:
修改为:
也即在env的后面加了
但cm5.7及以后的版本中,貌似不存在这个路径或文件里面不包含这部分内容,仔细查看日志文件
涉及到的文件为
果然在这个文件里面包含上述修改的内容,尝试着按照上述修改。
然后重启agent,再启动Yarn,这次成功了。
如果其他版本遇到类似问题,可尝试上述2个文件。
以上只针对完全离线安装的CDH,如果是完全在线或者半离线(rpm包)安装,可能路径不一样。楼主从来只用完全离线方式安装,所以其他2种方式路径未知。
可尝试用find命令查找,如
PS:用完全离线的方式安装肯定优于在线和半离线方式,以下摘自官方文档
1.Distribution of CDH as a single object
Note: With parcels, the path to the CDH libraries is /opt/cloudera/parcels/CDH/lib instead of the usual /usr/lib. Do not link /usr/lib/ elements to parcel-deployed paths, because the links may cause scripts that distinguish between the two paths to not work.
Error found before invoking supervisord: dictionary update sequence element #89 has length 1; 2 is required
之前在cm5.5、cm5.7以及现在的cm5.11都出现过这样的问题。
在cm5.5中,修改文件
/opt/cloudera-manager/cm-5.5.0/lib64/cmf/agent/src/cmf/util.py
修改内容如下,原文件:
pipe = subprocess.Popen(['/bin/bash', '-c', ". %s; %s; env" % (path, command)], stdout=subprocess.PIPE, env=caller_env)
修改为:
pipe = subprocess.Popen(['/bin/bash', '-c', ". %s; %s; env | grep -v { | grep -v }" % (path, command)], stdout=subprocess.PIPE, env=caller_env)
也即在env的后面加了
| grep -v { | grep -v }这玩意,启动成功。
但cm5.7及以后的版本中,貌似不存在这个路径或文件里面不包含这部分内容,仔细查看日志文件
cloudera-scm-agent.log,如下图(cm5.11):
涉及到的文件为
/opt/cloudera-manager/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.11.1-py2.6.egg/cmf/util/__init__.py
果然在这个文件里面包含上述修改的内容,尝试着按照上述修改。
然后重启agent,再启动Yarn,这次成功了。
如果其他版本遇到类似问题,可尝试上述2个文件。
以上只针对完全离线安装的CDH,如果是完全在线或者半离线(rpm包)安装,可能路径不一样。楼主从来只用完全离线方式安装,所以其他2种方式路径未知。
可尝试用find命令查找,如
find / -name 'util.py'
PS:用完全离线的方式安装肯定优于在线和半离线方式,以下摘自官方文档
1.Distribution of CDH as a single object
Instead of having a separate package for each part of CDH, parcels have just a single object to install. This makes it easier to distribute software to a cluster that is not connected to the Internet.
2. Internal consistency
All CDH components are matched, eliminating the possibility of installing parts from different versions of CDH.
3. Installation outside of /usr
In some environments, Hadoop administrators do not have privileges to install system packages. These administrators needed to use CDH tarballs, which do not provide the infrastructure that packages do. With parcels, administrators can install to /opt, or anywhere else, without completing the additional manual steps of regular tarballs.
Note: With parcels, the path to the CDH libraries is /opt/cloudera/parcels/CDH/lib instead of the usual /usr/lib. Do not link /usr/lib/ elements to parcel-deployed paths, because the links may cause scripts that distinguish between the two paths to not work.
4. Installation of CDH without sudo
Parcel installation is handled by the Cloudera Manager Agent running as root or another user, so you can install CDH without sudo.5. Decoupled distribution from activation
With side-by-side install capabilities, you can stage a new version of CDH across the cluster before switching to it. This allows the most time-consuming part of an upgrade to be done ahead of time without affecting cluster operations, thereby reducing downtime.6. Rolling upgrades
Packages require you to shut down the old process, upgrade the package, and then start the new process. Any errors in the process can be difficult to recover from, and upgrading requires extensive integration with the package management system to function seamlessly. With parcels, when a new version is staged side-by-side, you can switch to a new minor version by simply changing which version of CDH is used when restarting each process. You can then perform upgrades with rolling restarts, in which service roles are restarted in the correct order to switch to the new version with minimal service interruption. Your cluster can continue to run on the existing installed components while you stage a new version across your cluster, without impacting your current operations. Major version upgrades (for example, CDH 4 to CDH 5) require full service restarts because of substantial changes between the versions. Finally, you can upgrade individual parcels or multiple parcels at the same time.7. Upgrade management
Cloudera Manager manages all the steps in a CDH version upgrade. With packages, Cloudera Manager only helps with initial installation.8. Additional components
Parcels are not limited to CDH. Cloudera Impala, Cloudera Search, LZO, Apache Kafka, and add-on service parcels are also available.9. Compatibility with other distribution tools
Cloudera Manager works with other tools you use for download and distribution. For example, you can use Puppet. Or, you can download the parcel to Cloudera Manager Server manually if your cluster has no Internet connectivity and then have Cloudera Manager distribute the parcel to the cluster.相关文章推荐
- 启动YARN时,ResourceManager 和 NodeManager报错 Error found before invoking supervisord dictionary update s
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- nodemanager报错 spark.network.yarn.YarnShuffleService not found
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- XAMPP 启动mysql报错 InnoDB: Error: could not open single-table tablespace file……
- Ubuntu 系统无法启动 error : file not found
- 安装完PHP后启动httpd报错:httpd: Syntax error on line 53 ...
- MySQL 启动slave报错 ERROR 1201 (HY000)
- 解决在启动tornado仿真器出现的错误:error :simulator failed to initialize before timeout
- 双系统启动Ubuntu的时候出现 error: file '/boot/grub/i386-pc/normal.mod' not found.grub rescue>
- NBU客户端备份失败,报错error 48 client hostname could not be found
- Linux启动时 Error 15: File not found 问题解决方法
- oracle主机ip修改无法正常启动,报错:ORA-00600:internal error code
- Linux启动时 Error 15: File not found 问题解决方法
- 整合Struts2+SiteMesh+Spring+MyFaces(JSF)+Freemarker的时候启动服务器报错ClassNotFoundException: org.apache.struts2.sitemesh.FreeMarkerPageFilter
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- archlinux 启动错误: Error 15: File not found
- ArcSDE服务启动错误:Error (-327), No ArcSDE server license found.
- Linux启动时 Error 15: File not found 问题解决方法