InfoSphere Streams首次安裝使用

std1984發表於2012-12-01
單機環境: CentOS 5.6,  InfoSphere Streams-2.0.0.4-x86-el5
 
用root使用者解壓,進入cd StreamsInstallFiles,
 
[root@hq StreamsInstallFiles]# ls
dependency_checker.sh                            Licenses
ibmdita.css                                      ReleaseNotes.html
IBMInfoSphereStreams-InstAdmin.pdf               rpm
IBMInfoSphereStreams-Trial.pdf                   streams.dependency.jar
InfoSphereStreams_SampleResponseFile.properties  swg_info_common.css
InfoSphereStreamsSetup.bin
安裝前可執行dependency_checker.sh指令碼來查詢是否缺少元件(例:perl-XML-Simple,perl-XML-SAX等), 然後進入rpm目錄下安裝graphviz-2.24.0-1.el5.i386.rpm   ibm-java-i386-sdk-6.0-10.0.i386.rpm這兩個包。接著configuring a secure shell enviroment  for IBM infosphere streams %2Fcom.ibm.swg.im.infosphere.streams.install-admin.doc%2Fdoc%2Fibminfospherestreams-user-configuring-secureshellaccess.html, 執行./InfoSphereStreamsSetup.bin, 出現安裝介面,一步步按提示進行下去。途中會選擇系統已經有的使用者做為streams的擁有者。(例:streamsadmin)。 接下來配置streamsadmin的環境變數,在.bash_profile增加
source /opt/ibm/InfoSphereStreams/bin/streamsprofile.sh
export JAVA_HOME=/opt/ibm/java-i386-60/
PATH=$JAVA_HOME/bin:$PATH
export PATH
, 而後將StreamsInstallFiles/Licenses/treams_trial.lic複製到/home/streamsadmin目錄下,最後重啟電腦。
 
下面可以為執行測試案例了:
mkdir splsamples
cp -R   /opt/ibm/InfoSphereStreams/samples/spl/feature/RegularExpression splsamples
cd splsamples/RegularExpression
make distributed
 
streamtool mkinstance -i sample --template developer
streamtool startinstance -i sample
streamtool submitjob -i sample output/sample.DateTimeFormatter.adl
 
streamtool lspes -i sample
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16582684/viewspace-750358/,如需轉載,請註明出處,否則將追究法律責任。

相關文章