首页 > 系统相关 >Linux使用Ambari启动服务启动失败

Linux使用Ambari启动服务启动失败

时间:2024-07-18 10:10:42浏览次数:11  
标签:hdfs Ambari 启动 dfsadmin 09 hadoop safemode Linux Execution

试了好几次,基本上所有服务都是启动失败,试过重启,网上也没有相关问题。

这些全是红色,启动失败

 

打开日志后发现了很多问题:

2024-07-18 09:50:26,791 - 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. 
2024-07-18 09:50:38,158 - 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. 
2024-07-18 09:50:49,490 - 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. 
2024-07-18 09:51:00,808 - 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. 
2024-07-18 09:51:12,207 - 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. 
2024-07-18 09:51:23,624 - 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. 
2024-07-18 09:51:35,025 - 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. 
2024-07-18 09:51:46,372 - 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. 
2024-07-18 09:51:57,834 - 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. 
2024-07-18 09:52:09,171 - 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.

解决办法:

这是尝试退出安全模式失败,我也不知道为什么,所以要手动退出安全模式

sudo -u hdfs hdfs dfsadmin -safemode leave

 

标签:hdfs,Ambari,启动,dfsadmin,09,hadoop,safemode,Linux,Execution
From: https://www.cnblogs.com/atrue/p/18308835

相关文章

  • 从头理清uboot(2)-启动流程分析
    从头理清uboot(2)-启动流程分析目录从头理清uboot(2)-启动流程分析1.总体流程图2.逐步分析2.1上电后执行的第一条指令2.2初始化中断向量表2.3初始化工作模式&初始化中断向量表。2.4cpu_init_cp15&cpu_init_crit2.4.1cpu_init_cp152.4.1cpu_init_crit2.5进入_main函数2.5......
  • 安装Windows subsystem Linux
    1.启用功能在系统设置里面,启用子系统功能。2.安装从商店安装或者命令行安装3.初始化报错1: ​造成该问题的原因是WSL版本由原来的WSL1升级到WSL2后,内核没有升级,前往微软WSL官网下载安装适用于x64计算机的最新WSL2Linux内核更新包即可。报错2:Windows子系统初始化......
  • Linux介绍和文件管理
    Linux之父:LinuxTorvalds✔Linux目录:/bin:存放基础系统所需的命令/sbin:存放超级权限用户root的可执行命令/etc:存放系统程序或者一般工具的配置文件/dev:设备文件存储目录/proc:操作系统运行时,进程信息及内核信息/var:存放内容可能增长的文件(如日志)/tmp......
  • Linux常用指令
    1.参考资料https://www.runoob.com/linux/linux-file-attrpermission.htmlhttp://c.biancheng.net/linux_tutorial/10/2.环境准备1.安装VMWare2.安装CentOS73.配置静态IPXShell远程连接3.基本技能1.快捷键和命令Tab键补全命令和目录(自动提示),只有唯一匹配的时候才能完全......
  • linux date格式化获取时间
    转载请注明出处:在编写shell脚本时,需要在shell脚本中格式化时间,特此整理下date命令相关参数的应用root@controller1:~#date--help用法:date[选项]...[+格式]或:date[-u|--utc|--universal][MMDDhhmm[[CC]YY][.ss]]DisplaythecurrenttimeinthegivenFORMAT,o......
  • linux进程——父子进程层面的PID,fork的原理与理解
        前言:本篇内容主要讲解进程中系统调用fork和父子进程的概念与原理,想要系统学习linux进程的友友们只管看本篇文章是不行的。还要学习一些linux进程的周边知识以及linux进程其他方面的知识,博主的linux专栏中已经加入了这些文章方便友友们进行学习。感兴趣或者想要......
  • 用php编写代码,实现Linux系统下源码安装Apache、Mysql、PHP以及LAMP部署验证的过程
    以下是使用PHP编写的代码示例,用于自动化安装和部署LAMP环境:<?php//定义安装路径和版本号$apacheVersion='2.4.41';$mysqlVersion='8.0.19';$phpVersion='7.4.4';$apacheInstallPath='/usr/local/apache';$mysqlInstallPath='/usr/local/my......
  • 在 Windows 上运行 Linux:WSL2 完整指南(二)
    系列文章目录在Windows上运行Linux:WSL2完整指南(一)......
  • Linux下错误解决方案
    错误“E:Unabletocorrectproblems,youhaveheldbrokenpackages.”这种问题包破坏问题,可能是由于镜像源与系统版本不一致造成的解决方案:首先查看镜像源文件的内容 cat/etc/apt/sources.list比较对应的字符串 ubuntu14.04"trusty" ubuntu16.04"xenial"......
  • Linux下数据库学习过程之索引视图(持续更新中)
    1视图创建视图的目的:使得查询操作更加便捷视图的语法CREATE[ORREPLACE][ALGORITHM={UNDEFINED|MERGE|TEMPTABLE}][DEFINER=user][SQLSECURITY{DEFINER|INVOKER}]VIEWview_name[(column_list)]ASselect_statement[W......