版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Agenda
WhatClouderadoesforSparkEcosystem
AdvancedAnalyticswithSpark
SparkEngineeringinCloudera
ClouderaembracedSparkinearly2014
EngineeringwithInteltobroadenSparkecosystem
Hive-on-Spark
Pig-on-Spark
Spark-over-YARN
SparkStreamingReliability
GeneralSparkOptimization
HiveonSpark
Technology
Hive:“standard”SQLtoolinHadoop
Spark:next-gendistributedprocessingframework
Hive+Spark
Performance
Minimumfeaturegap
Industry
AlotofcustomersheavilyinvestinHive
WanttoleveragetheSparkengine
DesignPrinciples
NoorlimitedimpactonHive’sexistingcodepath
Maximizecodereuse
Minimumfeaturecustomization
Lowfuturemaintenancecost
ClassHierarchy
TaskCompiler
generates
Task
describedby
Work
MapRedCompiler
TezCompiler
MapRedTask
TezTask
MapRedWork
TezWork
SparkCompiler
SparkTask
SparkWork
Work–MetadataforTask
MapReduceWorkcontainsoneMapWorkandapossibleReduceWork
SparkWorkcontainsagraphofMapWorksandReduceWorks
MapWork1
ReduceWork1
MRJob1
MapWork2
ReduceWork2
MRJob2
Query:selectname,
MapWork1
ReduceWork1
ReduceWork2
sum(value)asvfromdec
groupbynameorderbyv;
SparkJob
SparkClientandSparkContext
SparkClient
TalkingtoSparkcluster
Supportlocal,local-cluster,standalone,yarn-cluster,yarn-client
Jobsubmission,monitoring,errorreporting,statistics,metrics,counters
SparkContext
CoreofSparkclient
Heavy-weighted,thread-unsafe
Designedforasingle-userapplication
Doesn’tworkinmulti-sessionenvironment
RemoteSparkContext
BeingcreatedandlivingoutsideHiveServer2
Inyarn-clustermode,Sparkcontextlivesinapplicationmaster(AM)
Otherwise,Sparkcontextlivesinaseparateprocess(otherthanHS2)
AM(RSC)
Node1
AM(RSC)
Node2
Node3
HiveServer2
YARNCluster
Session2
User2
Session1
User1
DataProcessingviaSpark
TreatTableasHadoopRDD(inputRDD)
ApplythefunctionthatwrapsMR’smap-sideprocessing
ShufflemapoutputusingSpark’stransformations(groupByKey,sortByKey,etc)
ApplythefunctionthatwrapsMR’sreduce-sideprocessing
SparkPlan
MapInput–encapsulateatable
MapTran–map-sideprocessing
ShuffleTran–shuffling
ReduceTran–reduce-sideprocessing
Query:Selectname,sum(value)asvfromdecgroupbynameorderbyv;
CurrentStatus
AllfunctionalityinHiveisimplemented
Firstroundofoptimizationiscompleted
Mapjoin,SMB
Splitgenerationandgrouping
CBO,vectorization
Moreoptimizationandbenchmarkingcoming
BetainCDH
/cloudera-labs/hive-on-spark/
/content/cloudera/en/documentation/hive-
spark/latest/PDF/hive-spark-get-started.pdf
AdvancedAnalyticswithSpark
WrittenbyClouderadatascienceteam
FirsteverbookbridgingMLwithHadoopecosystem
Focusingonusecasesandexamplesratherthanamanual
Targetfordatascientistsolvingrealwordanalysisproblems
GenerallyavailableinMay2015
AnalyzingBigData
Buildingamodeltodetectcreditcardfraudusingthousandsoffeaturesandbillionsoftransactions
Intelligentlyrecommendmillionsofproductstomillionsofusers
Estimatefinancialriskthroughsimulationsofportfoliosincludingmillionsofinstruments
Easilymanipulatedatafromthousandsofhumangenomestodetectgeneticassociationswithdisease
ChallengesofDataScience
Datapreprocessing
Variousfastdatafrommultiplesourcerequirespowerfuldatapipeline
Iteration
Fundamentalpartofdatascience
Acceleratingdiskdataloadingismuchhelpful
Fromlabtoproduction
Makedatausefultonon-datascientists
Modelsbecomepartoftheproductionserviceandmayneedtoberebuiltperiodicallyoreveninrealtime.
ValueatRisk
VaR(风险价值或者风险收益)
指在一定的持有期和给定的置信水平下,利率、汇率等市场风险要素发生变化时可能对某项资金头寸、资产组合或机构造成的潜在最大损失。
例如,在持有期为1天、置信水平为99%的情况下,若所计算的风险价值为10万人民币,则表明该银行的资产组合在1天中的损失有99%的可能不会超过10万人民币。
IntroducedbyHarryMarkowitzin1952,NobelPrizeinEconomicsin1990
IllustrationforVaR
MethodsforCalculatingVaR
Variance-Covariance
HistoricalSimulation
MonteCarloSimulation
EstimatingthroughMonteCarloSimulation
instrument
Normalize
marketfactors Input
Modeling MonteCarlo
Simulation
Oil Bonds SNP SNP
Sampling
MonteCarloSimulationwithSpark
Normalizedata
Fillthemissingvalue
Transformthehistoricaldatatotwo-weeks’return
Modeling
Definefactorfeatures
Useregressionmodeltocomputefactorweights
Sampling
Takethecorrelationinformationbetweenthefactorsintoaccount
IfS&Pisdown,theDowislikelytobedownaswell
Simulation
Broadcastinstrumentstoeachnode
Parallelizetrialcomputationacrossworkers
Compu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业沟通协作线上工具包
- 职业行为诚信个人承诺书(7篇)
- 城市交通信号灯控制系统操作指南
- 产品包装标准化审核单各行业适用模板
- 严控资金安全与使用效率承诺书9篇范文
- 2026届天津市部分区(蓟州区)重点达标名校中考模拟考试语文试题试卷含解析
- 2026年安徽界首地区初三英语试题中考模拟试题含解析
- 2026年江苏省南京市溧水县重点名校初三下学期摸底调研模拟考英语试题含解析
- 2026年河北省唐山市名校初三第一次适应性考试(一模)语文试题含解析
- 客户服务团队服务质量提升工具集
- 2026中国石化云南石油分公司加能站后备站经理招聘100人笔试备考试题及答案解析
- 湖北省武汉市2026届高三下学期三月调研考试 数学试卷 含答案
- 2026四川西南民族大学招聘教学管理岗人员15人笔试参考题库及答案解析
- 飞机结构与机械系统课件 供油系统
- 2《烛之武退秦师》剧本杀教学课件 2025-2026学年 统编版高中语文 必修下册
- 2026年安徽工贸职业技术学院单招职业技能测试题库附参考答案详解(模拟题)
- 2025年北极航行指南
- 2025年江西科技职业学院单招综合素质考试试题及答案解析
- 2025年上饶职业技术学院单招职业技能考试试题及答案解析
- 发热待查诊治专家共识(2026 版)
- 2026届沈阳市高三语文一模作文题目解析及范文:时间会治愈一切
评论
0/150
提交评论