mapred.ClientServiceDelegate:Application state is completed. FinalApplicationStatus=SUCCEEDED.错误解决

本文记录了一次HBase操作中遇到的问题:在MapReduce任务成功完成后,尝试连接到jobhistoryserver时出现反复重试连接的错误。通过检查发现jobhistoryservice未启动,使用mr-jobhistory-daemon.sh命令启动历史服务器后问题得以解决。
19/08/19 10:00:29 INFO mapred.ClientServiceDelegate:Application state is completed. FinalApplicationStatus=SUCCEEDED.  Redirecting to job history server
19/08/19 10:00:30 INFO ipc.Client: 
Retrying connect to server: 0.0.0.0/0.0.0.0:10020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/08/19 10:00:31 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:10020. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)

刚刚运行hbase程序 出现map reduce结束了 结果也出来了
但是紧接着就出现错误了Retrying connect to server: 0.0.0.0/0.0.0.0:10020. Already tried 0 time(s);
一直在重复出现这句话 然后就报错
我就一直注意这句话 搜解决办法也没有找到

然后往上翻才注意 到第一句话

mapred.ClientServiceDelegate:Application state is completed. FinalApplicationStatus=SUCCEEDED.  Redirecting to job history server

搜了一下 找到解决方案

jps发现job history service 没有启动

命令 mr-jobhistory-daemon.sh start historyserver 解决

emmm
不知道怎么回事 出现这个错误 猜想是多次重启服务 导致瓦特了

总结下 前后发了两篇博客 解决错误的由头是get不到点 出现的错误信息可能在第一句话 也可能在中间或最后
多看看!
实在不行看日志!

当Hadoop出现 `org.apache.hadoop.mapred.InvalidInputException: Input path does not exist` 错误,意味着程序尝试访问的输入路径不存在,下面是不同场景下的解决方法: - **使用Spark进行词频统计案例集群运行jar包时出错**:若在执行词频统计案例集群运行jar包命令时,出现 `Exception in thread "main" org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/spark/test/words.txt` 这样的错误,可使用如下命令: ```bash /export/servers/spark/bin/spark-submit --master spark://hadoop1:7077 --class cn.spark.WordCount_Online --executor-memory 1g --total-executor-cores 1 /export/data/spark_chapter02-1.0-SNAPSHOT.jar hdfs://192.168.110.132:9000/spark/test/words.txt hdfs://192.168.110.132:9000/spark/test/out ``` 其中,`hadoop1` 可替换为集群中master节点的主机名称;`hdfs://192.168.110.132:9000` 里的IP地址要换成master主机的IP,9000换成hdfs所在的端口号,端口号可通过查看 `core-site.xml` 文件获取[^4]。 - **在Spark中运行 `sc.textFile()` 等函数时出错**:若运行 `sc.textFile()` 等函数后,出现 `org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://localhost:9000/Filename.txt` 错误,要保证输入路径 `hdfs://localhost:9000/Filename.txt` 是存在的,可通过HDFS命令(如 `hdfs dfs -ls hdfs://localhost:9000/Filename.txt`)来检查路径是否存在,若不存在,需创建相应文件或目录[^2]。 - **创建 `peopleDF` 后使用 `peopleDF.show` 出错**:当创建完 `peopleDF` 后,使用 `peopleDF.show` 出现 `org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/opt/module/hadoop-3.1.3/etc/hadoop/spark-2.1.1-bin-hadoop2.7/bin/examples/src/main/resources/people.txt` 错误,要保证文件 `file:/opt/module/hadoop-3.1.3/etc/hadoop/spark-2.1.1-bin-hadoop2.7/bin/examples/src/main/resources/people.txt` 确实存在于指定路径下,可通过本地文件系统命令(如 `ls /opt/module/hadoop-3.1.3/etc/hadoop/spark-2.1.1-bin-hadoop2.7/bin/examples/src/main/resources/people.txt`)来检查文件是否存在,若不存在,需创建或移动文件到该路径[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值