/
Package Storm February   Type Package Version Package Storm February   Type Package Version

Package Storm February Type Package Version - PDF document

lois-ondreau
lois-ondreau . @lois-ondreau
Follow
410 views
Uploaded On 2015-04-06

Package Storm February Type Package Version - PPT Presentation

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

Date 20141225 Title Write

Share:

Link:

Embed:

Download Presentation from below link

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.


Presentation Transcript

2Storm-package Storm-packageWriteStormBoltsinRusingtheStormMulti-LanguageProtocol. DescriptionStormisadistributedreal-timecomputationsystem.SimilartohowHadoopprovidesasetofgeneralprimitivesfordoingbatchprocessing,Stormprovidesasetofgeneralprimitivesfordoingreal-timecomputation.Stormincludesa“Multi-Language”(or“Multilang”)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:v“function(s=Storm,t=Tuple)”thatwillbecalledonceperTuple.Insidethisfunction,youcanemitzeroormoreTuples,aswellasemitotherstatusmessages,suchasfailuresanddiagnosticmessages.Tousethisextension,briey:1.createanewStormobject.2.deneafunctionthatcanprocessandemitTupleobjects.3.calltherun()methodontheStormobject.Adetailedexampleisgivenintheexamplessection.Author(s)AllenDayMaintainer:AllenDay lle;&#xnday;&#x@all;nda;&#xy650;.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