Learn notes-hadoop Safe mode and directory snapshots

Source: Internet
Author: User
Tags safe mode hadoop fs

Safe Mode

1, namenode start, merge image and edit into new image, and generate a new edit log

2, the entire intelligent Safe mode, the client can only read

3. Check if Nameode is in safe mode

HDFs Dfsadmin-safemode Get//view Safe Mode

HDFs Dfsadmin-safemode Enter//Enter Safe mode

HDFs Dfsadmin-safemode Leave//Leave Safe Mode

HDFs Dfsadmin-safemode Wait//await Safe mode

4. Manually Save namespaces: Dfsadmin-savenamespace


5. Manually save the image file: HDFs dfsadmin-fetchimage


6. Save metadata: (Save under Hadoop_home: hadoop/logs/) HDFs Dfsadmin-metasave Xxx.dsds


7, start-balancer.sh: Start the Equalizer, the purpose of the cluster data storage on the more average, improve the performance of the entire cluster (in general, we are increasing the node


To start the equalizer in the case of a dot)

8. Hadoop Fs-count Statistics Directory



--------------------------------------------------

Hadoop Snapshot Snapshot: It is to save the current picture. Generic directory The default scenario is that snapshots cannot be created. HDFs must be executed


Dfsadmin-allowsnapshot/user/ubuntu/data. Allow snapshots to be created followed by the address path where you want to create the snapshot. Here to allow


After the snapshot is created we can execute Adoop fs-createsnapshot/user/ubuntu/data snap-1 create the snapshot. Snap-1 is you create fast


Name it. View the snapshot of the word direct Hadoop fs-ls-r/user/ubuntu/data/.snapshot/. And if you're creating a snapshot, it's not forbidden.


With the snapshot



1. Create a snapshot of Hadoop FS [-createsnapshot <snapshotDir> [<snapshotname>]


2. Delete Snapshot Hadoop fs [-deletesnapshot<snapshotdir> <oldName> <newname>]


3. Rename Snapshot Hadoop fs [-renamesnappshot<snapshotdir> <oldName> <newname>]


4. Allow directory snapshot Hadoop dfsadmin [-allowsnapshot <snapshotdir>]


5. Disable directory snapshots Hadoop dfsamdin[-disallowsnapshot<snapshotdir>]


This article is from the "11009607" blog, please be sure to keep this source http://11019607.blog.51cto.com/11009607/1795861

Learn notes-hadoop Safe mode and directory snapshots

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.