- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我是hadoop的新手,所以我有一些疑问。如果主节点发生故障,hadoop 集群会发生什么?我们能否在没有任何损失的情况下恢复该节点?是否可以保留一个辅助主节点在当前主节点发生故障时自动切换为主节点?
我们有namenode(Secondary namenode)的备份,所以我们可以在Secondary namenode发生故障时从中恢复namenode。这样,当datanode发生故障时,我们如何恢复datanode中的数据呢? Secondary namenode只是namenode的备份而不是datenode,对吧?如果一个节点在作业完成之前发生故障,那么作业跟踪器中有待处理的作业,该作业是继续还是从空闲节点中的第一个重新开始?
万一出事怎么恢复整个集群的数据呢?
最后一个问题,我们可以在 Mapreduce 中使用 C 程序吗(例如,在 mapreduce 中使用冒泡排序)?
提前致谢
最佳答案
虽然,现在回答您的问题为时已晚,但它可能会帮助其他人..
首先让我向您介绍辅助名称节点:
It Contains the name space image, edit log files' back up for past one hour (configurable). And its work is to merge latest Name Node NameSpaceImage and edit logs files to upload back to Name Node as replacement of the old one. To have a Secondary NN in a cluster is not mandatory.
现在解决您的问题..
如果主节点发生故障,hadoop 集群会发生什么情况?
Supporting Frail's answer, Yes hadoop has single point of failure so whole of your currently running task like Map-Reduce or any other that is using the failed master node will stop. The whole cluster including client will stop working.
我们能否在没有任何损失的情况下恢复该节点?
That is hypothetical, Without loss it is least possible, as all the data (block reports) will lost which has sent by Data nodes to Name node after last back up taken by secondary name node. Why I mentioned least, because If name node fails just after a successful back up run by secondary name node then it is in safe state.
是否可以保持从主节点在当前主节点出现故障时自动切换为主节点?
It is staright possible by an Administrator (User). And to switch it automatically you have to write a native code out of the cluster, Code to moniter the cluster that will cofigure the secondary name node smartly and restart the cluster with new name node address.
我们有namenode(Secondary namenode)的备份,所以我们可以在Secondary namenode发生故障时从中恢复namenode。像这样,当datanode发生故障时,如何恢复datanode中的数据?
It is about replication factor, We have 3 (default as best practice, configurable) replicas of each file block all in different data nodes. So in case of failure for time being we have 2 back up data nodes. Later Name node will create one more replica of the data that failed data node contained.
secondary namenode 只是 namenode 的备份,而不是 datenode,对吧?
Right. It just contains all the metadata of data nodes like data node address,properties including block report of each data node.
如果一个节点在作业完成前发生故障,那么作业跟踪器中有待处理的作业,该作业是继续还是从空闲节点中的第一个重新开始?
HDFS will forcely try to continue the job. But again it depends on replication factor, rack awareness and other configuration made by admin. But if following Hadoop's best practices about HDFS then it will not get failed. JobTracker will get replicated node address to continnue.
万一出现问题,如何恢复整个集群的数据?
By Restarting it.
最后一个问题,我们可以在 Mapreduce 中使用 C 程序吗(例如,在 mapreduce 中使用冒泡排序)?
yes, you can use any programming language which support Standard file read write operations.
我刚刚试了一下。希望它能对您和其他人有所帮助。
*欢迎提出建议/改进。*
关于Hadoop Datanode、namenode、secondary-namenode、job-tracker 和 task-tracker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7817391/
我正在制作一个简单的跳棋游戏并设置了网格系统,我只想开始设置下面类中显示的参数; #include #include using namespace std; class Tracker { pr
我使用的是 Arch Linux,内核 3.16。 从上周开始,我的两个进程 tracker-extract 和 tracker-store 占用了过多的内存。导致系统每 2 小时挂起一次。 trac
我在单个节点上安装了 hadoop。我使用的操作系统是 Ubuntu。我已经非常成功地为 1st 创建了一个 hduser。当我删除现有的 hduser 并在同一系统中创建一个新的 hduser 时,
在我的 hadoop 安装中,我没有找到 mapred-site.xml 文件,但它有 mapred-site.xml.template。 我已将以下属性添加到 mapred.xml.template
我是hadoop的新手,所以我有一些疑问。如果主节点发生故障,hadoop 集群会发生什么?我们能否在没有任何损失的情况下恢复该节点?是否可以保留一个辅助主节点在当前主节点发生故障时自动切换为主节点?
我已将其发布为issue on GitHub opencv_contrib,但尚未回复。 系统信息(版本) OpenCV => 4.2.0 操作系统/平台=> Windows 10,64位 编译器=>
我正在 laravel 5.2 中安装 Laravel Stats Tracker,并添加我的提供者和门面,设置我的中间件文件、kernel.php 和 config/database.php 文件。
我遇到与Tracker相关的问题。 [InvalidOperationException: Tracker.Current is not initialized] Sitecore.Analyt
Closed. This question is off-topic。它当前不接受答案。 想改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic。 7年前关
iOS 上的 Xcode VM Tracker 检测工具中的“交换大小”是什么? iOS 10 有交换功能吗? 最佳答案 它指的是压缩内存,这是iOS处理未使用页面的方式。来源:https://dev
看Tracker.autorun ,这主要是神奇的......但我想知道它如何决定哪些变量将形成计算的依赖关系。它只挑选出“ react 性”变量,例如以下内容: window.bar = 1
我正在使用 Template.onCreated 创建一些模板,然后使用 Tracker.autorun 进行一些订阅,然后从服务器收集数据并将它们存储在客户端的 MiniMongo 上。 然后,我可
我有这样一个 Meteor 应用程序示例: import React from 'react'; import { Meteor } from 'meteor/meteor'; import { re
我有一个已经存在多年的开源 gps 跟踪应用程序。最近,我一直在提示,在 android nougat 中,人们不是每分钟获取一次更新,而是当手机拔下时每五分钟从手机获取一次更新. 尽管我们尝试将其关
我一直在尝试测试新的 Vision API,并让多跟踪器应用在 Android Studio 中运行。 我在手机上运行示例应用程序,但无法检测到任何条形码。我已经测试了 ISBN 码、QR 码和人脸。
我在 mapred-site.xml 中做了一些条目,要选择这些更改,我需要重新启动在集群节点上运行的 TT 和 JT。 我可以从命令行使用云时代管理器 Web 服务重新启动它们吗?因此,我可以在任何
我在足球视频中遇到了一些与 SORT 跟踪器(卡尔曼滤波器和匈牙利算法的组合)与 YOLO v3 相结合相关的问题。正如主论文中也提到的,SORT 在身份切换方面遭受了很多损失(换句话说,即使跟踪对象
我想使用 SDK v4 在 Google Analytics(分析)中设置用户范围维度。该维度的值在运行时永远不会改变。 当我创建维度 following this instructions 时该页面
本文整理了Java中org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker类的一些代码示例,展示了ZooKeeperTreeTracker类的具体用法。
尝试在 Tracker 中将文件(图像)附加到工件上时出现错误: 2018/07/11 13:16:04 [error] 3553#0: *1299 FastCGI sent in stderr: "
我是一名优秀的程序员,十分优秀!