標籤:
今天為瞭解決別的問題,把/etc/hosts檔案裡的 127.0.0.1 localhost改成了 127.0.0.1 DSETL ,結果運行作業的時候就報這個錯:Failed to connect to JobMonApp on port 13491。作業能夠運行不會報錯,但是無法監控,看得到日誌,但是看不到運行情況(資料條數)
在官網上找到了如下解釋:
Problem(Abstract)
DataStage job run statistics (i.e. rows per second processed) do not update in DataStage Designer or Director clients.
Diagnosing the problem
This section contains a quick series of diagnosis steps for those familiar with DataStage and Job monitor. If more detail is needed for any step, please refer to the more detailed instructions in the "Resolving the Problem" section:
If customer has checked and verified that the following:
- Check the DataStage Director job log for jobs which do not not show job run statistics and confirm whether the following variable is defined:
APT_NO_JOBMON
If APT_NO_JOBMON is defined and set to value of 1 or true, then it will disable job monitoring and process metadata reporting for parallel jobs.
- Confirm the JobMonApp process is up and running:
ps -ef | grep JobMonApp
- Confirm default ports 13400 and 13401 are listening:
netstat -an | grep 134
- Check job monitor log file for errors:
cat /ibm/InformationServer/Server/PXEngine/java/JobMonApp.log
- Confirm job monitor is setup to use ports 13400 and 13401
cat /ibm/InformationServer/Server/PXEngine/etc/jobmon_ports
- If job monitor log shows no errors but job log reports "Failed to connect to JobMonApp on port 13401" then update jobmon_ports file to use 2 new ports which are not already in use. This will require restart of JobMonApp.
- If problem still occurs, confirm that /etc/hosts file contains the following entry
127.0.0.1 localhost
without a localhost entry, Job Monitor will be unable to use the ports correctly.
- Confirm localhost resolves to 127.0.0.1 by using ping
ping localhost
this should resolve to 127.0.0.1
Failed to connect to JobMonApp on port 13491