Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»BIG-DATA»Hadoop – Namenode is in safe mode

    Hadoop – Namenode is in safe mode

    RahulBy RahulAugust 18, 20161 Min ReadUpdated:August 24, 2016

    Namenode loads the filesystem state from fsimage and stays in safe mode and wait for data nodes to report their blocks. Safemode is a read-only mode for HDFS cluster, so that it does not prematurely start replicating the blocks. Use following command to let the namenode leave safemode forcefully.

    $ hadoop dfsadmin -safemode leave
    

    In newer versions of hadoop command is deprecated. You can use hdfs command instead of hadoop. For example:

    $ hdfs dfsadmin -safemode leave
    

    You must run hadoop fsck so sort out any inconsistencies created in the hdfs due to above command.

    hadoop hdfs namenode safemode
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleFIXED MSSQL Error 3154 – The backup set holds a backup of a database other than the existing database
    Next Article How to Setup Startup & Shutdown Script on Gentoo Linux

    Related Posts

    How to Install and Configure Hadoop on Ubuntu 20.04

    Updated:July 14, 20217 Mins Read

    How To Install and Configure Hadoop on CentOS/RHEL 8

    Updated:February 12, 20207 Mins Read

    How to Setup Hadoop on Ubuntu 18.04 & 16.04 LTS

    Updated:April 9, 20194 Mins Read

    Hadoop Commands to Manage Files on HDFS

    Updated:August 1, 20192 Mins Read

    HADOOP/HDFS ls: ‘.’: No such file or directory

    1 Min Read

    Hadoop – Running a Wordcount Mapreduce Example

    Updated:August 24, 20162 Mins Read

    3 Comments

    1. Sai Indra Kumar K N V on February 15, 2018 7:15 pm

      I Installed and set up Hadoop 2.8.2 on ubuntu 16.0.4 and all nodes are running while executing hadoop fs -ls i am facing this issue [warn util.nativecodeloader: unable to load native-hadoop library for your platform… using builtin-java classes where applicable ls: `.’: no such file or directory]

      thanks in advance

      Reply
    2. sona on May 16, 2017 6:09 am

      thanks for posting such useful information about Hadoop namenode

      Reply
    3. sarika on March 31, 2017 12:07 pm

      Great post…! clearly explained the Hadoop namenode is in safe mode with clear explaination. Thank you..!

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to run “npm start” through docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.