Ambari安装后NameNode无法启动 404 - Retrying after 10 seconds. Reason:

博客描述了在Ambari中启动HDFS中namenode时出现404错误,执行特定命令返回1。解决方法是先切换到hdfs用户,这是ambari默认HDFS最高权限用户,然后使用命令离开安全模式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

在Ambari中启动HDFS中namenode时出现404 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://master:8020 -safemode get | grep 'Safe mode is OFF'' returned 1.错误

 

解决方法:

# su hdfs   //切换到hdfs用户,ambari默认HDFS最高权限用户是hdfs
# hadoop dfsadmin -safemode leave   //离开安全模式

2025-04-02 11:24:49,591 ERROR org.apache.spark.scheduler.cluster.YarnScheduler: Lost executor 5 on dominos-usdp-v3-pro02: Container from a bad node: container_e35_1709867558487_220002_02_000002 on host: dominos-usdp-v3-pro02. Exit status: 143. Diagnostics: [2025-04-02 11:24:49.169]Container killed on request. Exit code is 143 [2025-04-02 11:24:49.170]Container exited with a non-zero exit code 143. [2025-04-02 11:24:49.170]Killed by external signal . 2025-04-02 11:24:49,592 WARN org.apache.spark.scheduler.TaskSetManager: Lost task 0.0 in stage 2.0 (TID 5) (dominos-usdp-v3-pro02 executor 5): ExecutorLostFailure (executor 5 exited caused by one of the running tasks) Reason: Container from a bad node: container_e35_1709867558487_220002_02_000002 on host: dominos-usdp-v3-pro02. Exit status: 143. Diagnostics: [2025-04-02 11:24:49.169]Container killed on request. Exit code is 143 [2025-04-02 11:24:49.170]Container exited with a non-zero exit code 143. [2025-04-02 11:24:49.170]Killed by external signal . 2025-04-02 11:24:49,594 WARN org.apache.spark.scheduler.cluster.YarnSchedulerBackend$YarnSchedulerEndpoint: Requesting driver to remove executor 5 for reason Container from a bad node: container_e35_1709867558487_220002_02_000002 on host: dominos-usdp-v3-pro02. Exit status: 143. Diagnostics: [2025-04-02 11:24:49.169]Container killed on request. Exit code is 143 [2025-04-02 11:24:49.170]Container exited with a non-zero exit code 143. [2025-04-02 11:24:49.170]Killed by external signal . 2025-04-02 11:26:37,187 ERROR org.apache.spark.scheduler.cluster.YarnScheduler: Lost executor 6 on dominos-usdp-v3-pro03: Container from a bad node: container_e35_1709867558487_220002_02_000003 on host: dominos-usdp-v3-pro03. Exit status: 143. Diagnostics: [2025-04-02 11:26:36.792]Container killed on request. Exit code is 143 [2025-04-02 11:26:36.793]Container exited with a non-zero exit code 143.
04-03
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值