Kuv pom cov ntaub ntawv loj npaum li cas hauv Hadoop?
Kuv pom cov ntaub ntawv loj npaum li cas hauv Hadoop?

Video: Kuv pom cov ntaub ntawv loj npaum li cas hauv Hadoop?

Video: Kuv pom cov ntaub ntawv loj npaum li cas hauv Hadoop?
Video: Data Science with Python! Analyzing File Types from Avro to Stata 2024, Kaum ib hlis
Anonim

2 Teb. Koj tuaj yeem siv qhov " haoop ua fs -ls hais kom ua". Cov lus txib no qhia cov npe ntawm cov ntaub ntawv nyob rau hauv cov ntaub ntawv tam sim no thiab tag nrho nws cov ntsiab lus. Nyob rau hauv cov zis ntawm no hais kom ua, 5th kem qhia cov qhov loj ntawm ntaub ntawv hauv bytes.

Raws li, kuv yuav ua li cas thiaj paub qhov loj ntawm kuv cov ntaub ntawv Hadoop?

Cov Hadoop fs -du -s -h hais kom ua kuaj tus qhov loj ntawm HDFS cov ntaub ntawv / directory nyob rau hauv tib neeg readable hom ntawv. Txij li thaum hwb file system replicates txhua txhua ntaub ntawv , qhov tseeb lub cev qhov loj ntawm ntaub ntawv yuav yog tus naj npawb ntawm replication nrog multiply ntawm qhov loj ntawm ntaub ntawv.

Ib yam li ntawd, kuv yuav txheeb xyuas kuv qhov chaw Hadoop disk li cas? Tshawb xyuas HDFS Disk Siv

  1. Siv cov lus txib df los xyuas qhov chaw dawb hauv HDFS.
  2. Siv cov lus txib du los xyuas qhov chaw siv.
  3. Siv cov lus txib dfsadmin los xyuas qhov chaw dawb thiab siv.

Ua raws li qhov xav tau, Kuv yuav saib cov ntaub ntawv hauv Hadoop li cas?

Cov haoop ua fs -ls hais kom ua tso cai rau koj saib cov cov ntaub ntawv thiab directory hauv koj HDFS filesystem, ntau npaum li cov lus txib ls ua haujlwm ntawm Linux / OS X / * nix. Tus neeg siv lub tsev directory hauv HDFS yog nyob ntawm /user/userName. Piv txwv li, kuv lub tsev directory yog /user/akbar.

Kuv yuav txheeb xyuas qhov loj ntawm cov ntaub ntawv hauv Linux li cas?

Muaj du command. --pom- qhov loj hais kom ua kab hloov ua rau nws ntsuas pom meej qhov ntau thiab tsawg (dab tsi ls qhia) es tsis yog siv disk tiag. Siv ls -s los sau cov ntaub ntawv loj , lossis yog tias koj nyiam ls -sh rau tib neeg nyeem tau qhov ntau thiab tsawg . Rau cov npe siv du, thiab dua, du -h rau tib neeg nyeem tau qhov ntau thiab tsawg.

Pom zoo: