Kuv yuav paub li cas yog tias tus neeg sawv cev flume khiav?
Kuv yuav paub li cas yog tias tus neeg sawv cev flume khiav?

Video: Kuv yuav paub li cas yog tias tus neeg sawv cev flume khiav?

Video: Kuv yuav paub li cas yog tias tus neeg sawv cev flume khiav?
Video: Quas Koj Ntxhais Rau Kuv Tub - Cai Hawj Feat. Maiv Xis Vaj「Official MV」 2024, Kaum ib hlis
Anonim

2 Teb. Mus xyuas yog tias Apache- Flume yog ntsia cd rau koj flume /bin directory thiab ces nkag mus rau qhov hais kom ua flume - ng version. Xyuas kom tseeb tias koj nyob rau hauv qhov tseeb directory los ntawm siv lus ls. flume - ng yuav nyob rau hauv cov zis yog koj nyob rau hauv qhov tseeb directory.

Raws li txoj cai, koj ua li cas khiav flume?

Pib Flume

  1. Txhawm rau pib Flume ncaj qha, khiav cov lus txib hauv qab no ntawm Flume party: /usr/hdp/current/flume-server/bin/flume-ng agent -c /etc/flume/conf -f /etc/flume/conf/ flume. conf -n tus neeg sawv cev.
  2. Txhawm rau pib Flume ua ib qho kev pabcuam, khiav cov lus txib hauv qab no ntawm Flume host: kev pabcuam flume-tus neeg saib xyuas pib.

Ib tug kuj yuav nug, kuv yuav ua li cas thiaj li tsis txhob flume agent? 2 txoj hauv kev los nres Flume tus neeg sawv cev:

  1. Mus rau lub davhlau ya nyob twg uas Flume tus neeg saib xyuas tab tom khiav thiab nias ctrl + C kom tua tus neeg sawv cev.
  2. Khiav jps los ntawm txhua lub davhlau ya nyob twg thiab nrhiav 'Application' txheej txheem. Nco tseg nws cov txheej txheem ID thiab tom qab ntawd khiav tua -9 kom xaus cov txheej txheem.

Hauv qhov no, tus neeg sawv cev flume yog dab tsi?

A Flume Kev tshwm sim yog txhais raws li ib chav tsev ntawm cov ntaub ntawv ntws uas muaj ib tug byte payload thiab ib qho kev xaiv ntawm txoj hlua attributes. A Flume tus neeg sawv cev yog tus txheej txheem (JVM) uas tuav cov khoom los ntawm cov xwm txheej ntws los ntawm qhov chaw sab nraud mus rau qhov chaw tom ntej (hop).

Vim li cas flume siv?

HDFS yog ib qho kev faib cov ntaub ntawv siv los ntawm Hadoop ecosystem khaws cov ntaub ntawv. Lub hom phiaj ntawm Flume yog muab ib qho kev faib tawm, txhim khu kev qha, thiab muaj cov txheej txheem rau kev sau zoo, sib sau ua ke thiab txav ntau cov ntaub ntawv teev tseg los ntawm ntau qhov chaw sib txawv mus rau qhov chaw khaws ntaub ntawv hauv nruab nrab.

Pom zoo: