首页 \ 问答 \ Namenode不检测datanodes故障(Namenode doesn't detect datanodes failure)

Namenode不检测datanodes故障(Namenode doesn't detect datanodes failure)

我建立了一个Hadoop高可用集群,包括3个节点作为主节点(3个日志节点,活动名称节点和备用名称节点,没有辅助名称节点)和3个数据节点。 使用命令

hadoop-daemon.sh start journalnode hadoop-daemon.sh start namenode hadoop-daemon.sh start zkfc

我启动namenode服务并使用命令hadoop-daemon.sh start datanode我启动datanode服务。

问题是,当我停止datanode故意使用命令hadoop-daemon.sh stop datanode ,即使在几分钟后,在namenodes的WebUI,(主动和待机),它仍然被视为一个活动节点,我认为namenodes不检测datanode的失败!


I have set up a Hadoop high available cluster including 3 nodes as masters (3 journal nodes, active namenode, and standby namenode, with no secondary namenode) and 3 datanodes. using commands

hadoop-daemon.sh start journalnode hadoop-daemon.sh start namenode hadoop-daemon.sh start zkfc

I start namenode services and using command hadoop-daemon.sh start datanode I start datanode services.

The problem is when I stop a datanode intentionally using command hadoop-daemon.sh stop datanode, In the namenodes WebUI,(both active and standby) even after some minutes, it is still considered as an alive node and I think namenodes don't detect datanode's failure!


原文:https://stackoverflow.com/questions/48354481
更新时间:2022-10-07 20:10

最满意答案

问题的脚本是完美的,只是不适合爆炸的地方。


The script from the question is working perfect, just not the right place to explode it.

相关问答

更多
  • app / Mage / Catalog / Model / Resource / Layer / Filter / Attribute.php存在问题 用以下内容换掉你的课程,应该解决它的问题。 class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract { /** * Initialize connection and define main table na ...
  • 问题的脚本是完美的,只是不适合爆炸的地方。 The script from the question is working perfect, just not the right place to explode it.
  • 那么,你可以做的是,用一个集合(通过一个模型)创建你自己的帮助器,然后根据产品数量过滤集合。 只是粗略的草稿,但我在另一个与magento相关的问题中发布了一些代码: 按类别划分的Magento产品 。 您可以看到它如何以及何时添加产品数量,我会在完成后再次过滤。 我不认为这在性能方面非常“好”,因此您可以编写自己的,扩展它并添加默认过滤器或直接快捷方式到数据库,而不是使用它们的模型类。 只要您留在皮肤/模板中,更新就没有更大的问题。 Well, what you can do is, create you ...
  • 首先你需要刷新所有Cache你可以从admin-> system-> Cache Management现在点击“Flush Magento Cache”按钮 其次你需要索引你可以从管理 - >系统 - >索引管理 选择所有索引并选择reindex数据并单击提交按钮现在检查它应该工作的主页。确保您的产品应该有库存并且状态=启用。 First you need to flush all Cache you can do it form admin->system->Cache Management now cl ...
  • 尝试进入:系统 - >导入 - >选择项目类型 - >填充输入 - >选择一个文件进行导入(csv)。 遵循本指南 Try to go to: System --> Import --> Choose type of items --> Filled the input --> Select a file for import (csv). Follow this guide
  • 首先,转到“CMS”>“页面”>选择“主页”(URL键:主页)。 单击“设计”将以下XML更新粘贴到提供的字段中:
    点击“重置过滤器”,系统会显示所有产品。 选择所需的产品并保存并继续。 Click 'reset filter' and all products should show up. Select the products you want and save and continue.
  • 我并没有完全遵循你想要做的事情,但我知道你为什么会得到你的错误。 您正在创建一个类别名/类的块 catalog/product_view Mage_Catalog_Block_Product_View 但是你将这个块的模板设置为 catalog/product/list/related.phtml 库存catalog/product/list/related.phtml模板构建为仅与catalog/product_list_related块一起使用 ,而不是与catalog/product_view块 ...
  • 当系统加载一个产品时,它将默认加载所有静态属性。 静态属性存储在主实体表“catalog_product_entity”中,其他属性根据该属性的backen_type存储在相关表中。 例如,'name'存储在'catalog_product_entity_varchar'中。 addAttributeToSelect方法仅影响非静态属性,因此在您的情况下,您可以看到已加载的许多静态属性。 你可以尝试下面的代码: $prod_catalog = Mage::getModel("catalog/product" ...
  • 这不是Magento Community Edition(或Enterprise)中的“开箱即用”功能,因此您需要编写一些代码才能使其正常工作。 一般而言,您需要: 向产品添加(隐藏?)属性以存储产品“所有者”的用户ID。 编写catalog_product_save_before的事件观察器,将当前用户的User Id字段分配给新的产品所有者属性。 重写_prepareCollection或_addColumnFilterToCollection方法,将product_owner属性添加到集合中,并将其过 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)