2 Date 20141225 Title Write Storm Bolts in R using the Storm MultiLanguage Protocol Author Allen Day Maintainer Allen Day License GPL 2 LazyLoad yes Depends R 210 methods permute rjson Description Storm is a distributed realtime computation system ID: 48711
Download Pdf The PPT/PDF document "Package Storm February Type Package Ve..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
2Storm-package Storm-packageWriteStormBoltsinRusingtheStormMulti-LanguageProtocol. DescriptionStormisadistributedreal-timecomputationsystem.SimilartohowHadoopprovidesasetofgeneralprimitivesfordoingbatchprocessing,Stormprovidesasetofgeneralprimitivesfordoingreal-timecomputation.StormincludesaMulti-Language(orMultilang)ProtocoltoallowimplementationofBoltsandSpoutsinlanguagesotherthanJava.ThisRextensionprovidesimplementationsofutilityfunctionstoallowanapplicationdevelopertofocusonapplication-specicfunctionalityratherthanStorm/Rcommunicationsplumbing.DetailsPackage:StormType:PackageVersion:1.2Date:2012-12-25License:GPLversion2ornewerLazyLoad:yesFromStorm'spointofview,itcreatesanRprocesstoconsumeandproduceTuples.Stormcommu-nicateswithRusingaJSON-likeformat.StormwritesTuplesviaSTDIN,andreadsTuplesfromRviaSTDOUT.TheStormpackageimplementsseveralfunctionstotakecareofStorm/RI/O.Astheapplicationprogrammer,youimplementasinglefunctionwithsignature:vfunction(s=Storm,t=Tuple)thatwillbecalledonceperTuple.Insidethisfunction,youcanemitzeroormoreTuples,aswellasemitotherstatusmessages,suchasfailuresanddiagnosticmessages.Tousethisextension,briey:1.createanewStormobject.2.deneafunctionthatcanprocessandemitTupleobjects.3.calltherun()methodontheStormobject.Adetailedexampleisgivenintheexamplessection.Author(s)AllenDayMaintainer:AllenDay lle;nday;@all;nda;y650;.comReferencesStorm-https://github.com/nathanmarz/storm/wikiStormMulti-LanguageProtocol-https://github.com/nathanmarz/storm/wiki/Multilang-protocol 4Storm-package#proton:Rallenday$catStorm/eg/example.txt|Storm/eg/example.r#{#"command":"ack",#"id":"-6955786537413359385"#}#end#{#"command":"log",#"msg":"processingtuple=-6955786537413359385"#}#end#{#"command":"emit",#"anchors":[],#"stream":"1",#"task":"9",#"tuple":["7"],#}#end#{#"command":"emit",#"anchors":[],#"stream":"1",#"task":"9",#"tuple":["-1"],#}#end#{#"command":"fail",#"id":"-6955786537413359385"#}#end