学习 hive源码

学习 hive源码

ID:37668253

大小:480.00 KB

页数:18页

时间:2019-05-28

学习 hive源码_第1页
学习 hive源码_第2页
学习 hive源码_第3页
学习 hive源码_第4页
学习 hive源码_第5页
资源描述:

《学习 hive源码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、学习Hive李建奇1学习看了一部分代码,感觉,hive比较复杂,使用场景有限,一般用hadoop原生的mapreduce就可以了。1.1版本0.61.2目的学习facebook等应用hive的经验,以便应用于公司。学习代码的目的是便于更好的应用,比如debuging,tuning.以及应用新的patch.等。2Pig+Hive:ETL+datawarehouseThedatapreparationphaseisoftenknownasETL(ExtractTransformLoad)ortheda

2、tafactory."Factory"isagoodanalogybecauseitcapturestheessenceofwhatisbeingdoneinthisstage:Justasaphysicalfactorybringsinrawmaterialsandoutputsproductsreadyforconsumers,soadatafactorybringsinrawdataandproducesdatasetsreadyfordatauserstoconsume.Rawdatais

3、loadedin,cleanedup,conformedtotheselecteddatamodel,joinedwithotherdatasources,andsoon.Usersinthisphasearegenerallyengineers,dataspecialists,orresearchers.Thedatapresentationphaseisusuallyreferredtoasthedatawarehouse.Awarehousestoresproductsreadyforcon

4、sumers;theyneedonlycomeandselecttheproperproductsoffoftheshelves.Inthisphase,usersmaybeengineersusingthedatafortheirsystems,analysts,ordecisionmakers.Giventhedifferentworkloadsanddifferentusersforeachphase,wehavefoundthatdifferenttoolsworkbestineachph

5、ase.Pig(combinedwithaworkflowsystemsuchasOozie)isbestsuitedforthedatafactory,andHiveforthedatawarehouse.1.1datawarehouseDatawarehouseusecasesInthedatawarehousephaseofprocessing,weseetwodominantusecases:business-intelligenceanalysisandad-hocqueries.Int

6、hefirstcase,usersconnectthedatatobusinessintelligence(BI)tools—suchasMicroStrategy—togeneratereportsordofurtheranalysis.Inthesecondcase,usersrunad-hocqueriesissuedbydataanalystsordecisionmakers.Inbothcases,therelationalmodelandSQLarethebestfit.Indeed,

7、datawarehousinghasbeenoneofthecoreusecasesforSQLthroughmuchofitshistory.Ithastherightconstructstosupportthetypesofqueriesandtoolsthatanalystswanttouse.Anditisalreadyinusebyboththetoolsandusersinthefield.1.1facebook的应用架构FacebookDeploymentWebServersScri

8、beMidTierProductionHive-HadoopClusterShardedMySQLScribe-HadoopClustersAdhocHive-HadoopClusterHivereplication2hive1.1ArchitecutureHiveArchitectureMetastoreQueryEngineCLIHiveThriftAPIMetastoreThriftAPIJDBC/ODBCclientsHadoopMap/Reduce+HDFSCluster

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。