reasons: Safety without small things, prevention in the bud.9. Turn on the garbage bin (trash) function motiveI once made a mistake, in my overtime very tired, the brain slightly chaotic, accidentally deleted the execution of a command "Hadoop fs-rmr/xxx/xxx", no deletion hint, a few terabytes of data, all of a sudden there is no. It just made me fall apart and regret it. This is how you wish to have a time machine that will allow HDFs to revert to i
in an aggregate summary of file lengths being displayed, rather than the individual files.
The-H option will format file sizes in a "human-readable" fashion (e. g 64.0 m instead of 67108864)
Example:
Hdfs dfs-du/user/hadoop/dir1/user/hadoop/file1 HDFS: // nn.example.com/user/hadoop/dir1
Exit code: returns 0 on success and-1 on error.DUS
Usage:Hdfs dfs-DUS
Displays a summary of file lengths. This is an alternate form of hdfs dfs-du-s.Expunge
Usage:Hdfs dfs-expunge
Empty the
Look at other people's programs and try to do one by yourself. I asked my predecessors about the situation.
Initial thought:
1. Obtain the coordinates of the trash window.
2. Use Photoshop to obtain the coordinates of the left and right images in the game window.
3. Obtain the left and right images and save them in BMP format.
4. The two images are compared in pixels. The same fill is white, and the different fill is black. Generate an image with blac
module is installed and added to the kernel: # modprobe fuse4) modify the bound host name mfsmaster and IP Address: 192.168.40.140 # vi/etc/hosts192.168.40.140 mfsmaster5) create a local mount point/mnt with the MFs read and write permissions of the master group and mount it to the master (changed) # mkdir/mnt/MFs # mkdir/mnt/mfsmeta #/usr/bin/mfsmount/mnt-H 192.168.40.140 #/usr/bin/mfsmount/mfsmeta-H 192.168.40.140-O mfsmeta mounting junk file directory # ls/mnt/mfsmeta reserved
deletion and recovery mechanism
When a file is deleted from HDFS, the file is not immediately deleted from HDFS, but renamed to the/trash directory, as long as the file is still in the/trash directory, this file can be quickly recovered;
The file storage time in the/trash directory can be configured (6 hours by default). When this time is exceeded, NN will de
To prevent deft on hand rm from being deleted in Ubuntu, you can prevent accidental deletion by using alias RM to MV.
In. BASHRC, add the following statement, and then source. BASHRCAlias rm= "Sh/home/[username]/.remove.sh"
Create a new. Trash directory in the user directory
Create a new. remove.sh file in the user directory with the following contents:para_cnt = $#Trash_dir = " /home/wagner/.trash
Shell Display color settings
Under User path, add the following file:#创建文件: ~ $vi. bash_profile# Enter the following: ~ $cat. bash_profile #for colorexport clicolor=1#\h:\w\u\ $export ps1= ' \[\033[01;33m\] \[email protected]\h\[\033[01;31m\] \w\$\[\033[00m\] ' #esc退出编辑,: Wq save exit. Restart the shell.
Shortcut keys
Browser shortcut keys:
Command + SHIFT + {} Toggle browser page around
Command + T: Open a new page
Command + L: Check
registration form. Mainly placed under these several key values:
Hkey_local_machinesoftwaremicrosoftinternet Explorerregistration String ProductID
Hkey_local_machinesoftwaremicrosoftuser information string Product ID/* If not registered with Microsoft, it will not appear here * *
Hkey_local_machinesoftwaremicrosoftwindowscurrentversion String ProductID
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows Ntcurrentversion String ProductID
The above 4 places is in the registry to hold the key value of
(' localhost ') smtpobj.sendmail (sender, Receivers, message.as_string ()) print ("Mail sent successfully") except Smtplib. Smtpexception: Print ("Error: Unable to send mail")We use three quotation marks to set up the mail message, the standard message needs three header information: from, to, and Subject , each message is directly separated by a blank line.We connect to SMTP access by instantiating the SMTP object smtpobj of the Smtplib module and use the sendmail method to send the i
care, after a while, the contents of this folder will be very much. Go to your appropriate folder (~/downloads directory), sort the files by the amount of disk space you want, and then delete any unwanted files.
So I want Mac users to get into a good habit: Manage the Downloads folder. In general, after installing the application, delete the installed. dmg file, after extracting the file, delete the original compressed file, and regularly archive the usual files.
4. Empty the Was
Objective
This article mainly learn Hadoop HDFs from HDFs move to local, move from local to Hdfs,tail view last, rm delete file, expunge empty trash,chown change owner, setrep change file copy number, CHGRP change belong group,, Du, DF Disk Footprint
Movefromlocal
Copy a local file to HDFs, and when successful, delete the local fileInstruction usage
Movefromlocal
Example
HDFs Dfs-movefromlocal/home/dataflair/desktop/sample/user/dataflair/dir1Movetol
extracting the file, delete the original compressed file, and regularly archive the usual files.
4. Empty the Waste basket
Sounds obvious, right? But it's easy to forget. The waste basket will continue to "grow" after a period of "growth", and sometimes the Mac doesn't have enough hard disk space just because a lot of things have been moved to the trash, but in fact, these things are still on your disk. If you rarely empty the
cannot be deleted by SAFE-RM.You can rename the Safe-rm to RM and place it in the $PATH before the original RM program. The use of full path/bin/rm in some scripts is not affected by this.$ rm-rf/etc/safe-rm:skipping/etc/Official address: Http://freecode.com/projects/safe-rm,ubuntu can be installed directly apt-get, CentOS to download the source code installation.2, the establishment of recycling station mechanismIt does not actually perform the delete operation, but instead moves the file to a
In the process of using the computer, the MAC also generates junk files, which not only consumes a lot of disk space, but also slows down the operation. Perhaps many people do not realize that, in addition to ordinary drive garbage, there are more junk files on Mac, each partition and external drive has his own hidden trash folder, previously deleted items still exist. Let's take a look at the Mac garbage cleanup method. How does mac clean up
The content is Google's, the test is valid, because the thing that is packaged with Revel is deleted later has this cyclic bugmac about-you can't copy an item "" because its name is too long or includes characters that are not valid on the destination volume. File deletion Some of the information I found on this issue can be removed by the following methods1, open the terminal application. 2, type: sudo rm-RF Note: in the-RF, type a space after. The command will not execute without a space.in st
To prevent deft on hand rm from being deleted in Ubuntu, you can prevent accidental deletion by using alias RM to MV.
In. BASHRC, add the following statement, and then source. BASHRCAlias rm= "Sh/home/[username]/.remove.sh"
Create a new. Trash directory in the user directory
Create a new. remove.sh file in the user directory with the following contents:para_cnt=$#Trash_dir = "/home/[username]/.trash
Foreword: This article is in blogger: http://blog.sina.com.cn/s/blog_7673d4a50102v7s1.html; a summary of the problems encountered on the basis of blogs
Configure the hive's metadata to MySQL, and after creating Hivedb in the MySQL database, modify the Hive-site.xml in the Conf directory of hive and Mysql-connector-java-5.1.22-bin.jar to the Lib directory of hive.Here's the thing. hive0.14 version Results run hive, CREATE TABLE:hive> CREATE TABLE T1> (tid int, tname string, age int);Moved: ' Hdf
]5. * Vulnerable packages *Versions> = 2.96. * Non-vulnerable packages *Versions 7. * Vulnerability Overview *Since version 2.9 a new feature was implemented so that usersWere able to retrieve posts that they may have deleted by accident.This new feature was labeled trash. Any posts that are placedThe trash are only viewable by authenticated privileged users.8. * Technical Description *When WordPress implem
columns with-q are:Quota, remaining_quata, space_quota, remaining_space_quota, dir_count, file_count, content_size, file_name.
Example:
Hadoop FS-count HDFS: // nn1.example.com/file1 HDFS: // nn2.example.com/file2
Hadoop FS-count-q hdfs: // nn1.example.com/file1
Exit code:
Returns 0 on success and-1 on error.
CP
Usage: hadoop FS-cp uri [URI…]
Copy files from source to destination. This command allows multiple sources as well in which case the destination must be a directory.Example:
Hado
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.