您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > ODI_Solutions_For_BigData_On_Hadoop
ODI–HadoopLabExercisesIntroduction..................................................................................................................................................4Pre-Requisites...............................................................................................................................................4Lab-1-LoadunstructureddatafromFile(LocalfilesystemorHDFS)intoHive.....................................7UnderstandingtheLab:............................................................................................................................7Executingthelab.....................................................................................................................................13Lab2-TransformandvalidatestructureddataonHive............................................................................15UnderstandingtheLab:..........................................................................................................................16Executingthelab.....................................................................................................................................18Lab3-TransformunstructureddataonHive.............................................................................................19UnderstandingtheLab:..........................................................................................................................20Executingthelab.....................................................................................................................................21Lab4-LoaddatafromHadoop(HDFSorHivetable)toOracleusingOracleLoaderforHadoop..........22UnderstandingtheLab:..........................................................................................................................22Executingthelab.....................................................................................................................................24IntroductionTheODIsolutionforBigDatalabwork,broadlyconsistsoffourlabs,eachofwhichhighlightsthecapabilitiesofODIKnowledgeModuleswhicharedevelopedtosimplifytheprocessingofBigDataonHadoop.Itshouldbenoted,however,thelabsdonotprovideacompletecoverageonalltheoptionsavailableinODIandtheknowledgemodules.Itishighlyrecommendedtousethelabsasastartingpointandrefertothedocumentation–ODIApplicationAdaptorforHadoopforadditionaldetailstodevelopcustomsolutions.SincethefocusonthelabsessionisonODIsolutionsforBigDataonHadoop,ItisassumedthatuserhasaknowledgeofODIandHadooptechnology,specificallyHDFSandHive.TheknowledgemodulesweredevelopedtosimplifyprocessingofunstructuredandstructureddataonHadoop.TheknowledgemodulesweredevelopedtofacilitatethefollowingprocessTheknowledgemodulesthathelpinfacilitatingtheaboveprocessare:LoadunstructureddatafromFile(LocalfilesystemorHDFS)intoHive–Box1TransformandvalidatestructureddataonHive–Box2TransformunstructureddataonHive–Box2LoadprocesseddatainHivetoOracle–Box3Pre-RequisitesTheODIsolutionforBigDataonHadoopisdeliveredthroughVMwithalltherequiredsoftwareandtheenvironmentpre-configured.AfterverifyingtheVMisupandrunningdothefollowing:BringupacommandterminalandenterthecommandtostartthehiveserverhiveserverBringupanothercommandterminalandenterthecommandtostartODIodiLoadDataIntoHiveTransformandvalidateDatainHiveLoadProcesseddatafromHiveintoOracleoClickon‘ConnectToRepository’inthe‘DesignerTab’oSelectOKonthepopupboxAfterselectingOK,youwillseethefollowingprojects.Thegeneralstepstoconfiguringallofthelabsarethefollowing.Sincethelabsarepre-configuredyouwillnotbeneededtoperformthesesteps,butitisimportanttobeawareofthesestepswhendevelopingcustomizedsolutions.Thedetailsofthesestepswillbeillustratedineachofthelabs.Createthemodelmeta-datawhichwillcontainthedatastoresandtheassociationtothelogicalschema.Duringexecution,dependinguponthecontextselected,thelogicalschemawillbemappedtotheappropriatephysicalschema.Thisallowsyoutoswitchcontextfromdevelopmenttotesttodeployment.Forthepurposesofthislabexercisethecontext‘global’willbeusedthroughout.Thedatastoremeta-datadescribeeitherthesourceortargetdatastore.Thedatastoresareusedintheinterfacetospecifythesourceandtarget.Definethelogicalarchitecture,physicalarchitectureandtheexecutionContextstoassociatelogicalandphysicalarchitecture.Designtheinterface.Theinterfacespecifiesthesource,target,mappingsandtherules,theKMs.Executingtheinterfacewithaspecifiedcontextwillmigratethedatafromthesourcephysicallocationintothetargetphysicallocation.Designthepackage.Thepackageallowstocreateaprocesswhichwouldexecuteinterfaces,proceduresandotherlogicasrequired.Thepackagesdesignedforthelabincludesthestepsthatgeneratedataandvalidateresults.ThegoaloftheeachofthelabsexerciseshighlighttheKnowledgemoduleslistedabove.Forthepurposesofthislabexercise,thestepstounderstandingthelabsandexecutinglargelyremainsthesame.Thereforeeachlabhastwoparts–UnderstandingtheLabandExecutingtheLab.Itis,however,importanttounderstandthedeeperpurposeofeachoftheKMsandusageofitsoptions.Whenexecuti
本文标题:ODI_Solutions_For_BigData_On_Hadoop
链接地址:https://www.777doc.com/doc-4938470 .html