Cov txheej txheem:

Yuav ua li cas kuv hloov los ntawm HDFS mus rau hauv zos?
Yuav ua li cas kuv hloov los ntawm HDFS mus rau hauv zos?

Video: Yuav ua li cas kuv hloov los ntawm HDFS mus rau hauv zos?

Video: Yuav ua li cas kuv hloov los ntawm HDFS mus rau hauv zos?
Video: txhob hnov qab kuv lub npe - Bee lee [Official MV] 2022-23 2024, Kaum ib hlis
Anonim

Koj tuaj yeem luam cov ntaub ntawv los ntawm hdfs mus rau lub zos filesystem los ntawm ob txoj hauv qab no:

  1. hauv / haoop ua fs -tau / hdfs ua /source/path /localfs/destination/path.
  2. hauv / haoop ua fs -copyToLocal / hdfs ua /source/path /localfs/destination/path.

Yog li ntawd, kuv yuav ua li cas rub tawm los ntawm HDFS?

8 Teb

  1. bin/hadoop fs -get /hdfs/source/path /localfs/destination/path.
  2. bin/hadoop fs -copyToLocal /hdfs/source/path /localfs/destination/path.
  3. taw tes koj lub web browser mus rau HDFS WEBUI (namenode_machine: 50070), xauj rau cov ntaub ntawv koj npaj siab yuav luam, nqes mus rau nplooj ntawv thiab nyem rau ntawm rub tawm cov ntaub ntawv.

Tsis tas li ntawd, kuv yuav txav cov ntaub ntawv hauv Hadoop li cas? Cia peb pib.

  1. Tsim ib daim ntawv teev npe hauv HDFS ntawm txoj kev muab.
  2. Sau cov ntsiab lus ntawm phau ntawv teev npe.
  3. Upload thiab rub tawm cov ntaub ntawv hauv HDFS.
  4. Saib cov ntsiab lus ntawm cov ntaub ntawv.
  5. Luam ib cov ntaub ntawv los ntawm qhov chaw mus rau qhov chaw.
  6. Luam ib cov ntaub ntawv los ntawm / Rau Local file system rau HDFS.
  7. Txav cov ntaub ntawv los ntawm qhov chaw mus rau qhov chaw.
  8. Tshem tawm cov ntaub ntawv lossis cov npe hauv HDFS.

Tib neeg kuj nug, cov lus txib twg yog siv los luam cov ntaub ntawv los ntawm cov ntaub ntawv hauv zos rau HDFS?

copyFromLocal

Kuv yuav ua li cas SCP mus rau ib lub chaw taws teeb hauv zos?

Copy ib Chaw taws teeb File to a Hauv zos System siv lub scp ommand Luam ib cov ntaub ntawv los ntawm a nyob deb rau a hauv zos system, siv lub nyob deb qhov chaw raws li qhov chaw thiab hauv zos qhov chaw raws li qhov chaw. Yog tias koj tsis tau teeb tsa tus password tsis muaj SSH nkag rau hauv nyob deb tshuab, koj yuav raug nug kom nkag mus rau tus neeg siv tus password.

Pom zoo: