DataStage二、InfoSphere Information Serverプロセスの起動と停止

9470 ワード

Datastageシーケンス文章
Datastage一、インストール
1プロセスに関する基礎知識
名前
説明
ASBプロキシプロセス
通信プロキシは、層と層との間の通信を支援する役割を果たしており、デフォルトポートは31531であり、エンジン層とクライアント層の間で後のプロセスの方式で実行される。
ASBレコードプロキシプロセス
その役割は、メタデータ記憶層のデータベースにイベント情報を記録することである。
DataStage Egineプロセス
それはコアプロセスで、DataStage jobタスク、Cache、jobリソースを管理します。
WebSphere Apple Server(WAS)
Webアプリケーションサーバプログラムは、Java EE、xml、Web Serviceを使用して確立され、コネクタの初期化とWebベースのsone(コンソール)、infocenter(情報センター)を担当しています。
2 InfoSphere Information Serverプロセスを起動します。
WASを起動して、ASBエージェントを起動して、最後にDataStage Egineを起動することを提案します。WASはリソースライブラリとの接続、Aplication Serverを起動することを含み、これは一連の問題を起動しました。クライアントの接続が間違っていて、情報センターにアクセスできなくなりました。
2.1 WASを起動する
rootユーザの下でWASサービスを開始する:
$ /opt/IBM/InformationServer/ASBServer/bin/MetadataServer.sh start
起動には時間がかかります。約4分ぐらいかかります。WAS起動後、プロセス情報を確認すると、以下のようなプロセス情報が見られます。
$ ps -ef|grep java
root 22151422        1   0 12:48:12  pts/2  0:52 /opt/IBM/WebSphere/AppServer/java/bin/java -Declipse.security -Dwas.status.socket=61870 -Dosgi.install.area=/opt/IBM/WebSphere/AppServer -Dosgi.configuration.area=/opt/IBM/WebSphere/AppServer/profiles/InfoSphere/configuration -Dosgi.framework.extensions=com.ibm.cds,com.ibm.ws.eclipse.adaptors -Xshareclasses:name=webspherev70_%g,groupAccess,nonFatal -Xscmx50M
起動中の関連ログは/opt/IBM/InformationServer/ASBServer/bin/startMetadata Server.logに記録されています。AppServerディレクトリの下に移動します。Server状態を確認します。
# ./serverStatus.sh -all -username wasadmin -password wasadmin
ADMU0116I: Tool information is being logged in file
           /opt/IBM/WebSphere/AppServer/profiles/InfoSphere/logs/serverStatus.log
ADMU0128I: Starting tool with the InfoSphere profile
ADMU0503I: Retrieving server status for all servers
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0508I: The Application Server "server1" is STARTED
ここでServerの状態が見られます。START EDの場合、エラーが発生しました。
The server "server1" cannot be reached. It appears to be stopped.
注意してください。/opt/IBM/WebSphere/AppServer/profiles/InfoSphere/logsディレクトリのSystemErr.logsとSystemOut.logsのログファイルを確認してください。この問題を引き起こした原因は多くあります。
2.2 ASBプロキシを起動する
$ /opt/IBM/InformationServer/ASBNode/bin/NodeAgents.sh  start
Starting LoggingAgent...
LoggingAgent started.
Starting Agent...
Agent started.
プロキシプロセスが開始された後、プロセス情報をチェックします。この時、クライアントとサービスとの通信がなければ、ASBプロキシプロセスとASBがプロキシプロセスポートの状態を記録するのはLISTENです。
$ netstat -a|grep 31533
tcp        0      0  *.31533                *.*                    LISTEN
$ netstat -a|grep 31531
tcp        0      0  *.31531                *.*                    LISTEN

$ ps -ef|grep -i agent

root 21364806 19202464   0 12:49:27  pts/2  0:02 /opt/IBM/InformationServer/ASBNode/bin/RunAgent -Xbootclasspath/a:conf -Djava.ext.dirs=apps/jre/lib/ext:lib/java:eclipse/plugins:eclipse/plugins/com.ibm.isf.client_8.5.0.0 -Djava.class.path=conf -Djava.security.auth.login.config=/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/auth.conf -Dcom.ibm.CORBA.ConfigURL=file:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/sas.client.props -Dcom.ibm.SSL.ConfigURL=file:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ssl.client.props -Dcom.ibm.CORBA.enableClientCallbacks=true -Dcom.ibm.CORBA.FragmentSize=128000 -class com/ascential/asb/agent/impl/AgentImpl run
    root  9699638        1   1 12:49:25  pts/2  0:02 /opt/IBM/InformationServer/ASBNode/apps/jre/bin/java -Duser.language=en -Duser.country=US -Djava.security.auth.login.config=/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/auth.conf -Dcom.ibm.CORBA.ConfigURL=file:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/sas.client.props -Dcom.ibm.SSL.ConfigURL=file:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ssl.client.props -Dcom.ibm.CORBA.enableClientCallbacks=true -Dcom.ibm.CORBA.FragmentSize=128000 -classpath /opt/IBM/InformationServer/ASBNode/conf:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ACS_client.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ACS_common.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ISF_util.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ISF_j2ee.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ASB_utils.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/ASB_util_client.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/com.ibm.ws.ejb.thinclient_7.0.0.jar:/opt/IBM/InformationServer/ASBNode/eclipse/plugins/com.ibm.isf.client_8.5.0.0/com.ibm.ws.security.crypto.jar com.ascential.acs.logging.agent.LoggingAgentSocketImpl
