Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»BIG-DATA»Hadoop – Namenode is in safe mode

    Hadoop – Namenode is in safe mode

    By RahulAugust 24, 20161 Min Read

    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.

    Advertisement
    $ 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

    Related Posts

    Using HDFS Filesystem (CLI)

    Creating Directory In HDFS And Copy Files (Hadoop)

    How to Install Hadoop on Ubuntu 22.04

    How to Install Apache Hadoop on Ubuntu 22.04

    How to Install and Configure Hadoop on Ubuntu 20.04

    View 3 Comments

    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

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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