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

Video: Kuv yuav ua li cas thiaj tsim tau ib daim nplaub tshev hauv Hadoop file system?

Video: Kuv yuav ua li cas thiaj tsim tau ib daim nplaub tshev hauv Hadoop file system?
Video: Niam xa me tub tuaj mus kawm nthawv 9/12/2017 2024, Kaum ib hlis
Anonim
  1. Tsim ib daim ntawv teev npe hauv HDFS . Kev siv: $ hdfs ua dfs - mkdir
  2. Sau cov ntsiab lus ntawm a directory hauv HDFS .
  3. Upload ib ntaub ntawv rau HDFS .
  4. Download a ntaub ntawv los ntawm HDFS .
  5. Kos ib ntaub ntawv xeev hauv HDFS .
  6. Saib cov ntsiab lus ntawm a ntaub ntawv hauv HDFS .
  7. Copy ib ntaub ntawv los ntawm qhov chaw mus rau qhov chaw nyob hauv HDFS .
  8. Copy ib ntaub ntawv los ntawm/rau Local cov ntaub ntawv system rau HDFS .

Ntxiv mus, yuav ua li cas kuv mus rau ib daim nplaub tshev hauv Hadoop?

3 Teb. Tsis muaj cd ( hloov directory ) command in hdfs ua cov ntaub ntawv system. Koj tsuas tuaj yeem sau npe cov npe thiab siv lawv mus txog tom ntej phau ntawv . Koj yuav tsum taug kev manually los ntawm kev muab txoj kev ua tiav siv cov lus txib ls.

Kuj Paub, Kuv yuav tsim cov ntaub ntawv hauv Hadoop FileSystem li cas? Rau tsim cov ntaub ntawv hauv cov ntaub ntawv hadoop qhov system. koj siv tau hdfs ua dfs -touchz txoj kev. Koj tuaj yeem ua tau tsim cov ntaub ntawv txoj hauv haoop ua qhov system. Cia li ntaus qhov URL no hauv ib haoop ua teeb tsa tshuab.

Ib yam li ntawd, kuv yuav nrhiav tau kuv daim ntawv Hdfs li cas?

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

Kuv yuav rho tawm cov ntaub ntawv los ntawm HDFS nplaub tshev li cas?

3 Teb. Siv hdfs ua txib rau rho tawm tag nrho cov ntaub ntawv hauv nws. Piv txwv li, yog tias koj haoop ua txoj kev yog /user/your_user_name/* ces siv lub hnub qub rau rho tawm tag nrho cov ntaub ntawv hauv qhov tshwj xeeb nplaub tshev.

Pom zoo: