- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
所以我从从属虚拟机列表中删除了 vm4,当我运行以下命令时它不会访问它
hdfs dfsadmin -report
结果是:
ubuntu@anmol-vm1-new:~$ hdfs dfsadmin -report
15/12/14 06:56:12 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Configured Capacity: 1268169326592 (1.15 TB)
Present Capacity: 1199270457337 (1.09 TB)
DFS Remaining: 1199213064192 (1.09 TB)
DFS Used: 57393145 (54.73 MB)
DFS Used%: 0.00%
Under replicated blocks: 27
Blocks with corrupt replicas: 0
Missing blocks: 0
-------------------------------------------------
Datanodes available: 3 (3 total, 0 dead)
Live datanodes:
Name: 10.0.1.191:50010 (anmol-vm2-new)
Hostname: anmol-vm2-new
Decommission Status : Normal
Configured Capacity: 422723108864 (393.69 GB)
DFS Used: 19005440 (18.13 MB)
Non DFS Used: 21501829120 (20.03 GB)
DFS Remaining: 401202274304 (373.65 GB)
DFS Used%: 0.00%
DFS Remaining%: 94.91%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Last contact: Mon Dec 14 06:56:12 UTC 2015
Name: 10.0.1.190:50010 (anmol-vm1-new)
Hostname: anmol-vm1-new
Decommission Status : Normal
Configured Capacity: 422723108864 (393.69 GB)
DFS Used: 19369984 (18.47 MB)
Non DFS Used: 25831350272 (24.06 GB)
DFS Remaining: 396872388608 (369.62 GB)
DFS Used%: 0.00%
DFS Remaining%: 93.88%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Last contact: Mon Dec 14 06:56:13 UTC 2015
Name: 10.0.1.192:50010 (anmol-vm3-new)
Hostname: anmol-vm3-new
Decommission Status : Normal
Configured Capacity: 422723108864 (393.69 GB)
DFS Used: 19017721 (18.14 MB)
Non DFS Used: 21565689863 (20.08 GB)
DFS Remaining: 401138401280 (373.59 GB)
DFS Used%: 0.00%
DFS Remaining%: 94.89%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Last contact: Mon Dec 14 06:56:11 UTC 2015
然而在某些时候 Yarn 会尝试访问它。这是我收到的日志:
yarn logs -applicationId application_1450050523156_0009
Service org.apache.tez.dag.app.rm.TaskScheduler failed in state STARTED; cause: java.lang.IllegalArgumentException: java.net.UnknownHostException: anmol-vm4-new
at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:377)
at org.apache.hadoop.yarn.server.security.BaseNMTokenSecretManager.newInstance(BaseNMTokenSecretManager.java:145)
at org.apache.hadoop.yarn.server.security.BaseNMTokenSecretManager.createNMToken(BaseNMTokenSecretManager.java:136)
at org.apache.hadoop.yarn.server.resourcemanager.security.NMTokenSecretManagerInRM.createAndGetOptimisticNMToken(NMTokenSecretManagerInRM.java:325)
at org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService.registerApplicationMaster(ApplicationMasterService.java:297)
at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationMasterProtocolPBServiceImpl.registerApplicationMaster(ApplicationMasterProtocolPBServiceImpl.java:90)
at org.apache.hadoop.yarn.proto.ApplicationMasterProtocol$ApplicationMasterProtocolService$2.callBlockingMethod(ApplicationMasterProtocol.java:95)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2014)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2010)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1561)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2008)
Caused by: java.net.UnknownHostException: anmol-vm4-new
... 15 more
知道为什么它试图访问不在从属列表中的 VM4 以及如何解决这个问题吗?
更新:我执行了以下操作,但仍然收到错误消息,因为它试图访问 vm4
:
1)在yarnpp的conf
目录下添加exclude
和mapred.exclude
文件,包括vm4的私有(private)IP地址。
2) 在 mapred-site.xml
中添加:
<property>
<name>mapred.hosts.exclude</name>
<value>/home/hadoop/yarnpp/conf/mapred.exclude</value>
<description>Names a file that contains the list of hosts that
should be excluded by the jobtracker. If the value is empty, no
hosts are excluded.</description>
</property>
3) 将此添加到 hdfs-site.xml
:
<property>
<name>dfs.hosts.exclude</name>
<value>/home/hadoop/yarnpp/conf/exclude</value>
<final>true</final>
</property>
3.5) 将此添加到 yarn-site.xml
:
<property>
<name>yarn.resourcemanager.nodes.exclude-path</name>
<value>/home/hadoop/yarnpp/conf/exclude</value>
<description>Path to file with nodes to exclude.</description>
</property>
4)运行cp_host.sh将conf目录复制到所有slave!
5) 运行 reboot_everything 脚本(执行 stop-all.sh
、格式化和 start-all.sh
)
6) hadoop dfsadmin -refreshNodes
7) 在主虚拟机中运行此命令:
yarn rmadmin -refreshNodes
这是新日志:http://pastebin.com/cKPY9gmB
现在有了所有这些更新,当我运行 gridmix-generate.sh
作业时,我得到了这个错误:
15/12/14 10:14:53 INFO ipc.Client: Retrying connect to server: anmol-vm3-new/10.0.1.192:50833. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
最佳答案
在聊天中与 Mona 交谈后,问题现已解决。
当一次运行 stop-all.sh 命令时,有时所有进程都可能不会停止。最好运行 ps -ef
命令以确保所有进程在所有节点上都已停止。 Monal 已运行命令 stop-all.sh 并运行命令 ps -ef|grep -i datanode
并且该命令仍在显示结果。
然后在聊天中,我要求她重新启动所有虚拟机,以清理悬空进程。硬重启已解决问题。
关于java - slave VM 从 slaves 列表中删除,并且仍然被 Yarn/Tez 访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34261325/
我想知道一个服务器是否可以同时是slave和master。我们的问题是我们有很多移动单元需要同步到主服务器,但它们只需要主服务器上 100 个表中的 6 个。除了延迟同步和增加数据成本之外,所有额外的
此站点上的许多帖子(例如 this、this 或 this)讨论了如何检测 Android 上丢失的蓝牙连接。本质上,一个人可以注册 Action 的广播 BluetoothAdapter.ACTIO
我有主从复制,我们有很多记录插入主服务器,以至于从服务器更新速度不够快。我们有 innodb,也许 slave 上的复制是单线程的。我想知道我们是否可以在数据库方面做些什么,而不是在编码或表结构等方面
正如标题所说,“从机启动”和“从机启动”有什么区别?当我接受DBA面试时,他问了这个问题,我搜索了google但没有找到答案,有人知道吗? 最佳答案 没有区别.. Slave start; 已弃用,现
我在设置主从配置时遇到困难。 Master Database 在 Ubuntu(亚马逊 AWS 实例)上运行并成功设置主复制。 我有本地主机作为从属服务器。 (Windows 机器)。 主数据库快照
我的权限被拒绝,但不知道为什么。从我的 Jenkins 大师那里,我能够使用 ssh-rsa-key 运行以下命令 scp /var/cache/jenkins/war/WEB-INF/slave.j
我计划在一台主服务器和几台从服务器上使用 MySQL 设置服务器。我会在其中一个从服务器上定期执行数据 EBS 的一致备份服务器(我总是会先停止数据库,然后在完成后重新启动它)。 从站故障转移 如果其
如果我使用 —expect-slaves 3 运行 headless Locust master,如果我连接 5 个 slave,master 会接受并使用所有连接的 slave 吗? 最佳答案 答案
当在有从属的从属的环境中使用 Redis 的复制功能时,connected_slaves 计数器是否会增加主控、充当主控的从属或两者?引用示例图:https://imgur.com/Ge1WLzX 在
我想配置slave以启用写入(slave-read-only no)。用例是启用临时缓存。 但是,文档中的这段让我担心: Normally slave nodes will redirect clie
我想设置一个 Linux 节点作为 Jenkins 主节点的从属节点。我正在浏览 the tutorial为 Linux 机器设置它。 Have master launch slave agent v
我现有的 jenkins 主从连接断开了。我尝试通过 scp 命令建立连接。 关于主人: scp ~/ .ssh/id_rsa.pub jenkins@:/tmp 在奴隶上: • ssh-keyg
所以我从从属虚拟机列表中删除了 vm4,当我运行以下命令时它不会访问它 hdfs dfsadmin -report 结果是: ubuntu@anmol-vm1-new:~$ hdfs dfsadmin
一.安装环境 这里也顺便记录一下如何在windows7上卸载解压版MySQL5.6数据库,如果无需卸载请忽略下一步,直接看第三步即可 二.windows7卸载解压版MySQL5.6 1.使
我已按照有关如何设置 Redis 主服务器集群的说明进行操作,但完成后我无法看到为什么服务器无法相互看到。这是我组装的第二个版本,我被困在同一个地方。我真的可以使用一些以前从未在 REDIS 上工作过
我有一个本地 Jenkins 服务器,我已经设置并为其创建了作业。我正在尝试注册新的 slave/build 机器,但 Jenkins 拒绝提供 slave.jar 或 slave-agent.jnl
我正在尝试在大型 redis 队列中使用哨兵进行故障转移(12 个哨兵,500 多个分片,每个分片一个主站和一个从站)。我遇到了一个非常奇怪的问题,我的哨兵反复向某些 redis 节点发出命令 +fi
我如何配置jenkins master slavemaster在linux上,slave在windows上我需要通过master在slave上执行一个文件我对 Jenkins 不太了解,所以我需要完整
如何将系统配置为有一个主多从,用 gmake 构建普通的 c 代码?从站如何从主站访问工作区?我想 NFS 共享是可行的,但如果这是不可能的任何 其他 选项? http://wiki.hudson-c
有没有人尝试过使用 Jenkins Rest/API 或任何其他方式在 Jenkins slave 的配置中添加或更新环境变量的方法。 使用 Jenkins Swarm 插件,我创建了一个从站(它使用
我是一名优秀的程序员,十分优秀!