hadoop too many files异常处理

WBOY
풀어 주다: 2016-06-07 16:32:49
원래의
1373명이 탐색했습니다.

今天 hadoop 集群任务执行失败了。报错信息如下 2013-10-26 08:00:03,229 ERROR server.TThreadPoolServer TThreadPoolServer.java:run182 - Error occurred during processing of message. at org.apache.hadoop.hive.service.HiveServer$ThriftHiveProcess

今天hadoop集群任务执行失败了。报错信息如下

<p class="devcodeoverflow"></p><ol>
<li>2013-10-26 08:00:03,229 ERROR server.TThreadPoolServer (TThreadPoolServer.java:run(182)) - Error occurred during processing of message.</li>
<li>    at org.apache.hadoop.hive.service.HiveServer$ThriftHiveProcessorFactory.getProcessor(HiveServer.java:553)</li>
<li>    at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:169)</li>
<li>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</li>
<li>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</li>
<li>    at java.lang.Thread.run(Thread.java:662)</li>
<li>    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:277)</li>
<li>    at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.init(HiveServer.java:136)</li>
<li>    at org.apache.hadoop.hive.service.HiveServer$ThriftHiveProcessorFactory.getProcessor(HiveServer.java:550)</li>
<li>    ... 4 more</li>
<li>    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthorizeProviderManager(HiveUtils.java:199)</li>
<li>    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:272)</li>
<li>    ... 6 more</li>
<li>Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /home/hadoop/hadoop-0.20.205.0/conf/mapred-site.xml (Too many open files)</li>
<li>    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1231)</li>
<li>    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1093)</li>
<li>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1037)</li>
<li>    at org.apache.hadoop.conf.Configuration.set(Configuration.java:438)</li>
<li>    at org.apache.hadoop.hive.conf.HiveConf.setVar(HiveConf.java:762)</li>
<li>    at org.apache.hadoop.hive.conf.HiveConf.setVar(HiveConf.java:770)</li>
<li>    at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:169)</li>
<li>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</li>
<li>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</li>
<li>    at java.lang.Thread.run(Thread.java:662)</li>
<li>Caused by: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: java.io.FileNotFoundException: /home/hadoop/hadoop-0.20.205.0/conf/core-site.xml (Too many open files)</li>
<li>    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:277)</li>
<li>    at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.init(HiveServer.java:136)</li>
<li>    at org.apache.hadoop.hive.service.HiveServer$ThriftHiveProcessorFactory.getProcessor(HiveServer.java:550)</li>
<li>    ... 4 more</li>
<li>Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: java.io.FileNotFoundException: /home/hadoop/hadoop-0.20.205.0/conf/core-site.xml (Too many open files)</li>
<li>    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthorizeProviderManager(HiveUtils.java:199)</li>
<li>    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:272)</li>
<li>    ... 6 more</li>
</ol>
로그인 후 복사

debian系统解决方式
<p class="devcodeoverflow"></p><ol><li>ulimit -HSn 32768</li></ol>
로그인 후 복사
관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