首页
\
问答
\
Hadoop MapReduce错误:Mkdirs无法创建文件;(Hadoop MapReduce error: Mkdirs failed to create file; job failed)
Hadoop MapReduce错误:Mkdirs无法创建文件;(Hadoop MapReduce error: Mkdirs failed to create file; job failed)
我试图在Hadoop上执行C4.5算法。 但是,我遇到了问题,并坚持以下错误。 我拥有所有权限。 有人可以帮帮我吗?
Java.lang.Exception: java.io.IOException: Mkdirs failed to create file:/usr/local/hadoop/1/output10/_temporary/0/_temporary/attempt_local960306821_0001_r_000000_0 (exists=false, cwd=file:/home/brina/workspace/C4.5Hadoop) at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:529) Caused by: java.io.IOException: Mkdirs failed to create file:/usr/local/hadoop/1/output10/_temporary/0/_temporary/attempt_local960306821_0001_r_000000_0 (exists=false, cwd=file:/home/brina/workspace/C4.5Hadoop) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:442) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:428) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:908) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:801) at org.apache.hadoop.mapred.TextOutputFormat.getRecordWriter(TextOutputFormat.java:123) at org.apache.hadoop.mapred.ReduceTask$OldTrackingRecordWriter.<init>(ReduceTask.java:484) at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:414) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:392) at org.apache.hadoop.mapred.LocalJobRunner$Job$ReduceTaskRunnable.run(LocalJobRunner.java:319) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:745) 2016-03-12 19:08:04,332 INFO [main] mapreduce.Job (Job.java:monitorAndPrintJob(1386)) - Job job_local960306821_0001 failed with state FAILED due to: NA 2016-03-12 19:08:04,492 INFO [main] mapreduce.Job (Job.java:monitorAndPrintJob(1391)) - Counters: 33 File System Counters FILE: Number of bytes read=523 FILE: Number of bytes written=249822 FILE: Number of read operations=0 FILE: Number of large read operations=0 FILE: Number of write operations=0 Map-Reduce Framework Map input records=14 Map output records=56 Map output bytes=863 Map output materialized bytes=981 Input split bytes=93 Combine input records=0 Combine output records=0 Reduce input groups=0 Reduce shuffle bytes=981 Reduce input records=0 Reduce output records=0 Spilled Records=56 Shuffled Maps =1 Failed Shuffles=0 Merged Map outputs=1 GC time elapsed (ms)=0 CPU time spent (ms)=0 Physical memory (bytes) snapshot=0 Virtual memory (bytes) snapshot=0 Total committed heap usage (bytes)=188743680 Shuffle Errors BAD_ID=0 CONNECTION=0 IO_ERROR=0 WRONG_LENGTH=0 WRONG_MAP=0 WRONG_REDUCE=0 File Input Format Counters Bytes Read=374 File Output Format Counters Bytes Written=0 Exception in thread "main" java.io.IOException: Job failed! at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:836) at C45.run(C45.java:192) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at C45.main(C45.java:53)
I am trying to execute C4.5 algorithm on Hadoop. However, I am facing problems and am stuck on the following error. I have all the permissions right. Can anyone PLEASE help me out?
Java.lang.Exception: java.io.IOException: Mkdirs failed to create file:/usr/local/hadoop/1/output10/_temporary/0/_temporary/attempt_local960306821_0001_r_000000_0 (exists=false, cwd=file:/home/brina/workspace/C4.5Hadoop) at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:529) Caused by: java.io.IOException: Mkdirs failed to create file:/usr/local/hadoop/1/output10/_temporary/0/_temporary/attempt_local960306821_0001_r_000000_0 (exists=false, cwd=file:/home/brina/workspace/C4.5Hadoop) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:442) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:428) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:908) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:801) at org.apache.hadoop.mapred.TextOutputFormat.getRecordWriter(TextOutputFormat.java:123) at org.apache.hadoop.mapred.ReduceTask$OldTrackingRecordWriter.<init>(ReduceTask.java:484) at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:414) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:392) at org.apache.hadoop.mapred.LocalJobRunner$Job$ReduceTaskRunnable.run(LocalJobRunner.java:319) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:745) 2016-03-12 19:08:04,332 INFO [main] mapreduce.Job (Job.java:monitorAndPrintJob(1386)) - Job job_local960306821_0001 failed with state FAILED due to: NA 2016-03-12 19:08:04,492 INFO [main] mapreduce.Job (Job.java:monitorAndPrintJob(1391)) - Counters: 33 File System Counters FILE: Number of bytes read=523 FILE: Number of bytes written=249822 FILE: Number of read operations=0 FILE: Number of large read operations=0 FILE: Number of write operations=0 Map-Reduce Framework Map input records=14 Map output records=56 Map output bytes=863 Map output materialized bytes=981 Input split bytes=93 Combine input records=0 Combine output records=0 Reduce input groups=0 Reduce shuffle bytes=981 Reduce input records=0 Reduce output records=0 Spilled Records=56 Shuffled Maps =1 Failed Shuffles=0 Merged Map outputs=1 GC time elapsed (ms)=0 CPU time spent (ms)=0 Physical memory (bytes) snapshot=0 Virtual memory (bytes) snapshot=0 Total committed heap usage (bytes)=188743680 Shuffle Errors BAD_ID=0 CONNECTION=0 IO_ERROR=0 WRONG_LENGTH=0 WRONG_MAP=0 WRONG_REDUCE=0 File Input Format Counters Bytes Read=374 File Output Format Counters Bytes Written=0 Exception in thread "main" java.io.IOException: Job failed! at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:836) at C45.run(C45.java:192) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at C45.main(C45.java:53)
原文:https://stackoverflow.com/questions/35958682
更新时间:2023-06-17 14:06
最满意答案
您需要了解一些事项:
- 您的设备是否包含在配置文件中?
- 是否在设备上安装了配置文件?
- 你在编译什么操作系统? 当您的设备为5.1时,可能您的部署目标设置为6.0。 您的设备必须至少与部署目标版本相同或更高。
There are a few things you need to look into:
- Is your device included in the provisioning profile?
- Is the provisioning profile installed on the device?
- What OS are you compiling for? Maybe your Deployment target is set to 6.0 while your device is 5.1. Your device needs to be at least the same version or higher than your deployment target.
相关问答
更多-
请阅读以下内容,希望对您有所帮助。 (参考http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html ) Handling View Rotations 在iOS 6 ,您的应用程序支持应用程序的Info.plist文件中定义的界面方向。 A view controller can override the supportedInte ...
-
你在问哪里找到它 : 在XCode 4中有一个新的按钮 - 寻找大的 “管理器按钮” 这是最高的。 物理连接您的设备,然后单击设备。 似乎新的“组织者按钮”是向XCode4过渡中的“最错过”的事情之一。 请注意,提问者问:“我应该在哪里寻求改正?” You're asking where to find it: In XCode 4 there is a new button - look for the big "Organizer button" which is at the TOP RIGHT. P ...
-
要获得Snow Leopard上的Xcode 4.2,可在运行iOS 5.1的设备上运行代码,您可以执行以下操作: 如果您有另一台Mac运行Lion和Xcode 4.3.1,您可以从以下文件复制: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1(9B176) 将复制的文件放在您的雪豹Mac上的相当的地方:大概 /Developer/Platforms/iPhoneOS.platf ...
-
您需要了解一些事项: 您的设备是否包含在配置文件中? 是否在设备上安装了配置文件? 你在编译什么操作系统? 当您的设备为5.1时,可能您的部署目标设置为6.0。 您的设备必须至少与部署目标版本相同或更高。 There are a few things you need to look into: Is your device included in the provisioning profile? Is the provisioning profile installed on the device? W ...
-
Xcode 4.4.1,iOS 5.1:Xcode无法使用所选设备运行(Xcode 4.4.1, iOS 5.1: Xcode cannot run using the selected device)[2023-08-14]
它可能是iOS版本的问题,我也遇到了同样的问题之前和我做的是刚刚将我的部署目标更改为Device OS版本。 要使用以下方法。 转到Target-->Summary-->Deployment Target -->Select the Version. 和Project-->info-->iOS Deployment target -->Select your Version. It may be iOS Version problem , I also encountered same problem Be ... -
解决方案:它的Xcode 5.1已经崩溃,并且有一个重大的bug。 如果您允许Xcode5下载配置文件,它现在会内部损坏它下载的任何开发者配置文件。 如果你改为: 退出Xcode 登录到Dev Center的网页版 手动下载配置文件 使用iPhone配置实用程序安装 重新启动Xcode ...一切正常。 注意:如果你曾经在Xcode 5.1中下载过 ,那么没有任何重新启动会帮助你:(。 谢谢,苹果。 Solution: it's Xcode 5.1 that is broken, with a major ...
-
您的假设是正确的:如果您观看Xcode发行说明( http://developer.apple.com/library/ios/#releasenotes/DeveloperTools/RN-Xcode/index.html ),您会看到添加了iOS SDK 6.1使用Xcode 4.6。 Your asumption is right : if you watch the Xcode release notes ( http://developer.apple.com/library/ios/#relea ...
-
在Xcode选项中,选择Window> Devices,查看是否创建了模拟器。 如果没有,您需要根据您需要的模拟器创建模拟器。 In the Xcode options select Window>Devices and see if the simulators are created. If not, you would need to create simulators depending on which one you need.
-
xcode 4.3能够在运行iOS 5.1的设备上运行应用程序 您需要升级当前版本..(注意:Xcode 4.3及更高版本仅适用于Mac OSX Lion) xcode 4.3 is able to run app on devices running iOS 5.1 You need to upgrade you current version..(Note :Xcode 4.3 and above are only available for Mac OSX Lion)
-
我发现的问题是,在Info.plist文件中,可执行文件(CFBundleExecutable)被硬编码为“MyAppName”。 当我更改项目名称和目标名称以及方案名称时,此硬编码值未更改,但仍包含原始应用程序名称。 所以我将Info.plist文件中的可执行文件(CFBundleExecutable)更改为此常量: ${EXECUTABLE_NAME} 问题解决了:) 编辑: 我在另一个项目上再次出现问题,但上面已经设置为$ {EXECUTABLE_NAME}。 所以我去搜索并发现在Build ...