gpt4 book ai didi

spring - Hadoop JobRunner不启 Action 业

转载 作者:行者123 更新时间:2023-12-02 21:54:10 26 4
gpt4 key购买 nike

我最近刚开始使用Hadoop,但在开始的第一刻就出现了一些问题,到目前为止,我已经能够解决它们,但是有一个我无法克服的问题。事实是,一切似乎都工作正常,但是当我尝试启动Hadoop作业时,它就挂了,而且我不知道如何设法使其正常工作,执行框架如下:

13/05/22 20:02:43 INFO support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@3fe9029b: startup date [Wed May 22 20:02:43 CEST 2013]; root of context hierarchy
13/05/22 20:02:43 INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [hadoop-configuration.xml]
13/05/22 20:02:43 INFO config.PropertyPlaceholderConfigurer: Loading properties file from class path resource [hadoop.properties]
13/05/22 20:02:43 INFO support.DefaultListableBeanFactory: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2d062bb6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,hadoopConfiguration,foundation-job,JulianSchJobRunner]; root of factory hierarchy
13/05/22 20:02:44 INFO config.PropertiesFactoryBean: Loading properties file from class path resource [hadoop.properties]
13/05/22 20:02:44 INFO mapreduce.JobRunner: Starting job [foundation-job]

我还必须说我正在使用Cloudera的CDH4和Spring for Hadoop。

正如我在最后一行所说,它停止并且不会继续执行。
在此先感谢大家

好的,我一直在浏览日志,它会引发一些异常:
2013-05-22 21:01:36,254 WARN org.apache.hadoop.mapred.JobTracker: Writing to file hdfs://localhost.localdomain:8020/tmp/mapred/system/jobtracker.info failed!
2013-05-22 21:01:36,254 WARN org.apache.hadoop.mapred.JobTracker: FileSystem is not ready yet!
2013-05-22 21:01:36,262 WARN org.apache.hadoop.mapred.JobTracker: Failed to initialize recovery manager.
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and no node(s) are excluded in this operation.

此问题可能与HDFS的权限有关,否则与它们无关?

最佳答案

好的,解决了,对于以后的查找,我不得不说问题是通过将这些目录文件路径更改为分配了更多内存的安装点来解决的(问题是NN内存不足):

dfs.name.dir=${HOME}/path-to-desired-location instead of the basepath stated by default:
dfs.name.dir=/dfs/nn

而且我也必须在datanode和secondarynamenode上做同样的事情,然后只需要格式化namenode并重新启动HDFS服务:
hdfs namenode -format

希望这对其他人有帮助,欢呼

关于spring - Hadoop JobRunner不启 Action 业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16698768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com