文案分析与火花_第1页
文案分析与火花_第2页
文案分析与火花_第3页
文案分析与火花_第4页
文案分析与火花_第5页
已阅读5页,还剩21页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论