- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
你好我正在使用带有 2 个节点的 hadoop 0.23.9当我尝试单节点时它工作正常但是当我尝试测试字数统计作业时,我得到以下结果,但我不知道错误在哪里
我在两台 PC 上都使用 ubuntu 12.04 LTS
mapred-site.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
yarn-site.xml
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce.shuffle</value>
</property>
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>master:8031</value>
</property>
<property>
<name>yarn.resourcemanager.address</name>
<value>master:8032</value>
</property>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapreduce.job.tracker</name>
<value>master</value>
</property>
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce.shuffle</value>
</property>
<property>
<name>yarn.resourcemanager.scheduler.address</name>
<value>master:8030</value>
</property>
<property>
<name>yarn.resourcemanager.address</name>
<value>master:8032</value>
</property>
<property>
<name>yarn.nodemanager.address</name>
<value>0.0.0.0:8042</value>
</property>
</configuration>
这里是ubuntu的hosts文件
127.0.0.1 localhost
127.0.1.1 fatima1-HP-ProBook-4530s
192.168.1.10 master
192.168.1.11 slave
#the following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
14/04/25 15:41:39 INFO input.FileInputFormat: Total input paths to process : 7
14/04/25 15:41:39 WARN snappy.LoadSnappy: Snappy native library not loaded
14/04/25 15:41:39 INFO mapreduce.JobSubmitter: number of splits:7
14/04/25 15:41:39 WARN conf.Configuration: mapred.jar is deprecated. Instead, use mapreduce.job.jar
14/04/25 15:41:39 WARN conf.Configuration: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
14/04/25 15:41:39 WARN conf.Configuration: mapreduce.combine.class is deprecated. Instead, use mapreduce.job.combine.class
14/04/25 15:41:39 WARN conf.Configuration: mapreduce.map.class is deprecated. Instead, use mapreduce.job.map.class
14/04/25 15:41:39 WARN conf.Configuration: mapred.job.name is deprecated. Instead, use mapreduce.job.name
14/04/25 15:41:39 WARN conf.Configuration: mapreduce.reduce.class is deprecated. Instead, use mapreduce.job.reduce.class
14/04/25 15:41:39 WARN conf.Configuration: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
14/04/25 15:41:39 WARN conf.Configuration: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
14/04/25 15:41:39 WARN conf.Configuration: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
14/04/25 15:41:39 WARN conf.Configuration: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
14/04/25 15:41:39 WARN conf.Configuration: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir
14/04/25 15:41:39 INFO mapred.ResourceMgrDelegate: Submitted application application_1398429615167_0001 to ResourceManager at master/192.168.1.10:8032
14/04/25 15:41:39 INFO mapreduce.Job: The url to track the job: `http://master:8088/proxy/application_1398429615167_0001/`
14/04/25 15:41:39 INFO mapreduce.Job: Running job: job_1398429615167_0001
14/04/25 15:41:46 INFO mapreduce.Job: Job job_1398429615167_0001 running in uber mode : false
14/04/25 15:41:46 INFO mapreduce.Job: map 0% reduce 0%
14/04/25 15:41:47 INFO mapreduce.Job: Task Id : attempt_1398429615167_0001_m_000006_0, Status : FAILED
Container launch failed for container_1398429615167_0001_01_000008 : java.lang.reflect.UndeclaredThrowableException
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:111)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:157)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.google.protobuf.ServiceException: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: `http://wiki.apache.org/hadoop/UnknownHost`
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:144)
at com.sun.proxy.$Proxy28.startContainer(Unknown Source)
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:104)
... 5 more
Caused by: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: `http://wiki.apache.org/hadoop/UnknownHost`
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:713)
at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:238)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1194)
at org.apache.hadoop.ipc.Client.call(Client.java:1074)
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:141)
... 7 more
Caused by: java.net.UnknownHostException
... 11 more
14/04/25 15:41:49 INFO mapreduce.Job: Task Id : attempt_1398429615167_0001_m_000006_1, Status : FAILED
Container launch failed for container_1398429615167_0001_01_000009 : java.lang.reflect.UndeclaredThrowableException
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:111)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:157)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.google.protobuf.ServiceException: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: `http://wiki.apache.org/hadoop/UnknownHost`
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:144)
at com.sun.proxy.$Proxy28.startContainer(Unknown Source)
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:104)
... 5 more
Caused by: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: http://wiki.apache.org/hadoop/UnknownHost
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:713)
at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:238)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1194)
at org.apache.hadoop.ipc.Client.call(Client.java:1074)
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:141)
... 7 more
Caused by: java.net.UnknownHostException
... 11 more
14/04/25 15:41:51 INFO mapreduce.Job: Task Id : attempt_1398429615167_0001_m_000006_2, Status : FAILED
Container launch failed for container_1398429615167_0001_01_000010 : java.lang.reflect.UndeclaredThrowableException
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:111)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:157)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.google.protobuf.ServiceException: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: `http://wiki.apache.org/hadoop/UnknownHost`
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:144)
at com.sun.proxy.$Proxy28.startContainer(Unknown Source)
at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:104)
... 5 more
Caused by: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":45527; java.net.UnknownHostException; For more details see: `http://wiki.apache.org/hadoop/UnknownHost`
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:713)
at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:238)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1194)
at org.apache.hadoop.ipc.Client.call(Client.java:1074)
at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:141)
... 7 more
Caused by: java.net.UnknownHostException
... 11 more
14/04/25 15:41:53 INFO mapreduce.Job: map 14% reduce 0%
14/04/25 15:41:53 INFO mapreduce.Job: Job job_1398429615167_0001 failed with state FAILED due to: Task failed task_1398429615167_0001_m_000006
Job failed as tasks failed. failedMaps:1 failedReduces:0
14/04/25 15:41:53 INFO mapreduce.Job: Counters: 5
Job Counters
Launched map tasks=6
Other local map tasks=3
Data-local map tasks=7
Total time spent by all maps in occupied slots (ms)=0
Total time spent by all reduces in occupied slots (ms)=0
最佳答案
您的主机名在/etc/hosts 中设置不正确。您应该完全删除以下行。
127.0.1.1 fatima1-HP-ProBook-4530s
然后在本地主机条目之后添加您的实际 IP 地址。您的/etc/hosts 文件应该如下所示。注意:我假设这是主人,我可能是错的,在这种情况下用实际的 IP 地址替换它。还要检查目标机器的/etc/hosts 文件。
127.0.0.1 localhost
192.168.1.10 fatima1-HP-ProBook-4530s
192.168.1.10 master
192.168.1.11 slave
the following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
完成后,您需要重启机器并重新启动 hadoop
编辑:您的 core-site.xml 必须具有正确的主/从条目,如下所示。您可能在 core-site.xml 中设置了其他属性,这很好。但在分布式模式下,您需要指定一个 fs.default.name 作为主控或从属。
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://master:9000</value>
</property>
</configuration>
关于apache - 我在测试hadoop多节点集群时遇到了一些问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23294665/
SQLite、Content provider 和 Shared Preference 之间的所有已知区别。 但我想知道什么时候需要根据情况使用 SQLite 或 Content Provider 或
警告:我正在使用一个我无法完全控制的后端,所以我正在努力解决 Backbone 中的一些注意事项,这些注意事项可能在其他地方更好地解决......不幸的是,我别无选择,只能在这里处理它们! 所以,我的
我一整天都在挣扎。我的预输入搜索表达式与远程 json 数据完美配合。但是当我尝试使用相同的 json 数据作为预取数据时,建议为空。点击第一个标志后,我收到预定义消息“无法找到任何内容...”,结果
我正在制作一个模拟 NHL 选秀彩票的程序,其中屏幕右侧应该有一个 JTextField,并且在左侧绘制弹跳的选秀球。我创建了一个名为 Ball 的类,它实现了 Runnable,并在我的主 Draf
这个问题已经有答案了: How can I calculate a time span in Java and format the output? (18 个回答) 已关闭 9 年前。 这是我的代码
我有一个 ASP.NET Web API 应用程序在我的本地 IIS 实例上运行。 Web 应用程序配置有 CORS。我调用的 Web API 方法类似于: [POST("/API/{foo}/{ba
我将用户输入的时间和日期作为: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); TimePicker tp = (TimePic
放宽“邻居”的标准是否足够,或者是否有其他标准行动可以采取? 最佳答案 如果所有相邻解决方案都是 Tabu,则听起来您的 Tabu 列表的大小太长或您的释放策略太严格。一个好的 Tabu 列表长度是
我正在阅读来自 cppreference 的代码示例: #include #include #include #include template void print_queue(T& q)
我快疯了,我试图理解工具提示的行为,但没有成功。 1. 第一个问题是当我尝试通过插件(按钮 1)在点击事件中使用它时 -> 如果您转到 Fiddle,您会在“内容”内看到该函数' 每次点击都会调用该属
我在功能组件中有以下代码: const [ folder, setFolder ] = useState([]); const folderData = useContext(FolderContex
我在使用预签名网址和 AFNetworking 3.0 从 S3 获取图像时遇到问题。我可以使用 NSMutableURLRequest 和 NSURLSession 获取图像,但是当我使用 AFHT
我正在使用 Oracle ojdbc 12 和 Java 8 处理 Oracle UCP 管理器的问题。当 UCP 池启动失败时,我希望关闭它创建的连接。 当池初始化期间遇到 ORA-02391:超过
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve
引用这个plunker: https://plnkr.co/edit/GWsbdDWVvBYNMqyxzlLY?p=preview 我在 styles.css 文件和 src/app.ts 文件中指定
为什么我的条形这么细?我尝试将宽度设置为 1,它们变得非常厚。我不知道还能尝试什么。默认厚度为 0.8,这是应该的样子吗? import matplotlib.pyplot as plt import
当我编写时,查询按预期执行: SELECT id, day2.count - day1.count AS diff FROM day1 NATURAL JOIN day2; 但我真正想要的是右连接。当
我有以下时间数据: 0 08/01/16 13:07:46,335437 1 18/02/16 08:40:40,565575 2 14/01/16 22:2
一些背景知识 -我的 NodeJS 服务器在端口 3001 上运行,我的 React 应用程序在端口 3000 上运行。我在 React 应用程序 package.json 中设置了一个代理来代理对端
我面临着一个愚蠢的问题。我试图在我的 Angular 应用程序中延迟加载我的图像,我已经尝试过这个2: 但是他们都设置了 src attr 而不是 data-src,我在这里遗漏了什么吗?保留 d
我是一名优秀的程序员,十分优秀!