注意:ASB起動が完了すると、WASにイベントを登録するのに1分ぐらいかかりますので、起動が完了したらすぐにテスト用データベースの接続とデータのロードの操作をすることは推奨されません。
2.3 DataStage Egineを起動する
$ uv -admin -start
Engineプロセスを起動した後、クライアント接続がなければ、ポートの状態はLISTENであり、dsrpcdデーモンプロセスとresource_トレーラープロセスが起動します。
$ netstat -a|grep dsrpc
tcp4       0      0  *.dsrpc                *.*                    LISTEN

$ ps -ef|grep dsrpc
    root 19792368        1   0 13:07:03  pts/2  0:00 /software/IBM/InformationServer/Server/DSEngine/bin/dsrpcd

$ ps -ef|grep resource_tracker
   dsadm 10485832        1   0 13:07:19      -  0:00 /software/IBM/InformationServer/Server/PXEngine/bin/resource_tracker
3 InfoSphere Information Serverプロセスを停止します。
まずDataStage Engineを停止して、ASBエージェントを停止して、最後にWASを停止することを提案します。
3.1ストップDataStage Egine
$ ps -ef|grep dsapi 
$ ps -ef|grep dscs
$ ps -ef|grep -i phantom
$ netstat -a|grep dsrpc
停止前にdsapi、dscs、phantomプロセスには出力がないはずです。dsrpcポートの状態がLISTENであるプロセスが一つしかないことを確認します。ESTABLISHEDがあれば、以下のような状況があれば、クライアントがサービスに接続されていることを表します。クライアントの接続がオフになるか、またはkillになるまで待つ必要があります。
tcp4       0      0  testHost.dsrpc       192.168.1.9.sftsrv    ESTABLISHED
tcp4       0      0  *.dsrpc                *.*                    LISTEN
クライアントが接続をオフにしたら、Engineを停止します。
$ uv -admin -stop
その後、再度、netstat-a grep dsrpcが出力されていないことを確認する。クライアントが閉じていない場合、強制的にプロセスを停止すると、閉じられていない接続プロセスの状態はwaitであり、これはEgineが完全に停止していないことを示している。
netstat -a|grep dsrpc
tcp4       0      0  estHost.dsrpc       192.168.1.9.sftsrv    FIN_WAIT_2
3.2 ASBプロキシを停止する
$ /opt/IBM/InformationServer/ASBNode/bin/NodeAgents.sh  stop
ASBエージェントをチェックする
$ ps -ef|grep -i agent
出力の結果にはASBNodeパスが含まれていないプロセス情報が必要です。あれば再度停止してください。
3.3 WASプロセスを停止する
$ /opt/IBM/InformationServer/ASBServer/bin/MetadataServer.sh stop
WASプロセスをチェック
$ ps -ef|grep java
出力の結果にはASBServerパスが含まれていないプロセス情報が必要です。あれば再度停止してください。
4の足
スタートの足音
echo set dataStage environment...
/opt/IBM/InformationServer/Server/DSEngine/dsenv

echo start WebSphere Application Server
/opt/IBM/InformationServer/ASBServer/bin/MetadataServer.sh start

echo check there are java process are running
ps -ef|grep java

echo start ASB Agent 
/opt/IBM/InformationServer/ASBNode/bin/NodeAgents.sh start
echo check the agent has running
ps -ef|grep -i agent

echo start DataStage Services 
uv -admin -start

echo checking datastage backgroup process..
ps -ef |grep dsapi
ps -ef|grep dscs
ps -ef|grep -i phantom
ps -ef|grep dsrpc
echo checking datastage dsrpc port
netstat -a|grep dsrpc
echo see any momery segment left
ipcs ­qms ­a|grep ade
止まった足
echo set dataStage environment...
/opt/IBM/InformationServer/Server/DSEngine/dsenv
echo checking datastage backgroup process..
ps -ef |grep dsapi
ps -ef|grep dscs
ps -ef|grep -i phantom
echo checking datastage dsrpc port
netstat -a|grep dsrpc
echo stop DataStage Services 
uv -admin -stop 
echo see any momery segment left
ipcs ­qms ­a|grep ade
echo check the port again 
netstat -a|grep dsrpc

echo stop ASB Agent 
/opt/IBM/InformationServer/ASBNode/bin/NodeAgents.sh stop
echo check the agent has stopped
ps -ef|grep -i agent

echo stop WebSphere Application Server
/opt/IBM/InformationServer/ASBServer/bin/MetadataServer.sh stop

echo check there are no java process left behind
ps -ef|grep java
5まとめ
ASBエージェント通信プロセスは、レイヤとレイヤの間の通信を支援し、ASBエージェントは、プロセス記録イベント情報をメタデータストア層のデータベースに記録する。Datastage Engineプロセスはコアプロセスで、JOB、cacheとリソースの作成、管理を担当しています。WebSphere Aplication Server(WAS)は、InfoSphere Information ServerがWebベースのアプリケーションであり、コネクタの初期化やウェブベースのconsone、infocenterなどを担当しています。これらの間の協調作業は、一つのコンポーネントのプロセスが停止し、他のコンポーネントの動作に影響を及ぼします。例えば、ASBプロセスが停止すると、クライアントとの通信に影響を及ぼし、クライアントの接続が切断され、各種の編集と保存が正常に行われなくなり、データが失われる恐れがあります。Soさんは基礎知識と仕事の原理をよく理解して、もっと速くて、もっと良いのがDataStageを掌握するのに役立ちます。
--The end(2015-09-24)