分享

在线急等【求助】:hadoop:unable to create new native thread

zqge 发表于 2016-3-8 19:36:07 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 3 16215
求助:file:///file:/// Screenshot from 2016-03-08 19_27_41.png
卡在这里几个小时了,有哪位大神知道怎样解决吗

已有(3)人评论

跳转到指定楼层
zqge 发表于 2016-3-9 11:25:30
stderr logs

Exception in thread "main" org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:714)
        at org.apache.hadoop.mapred.JvmManager$JvmManagerForType$JvmRunner.kill(JvmManager.java:559)
        at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.killJvmRunner(JvmManager.java:317)
        at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.killJvm(JvmManager.java:297)
        at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.taskKilled(JvmManager.java:289)
        at org.apache.hadoop.mapred.JvmManager.taskKilled(JvmManager.java:158)
        at org.apache.hadoop.mapred.TaskRunner.kill(TaskRunner.java:802)
        at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.kill(TaskTracker.java:3315)
        at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.jobHasFinished(TaskTracker.java:3287)
        at org.apache.hadoop.mapred.TaskTracker.purgeTask(TaskTracker.java:2316)
        at org.apache.hadoop.mapred.TaskTracker.fatalError(TaskTracker.java:3710)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:587)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1432)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1428)
        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:1190)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1426)

        at org.apache.hadoop.ipc.Client.call(Client.java:1113)
        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229)
        at com.sun.proxy.$Proxy1.fatalError(Unknown Source)
        at org.apache.hadoop.mapred.Child.main(Child.java:310)
回复

使用道具 举报

zqge 发表于 2016-3-9 11:26:20
2016-03-09 11:03:20,331 INFO org.apache.hadoop.mapred.TaskLogsTruncater: Initializing logs' truncater with mapRetainSize=-1 and reduceRetainSize=-1
2016-03-09 11:03:20,760 FATAL org.apache.hadoop.mapred.Child: Error running child : java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:714)
        at org.apache.hadoop.util.Shell.runCommand(Shell.java:234)
        at org.apache.hadoop.util.Shell.run(Shell.java:182)
        at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:375)
        at org.apache.hadoop.util.Shell.execCommand(Shell.java:461)
        at org.apache.hadoop.util.Shell.execCommand(Shell.java:444)
        at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:712)
        at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:448)
        at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.getOwner(RawLocalFileSystem.java:431)
        at org.apache.hadoop.mapred.TaskLog.obtainLogDirOwner(TaskLog.java:267)
        at org.apache.hadoop.mapred.TaskLogsTruncater.truncateLogs(TaskLogsTruncater.java:124)
        at org.apache.hadoop.mapred.Child$4.run(Child.java:260)
        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:1190)
        at org.apache.hadoop.mapred.Child.main(Child.java:249)
回复

使用道具 举报

xuanxufeng 发表于 2016-3-9 13:28:42
本帖最后由 xuanxufeng 于 2016-3-9 13:30 编辑
zqge 发表于 2016-3-9 11:26
2016-03-09 11:03:20,331 INFO org.apache.hadoop.mapred.TaskLogsTruncater: Initializing logs' truncate ...

新的配置需要在里/etc/security/limits.d/90-nproc.conf设置生效。


[hdfs@hd0447-sw40 ~]$ cat /etc/security/limits.d/90-nproc.conf
# Default limit fornumber of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903for
reasoning.
*          soft    nproc     1024



内存足够的情况下,应该是打开的文件过多了【上面是centos】
ubuntu有自己的方式
hbase 0.96整合到hadoop2.2三个节点全分布式安装高可靠文档
http://www.aboutyun.com/forum.php?mod=viewthread&tid=7746
limit.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条