Cov lus txib twg pab qhia cov ntaub ntawv lossis cov npe hauv Hadoop?
Cov lus txib twg pab qhia cov ntaub ntawv lossis cov npe hauv Hadoop?

Video: Cov lus txib twg pab qhia cov ntaub ntawv lossis cov npe hauv Hadoop?

Video: Cov lus txib twg pab qhia cov ntaub ntawv lossis cov npe hauv Hadoop?
Video: 6 Nqi Lus Qhia Kev Ua neej ( leej twg mloog lub neej yuav zoo tuaj) 2024, Hlis ntuj nqeg
Anonim

Hadoop HDFS Cov ls Hais kom ua Nqe lus piav qhia:

Cov Hadoop fs cev lus txib ls qhia cov npe ntawm cov ntsiab lus ntawm a phau ntawv teev nyob rau hauv lub txoj kev muab los ntawm tus neeg siv. Nws qhia lub npe, kev tso cai, tus tswv, qhov loj me, thiab hnub hloov kho rau txhua tus ntaub ntawv los yog directory nyob rau hauv qhov teev phau ntawv.

Tom qab ntawd, kuv yuav saib cov ntaub ntawv hauv Hadoop li cas?

Cov haoop ua fs -ls hais kom ua tso cai rau koj saib tus 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.

Kuj Paub, Kuv yuav ua li cas thiaj tsim tau ib daim nplaub tshev hauv Hadoop file system?

  1. Tsim ib daim ntawv teev npe hauv HDFS. Kev siv: $ hdfs dfs -mkdir
  2. Sau cov ntsiab lus ntawm cov npe hauv HDFS.
  3. Upload ib cov ntaub ntawv rau HDFS.
  4. Download tau ib cov ntaub ntawv los ntawm HDFS.
  5. Kos ib lub xeev cov ntaub ntawv hauv HDFS.
  6. Saib cov ntsiab lus ntawm cov ntaub ntawv hauv HDFS.
  7. Luam ib cov ntaub ntawv los ntawm qhov chaw mus rau qhov chaw nyob hauv HDFS.
  8. Luam ib cov ntaub ntawv los ntawm / rau Local file system rau HDFS.

Yog li ntawd, txoj kev HDFS ntawm cov ntaub ntawv nyob qhov twg?

Nrhiav HDFS Txoj Kev URL hauv Hadoop Kev teeb tsa Cov ntaub ntawv Tam sim no siv lub HDFS kev teeb tsa ntaub ntawv koj ua tau nrhiav los yog hloov cov HDFS txoj kev URL. Mus rau kab 190 ntawm tus hdfs ua - chaw. xml ntaub ntawv hauv qab no rau nrhiav HDFS Txoj Kev URL. Rau qhov piv txwv cluster nws yog node2.

Hdfs DFS command yog dab tsi?

HDFS hais kom ua txav cov ntaub ntawv los ntawm qhov chaw mus rau qhov chaw. Qhov no lus txib tso cai rau ntau qhov chaw ib yam nkaus, nyob rau hauv rooj plaub uas lub hom phiaj xav tau ib daim ntawv teev npe. Kev siv: hdfs ua -mv Hais kom ua : hdfs ua -mv /user/ haoop ua /file1 /user/ haoop ua /file2.

Pom zoo: