首页 > 其他分享 >ambari-agent in not running

ambari-agent in not running

时间:2023-04-07 14:55:13浏览次数:42  
标签:ambari lib self py python2.6 agent running packages

ERROR 2023-04-06 09:24:25,787 Controller.py:453 - Controller thread failed with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 438, in run
    self.actionQueue = ActionQueue(self.config, controller=self)
  File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 85, in __init__
    self.customServiceOrchestrator = CustomServiceOrchestrator(config, controller)
  File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py", line 82, in __init__
    self.load_ClusterHostInfo()
  File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py", line 269, in load_ClusterHostInfo
    self.clusterHostInfo = json.load(f)
  File "/usr/lib/python2.6/site-packages/ambari_simplejson/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/lib/python2.6/site-packages/ambari_simplejson/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/site-packages/ambari_simplejson/decoder.py", line 335, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/site-packages/ambari_simplejson/decoder.py", line 353, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

#  cat -An /usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py|grep -A5 -B5 269
   264    $
   265    def load_ClusterHostInfo(self):$
   266      file_path = os.path.join(self.tmp_dir, "clusterHostInfo.json")$
   267      if os.path.isfile(file_path):$
   268        with open(file_path) as f:$
   269          self.clusterHostInfo = json.load(f)$
   270  $
   271    def requestComponentStatus(self, command):$
   272      """$
   273       Component status is determined by exit code, returned by runCommand().$
   274       Exit code 0 means that component is running and any other exit code means that$
   
find / -name clusterHostInfo.json
cd /var/lib/ambari-agent/data/

vim clusterHostInfo.json

标签:ambari,lib,self,py,python2.6,agent,running,packages
From: https://www.cnblogs.com/augusite/p/17296174.html

相关文章

  • CentOS7安装zabbix-agent
    一:系统要求1.centos72.zabbix服务器端5.0版本 二:安转和配置zabbix1.安装zabbix存储库#rpm-Uvhhttps://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm#yumcleanall2.安装zabbix代理#yuminstallzabbix-agent3.启动zabb......
  • angular项目启动报Another process, with id 24289, is currently running ngcc.
    在npmbuild时突然停下来,再启动就启不起来了。看报错信息是端口被占用,在任务管理器中也找不到这个端口重启vscode、重启电脑都不好使。。可以通过删除node_modules再重新npminstall解决! ......
  • wgcloud监控agent批量版本升级脚本
    [root@masterserver]#catallupdate_agent.shusername="root"passwd="Oet01279"port="22"timeout=5cmd="cd/home/wgcloud/agent-linux-amd64-v3.4.4&&wget--no-check-certificatehttp://192.168.0.13:9090/wgcloud/resource......
  • jenkins添加agent打包
    背景公司有很多项目,经常使用jenkins并行构建代码,但是因为都是同一台jenkins上构建,并行任务多了就影响效率,一个工程用时15分钟,如果两个同时构建可能每个人都得25分钟才能完成,于是我就想添加一台agent来分担压力,以下是具体操作步骤。1、准备一台linux主机准备一台linux主机,安装git......
  • Magento 1.9.X 系列教程
    Magento安装下载教学:Magento教程1:免费购物车系统,轻松建立Magento第一步!Magento教程2:Magento社群版安装教学!Magento教程3:如何在Magento社群版(CommunityEdition)安装范例资料?Magento工作流程:Magento教程4:主机环境准备Magento教程5:系统安装与备份Magento教程6:商店设定与参数......
  • magento 获取产品的属性值
    magento采用强大的EAV设计方法,我们可以很方便的给商品添加任意数量的属性,那如何在前台获取这些属性值呢? magento同样提供了很方便的方式来读取它。使用$_product->getAttributeName()或者$_product['AttributeName']就可以获得指定名字属性的值,以颜色属性color为例,可以这样写 ......
  • magento 在产品页添加评论 Add Review Form in Magento Product View Page
    Magento产看产品评论需要点击到另外一个页面中,这种设计对于用户体验和SEO都相当不利。一方面用户无法在产品页面查看该产品的一些用户评价,另外,搜索引擎也会收录很多与产品无关的页面。那么如何让产品评论直接显示在产品页面呢?我们需要修改一下模板文件,很简单即可实现。 首先,在lay......
  • magento 高级搜索 brand实例 Magento ‘Shop By Brand’ in SideBar
    高级搜索地址一般为:/catalogsearch/advanced/ Firstcreatethetemplatefileandnameitproductbrand.phtmlplaceitincatalog/productfoldercopythecodegivenbelowandpasteritinyouproductbrand.phtml Note:Pleasechnage‘yourdomain.com’withyoursit......
  • magento 问题解答 FQA
    1.IsthereawaybymysqltosetALLproductvisibilitytocatalog,search? 批量修改产品可见 openuptheeav_attributetableandfindtherowwhereattribute_code=visibility.Takenoteoftheattribute_id,mostlikelyitwillbe85.Alsotakenotetha......
  • 深入理解Magento – 第七章 – 自定义Magento系统配置
    深入理解Magento作者:AlanStorm翻译:HailongZhang第七章–自定义Magento系统配置Magento拥有十分强大的后台管理系统。作为一名开发人员,这套后台管理系统可以让你的用户简单直接的配置Magento系统或者你创建的模块。和Magento的其他功能一样,你第一次使用这套管理系统的时候可......