hadoop too many files异常处理

WBOY
Lepaskan: 2016-06-07 16:32:49
asal
1373 orang telah melayarinya

今天 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>
Salin selepas log masuk

debian系统解决方式
<p class="devcodeoverflow"></p><ol><li>ulimit -HSn 32768</li></ol>
Salin selepas log masuk
Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan