首頁  >  文章  >  資料庫  >  hadoop too many files异常处理

hadoop too many files异常处理

WBOY
WBOY原創
2016-06-07 16:32:491373瀏覽

今天 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>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn