vbScript Arrat Error - scripting

I have below CoreAPP.txt log file:
[10/31/2012 19:53:41:889 SWAP INF] {hap=CB2:app=Internet Explorer_b1
6.0.3790.3959:tid=22C0:usr=B9D327} Elapsed time for upload: 0.718 seconds
[10/31/2012 19:53:42:639 SWAP INF] {hap=CB2:app=Internet Explorer_b1
6.0.3790.3959:tid=22C0:usr=V9V327} Elapsed time for launch: 3.250 seconds
[10/31/2012 19:56:37:815 ???? INF] {tid=4004:usr=V47235} An error
occurred while opening the virtual registry (section: 9), rc:
07B01F0C-0000004A
[10/31/2012 19:56:37:846 ???? INF] {tid=4004} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A
[10/31/2012 10:45:00:576 ???? INF] {tid=1650} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A ElapR
The Application Virtualization Client could not connect to stream URL
'RTSP://SRVW23E:554/V1321_BDP_V1_R1_SB/V1321_BDP_C1_P2PM_SS.sft' (rc
1690900A-00002002, original rc 1690900A-00002002).
[10/31/2012 00:29:59:843 OSDF ERR] {tid=1464} The Application
Virtualization Client could not parse the OSD file
'C:\SoftCache\SoftGrid Client\OSD
Cache\edCc4305-3f6C-4dcc-3d70-404eb8bd97d8.osd'. Reason: XML parsing
failure (rc 00000A25-00000002)
[10/31/2012 08:24:35:869 ???? ERR] {tid=336C:usr=t405230} corrupt cp
file detected ('V:\V1321_BDP\osguard.cp'). osguard cp file, NO
CORRECTIVE ACTION TAKEN
[10/31/2012 22:16:39:240 JGSW ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The Application Virtualization Client could not connect to stream URL
'RTSP://PSWQAPP1:554/V14678993_BDP_C15_E2AM_SS/V14678993_BDP_C15_E2AM_SS.sft'
(rc 1690900A-00002002, original rc 1690900A-00002002).
[10/31/2012 22:16:39:240 SWAP ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The client was unable to connect to an Application Virtualization Server (rc 1690900A-00002002)
[10/31/2012 22:17:09:163 AMGR ERR] {tid=4F54} The specified
application name (Application Integration) is ambiguous. Some
potential matches: Application Integration 7.0.1756.1756 Application
Integration 9.2.2373.2373
[10/31/2012 22:17:09:163 AMGR ERR] {tid=4F54} The Application
Virtualization Client cannot open Application Integration
[10/31/2012 00:03:14:313 SWAP WRN] {tid=507C:usr=N28712} Could not
load OSD file
\PSWQAPP1\Content\D1311_bDP_Adobe_Reader_9.3.3\D1311_bDP_Adobe_Reader
9.3.3.osd
[10/31/2012 00:03:14:313 AMGR INF] {tid=507C:usr=i435145} The app
manager could not create an application from
'\PSWQAPP1\Content\D1311_bDP_Adob_dobe_Reader_9.3.3\D1311_bDP_Adob_b_Adobe
Reader 9.3.3.osd' (rc 0C405664-00000002).
==== [10/31/2012 13:35:16:987 JGSW ERR] {hap=1:app=Abaculus 1.0.0.1:tid=14C8:usr=R3R7DF42} The Application Virtualization Client could not connect to stream URL
'RTSP:%SFT_SRV%:554/D1311_bDP_Adob_b_Adobe_Abaculus_15_01/D1311_bDP_Adob_b_Adobe_Abaculus_15_01.sft'
(rc 19D02E0A-10000002, original rc 19D02E0A-10000002).
[10/31/2012 13:35:47:998 SWAP ERR] {hap=2:app=AboutPI-SDK
1.3.0.26:tid=1568:usr=I337721} Could not load app
[10/31/2012 19:56:37:862 SWAP INF] {hap=CB3:app=Adobe Reader X
10.0.1.434:tid=4004:usr=V47235} Elapsed time for upload: 0.609 seconds
[10/31/2012 19:56:38:393 SWAP INF] {hap=CB3:app=Adobe Reader X
10.0.1.434:tid=4004:usr=V47236} Elapsed time for launch: 1.187 seconds
[10/31/2012 19:56:57:487 SWAP INF] {hap=CB3:app=Adobe Reader X
10.0.1.434:tid=4004:usr=V47234} App shut down
[10/31/2012 20:01:40:745 ???? INF] {tid=327C:usr=V42235} An error
occurred while opening the virtual registry (section: 9), rc:
07B01F0C-0000004A
[10/31/2012 20:01:40:776 ???? INF] {tid=327C} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A
[10/31/2012 20:01:40:776 SWAP INF] {hap=CB4:app=Adobe Reader X
10.0.1.434:tid=327C:usr=V422357235} Elapsed time for upload: 0.609 seconds
[11/01/2012 16:48:44:157 SWAP INF] {hap=11A4:app=Lotus Notes_b1
6.5.40.5086:tid=361C:usr=A422353001} Elapsed time for launch: 5.219 seconds
[11/01/2012 16:50:21:003 ???? INF] {tid=32D8:usr=W8WS83} An error
occurred while opening the virtual registry (section: 9), rc:
07B01F0C-0000004A
[11/01/2012 16:50:21:066 ???? INF] {tid=32D8} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A
[11/01/2012 16:50:21:082 SWAP INF] {hap=11A5:app=Adobe Reader X
10.0.1.434:tid=32D8:usr=W8WS83} Elapsed time for upload: 0.703 seconds
[11/01/2012 16:50:22:503 SWAP INF] {hap=11A5:app=Adobe Reader X
10.0.1.434:tid=32D8:usr=W8WS83} Elapsed time for launch: 2.218 seconds
[11/01/2012 16:50:50:395 SWAP INF] {hap=11A5:app=Adobe Reader X
10.0.1.434:tid=32D8:usr=A422353001} App shut down
[11/01/2012 16:53:24:367 ???? INF] {tid=1F80:usr=t405230} An error
occurred while opening the virtual registry (section: 9), rc:
07B01F0C-0000004A
[11/01/2012 16:53:24:383 ???? INF] {tid=1F80} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A
[11/01/2012 16:53:24:383 SWAP INF] {hap=11A6:app=Show Desktop
1.0:tid=1F80:usr=A422353001} Elapsed time for upload: 0.531 seconds
[11/01/2012 16:53:24:727 SWAP INF] {hap=11A7:app=Microsoft Office
Excel 2003_b1 11.0.8324.1:tid=251C:usr=V422357235} Elapsed time for
upload: 0.0 seconds
[11/01/2012 16:53:24:758 SWAP INF] {hap=11A6:app=Show Desktop
1.0:tid=1F80:usr=V47234} Elapsed time for launch: 1.78 seconds
[11/01/2012 16:53:25:117 SWAP INF] {hap=11A6:app=Show Desktop
1.0:tid=1F80:usr=V422357235} App shut down
[11/01/2012 10:45:00:576 ???? INF] {tid=1650} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A ElapR
The Application Virtualization Client could not connect to stream URL
'RTSP://SRVW23E:554/V1321_BDP_V1_R1_SB/V1321_BDP_C1_P2PM_SS.sft' (rc
1690900A-00002002, original rc 1690900A-00002002).
[11/01/2012 00:29:59:843 OSDF ERR] {tid=1464} The Application
Virtualization Client could not parse the OSD file
'C:\SoftCache\SoftGrid Client\OSD
Cache\edCc4305-3f6C-4dcc-3d70-404eb8bd97d8.osd'. Reason: XML parsing
failure (rc 00000A25-00000002)
[11/01/2012 08:24:35:869 ???? ERR] {tid=336C:usr=t405230} corrupt cp
file detected ('V:\V1321_BDP\osguard.cp'). osguard cp file, NO
CORRECTIVE ACTION TAKEN
[11/01/2012 22:16:39:240 JGSW ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The Application Virtualization Client could not connect to stream URL
'RTSP://PSWQAPP1:554/V14678993_BDP_C15_E2AM_SS/V14678993_BDP_C15_E2AM_SS.sft'
(rc 1690900A-00002002, original rc 1690900A-00002002).
[11/01/2012 22:16:39:240 SWAP ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The client was unable to connect to an Application Virtualization Server (rc 1690900A-00002002)
[11/01/2012 22:17:09:163 AMGR ERR] {tid=4F54} The specified
application name (Application Integration) is ambiguous. Some
potential matches: Application Integration 7.0.1756.1756 Application
Integration 9.2.2373.2373
[11/01/2012 22:17:09:163 AMGR ERR] {tid=4F54} The Application
Virtualization Client cannot open Application Integration
[11/01/2012 00:03:14:313 SWAP WRN] {tid=507C:usr=N28712} Could not
load OSD file
\PSWQAPP1\Content\D1311_bDP_Adobe_Reader_9.3.3\D1311_bDP_Adobe_Reader
9.3.3.osd
[11/01/2012 00:03:14:313 AMGR INF] {tid=507C:usr=i435145} The app
manager could not create an application from
'\PSWQAPP1\Content\D1311_bDP_Adob_dobe_Reader_9.3.3\D1311_bDP_Adob_b_Adobe
Reader 9.3.3.osd' (rc 0C405664-00000002).
====
[11/01/2012 13:35:16:987 JGSW ERR] {hap=1:app=Abaculus
1.0.0.1:tid=14C8:usr=R3R7DF42} The Application Virtualization Client could not connect to stream URL
'RTSP:%SFT_SRV%:554/D1311_bDP_Adob_b_Adobe_Abaculus_15_01/D1311_bDP_Adob_b_Adobe_Abaculus_15_01.sft'
(rc 19D02E0A-10000002, original rc 19D02E0A-10000002).
[11/01/2012 13:35:47:998 SWAP ERR] {hap=2:app=AboutPI-SDK
1.3.0.26:tid=1568:usr=I337721} Could not load app [11/01/2012 16:53:25:399 SWAP INF] {hap=11A7:app=Microsoft Office Excel 2003_b1
11.0.8324.1:tid=251C:usr=V47234} Elapsed time for launch: 0.891 seconds
[11/05/2012 10:43:37:527 SWAP INF] {hap=1510:app=Adobe Reader X
10.0.1.434:tid=2AE8:usr=V47234} App shut down
[11/05/2012 10:44:00:793 SWAP INF] {hap=1511:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=1D80:usr=V422357235} Elapsed time for upload:
0.0 seconds
[11/05/2012 10:44:03:809 SWAP INF] {hap=1511:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=1D80:usr=V422357235} Elapsed time for launch:
3.172 seconds
[11/05/2012 10:44:15:965 SWAP INF] {hap=1511:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=1D80:usr=V422357235} App shut down
[11/05/2012 10:44:20:637 SWAP INF] {hap=1512:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=3B9C:usr=V47234} Elapsed time for upload: 0.0
seconds
[11/05/2012 10:44:23:606 SWAP INF] {hap=1512:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=3B9C:usr=V47234} Elapsed time for launch:
3.125 seconds
[11/05/2012 10:44:32:481 SWAP INF] {hap=150B:app=Microsoft Office
Excel 2003_b1 11.0.8324.1:tid=19C:usr=V47234} App shut down
[11/05/2012 10:44:38:575 SWAP INF] {hap=1512:app=Microsoft Office Word
2003_b1 11.0.8324.1:tid=3B9C:usr=E831415} App shut down
[11/05/2012 10:45:00:560 ???? INF] {tid=1650:usr=V47234} An error
occurred while opening the virtual registry (section: 9), rc:
07B01F0C-0000004A
[11/05/2012 10:45:00:576 ???? INF] {tid=1650} An error occurred while
opening the virtual registry (section: 9), rc: 07B01F0C-0000004A ElapR
The Application Virtualization Client could not connect to stream URL
'RTSP://SRVW23E:554/V1321_BDP_V1_R1_SB/V1321_BDP_C1_P2PM_SS.sft' (rc
1690900A-00002002, original rc 1690900A-00002002).
[11/05/2012 00:29:59:843 OSDF ERR] {tid=1464} The Application
Virtualization Client could not parse the OSD file
'C:\SoftCache\SoftGrid Client\OSD
Cache\edCc4305-3f6C-4dcc-3d70-404eb8bd97d8.osd'. Reason: XML parsing
failure (rc 00000A25-00000002)
[11/05/2012 08:24:35:869 ???? ERR] {tid=336C:usr=t405230} corrupt cp
file detected ('V:\V1321_BDP\osguard.cp'). osguard cp file, NO
CORRECTIVE ACTION TAKEN
[11/05/2012 22:16:39:240 JGSW ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The Application Virtualization Client could not connect to stream URL
'RTSP://PSWQAPP1:554/V14678993_BDP_C15_E2AM_SS/V14678993_BDP_C15_E2AM_SS.sft'
(rc 1690900A-00002002, original rc 1690900A-00002002).
[11/05/2012 22:16:39:240 SWAP ERR] {hap=1C82:app=bDP c15 E2AM SS
1.0:tid=3D58} The client was unable to connect to an Application Virtualization Server (rc 1690900A-00002002)
[11/05/2012 22:17:09:163 AMGR ERR] {tid=4F54} The specified
application name (Application Integration) is ambiguous. Some
potential matches: Application Integration 7.0.1756.1756 Application
Integration 9.2.2373.2373
[11/05/2012 22:17:09:163 AMGR ERR] {tid=4F54} The Application
Virtualization Client cannot open Application Integration
[11/05/2012 00:03:14:313 SWAP WRN] {tid=507C:usr=N28712} Could not
load OSD file
\PSWQAPP1\Content\D1311_bDP_Adobe_Reader_9.3.3\D1311_bDP_Adobe_Reader
9.3.3.osd
[11/05/2012 00:03:14:313 AMGR INF] {tid=507C:usr=i435145} The app
manager could not create an application from
'\PSWQAPP1\Content\D1311_bDP_Adob_dobe_Reader_9.3.3\D1311_bDP_Adob_b_Adobe
Reader 9.3.3.osd' (rc 0C405664-00000002).
==== [11/05/2012 13:35:16:987 JGSW ERR] {hap=1:app=Abaculus 1.0.0.1:tid=14C8:usr=R3R7DF42} The Application Virtualization Client could not connect to stream URL
'RTSP:%SFT_SRV%:554/D1311_bDP_Adob_b_Adobe_Abaculus_15_01/D1311_bDP_Adob_b_Adobe_Abaculus_15_01.sft'
(rc 19D02E0A-10000002, original rc 19D02E0A-10000002).
[11/05/2012 13:35:47:998 SWAP ERR] {hap=2:app=AboutPI-SDK
1.3.0.26:tid=1568:usr=I337721} Could not load app
My script always read the above log from current date... and catch the array of errors...
option Explicit
const ForReading = 1, ForWriting = 2, ForAppending = 3
const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
dim arrErrors(5)
dim objFSO, objServerList, objErrorLog, strErrorLine, strError
dim strComputer, strToday, strFilePath, objCoreApp, strLine, today, i
set objFSO = CreateObject("Scripting.FileSystemObject")
set objServerList = objFSO.OpenTextFile("list.txt", ForReading, false, TriStateTrue)
set objErrorLog = objFSO.CreateTextFile("error.log")
strToday = Date()
arrErrors(0) = "The Application Virtualization Client could not connect to stream"
arrErrors(1) = "XML parsing failure"
arrErrors(2) = "corrupt cp file detected"
arrErrors(3) = "The client was unable to connect"
arrErrors(4) = "Virtualization Client cannot open Application Integration"
arrErrors(5) = "Could not load OSD file"
Do while not (objServerList.AtEndOfStream)
strComputer = objServerList.ReadLine
strFilePath = "\\" & strComputer & "\d$\LOGFILES\"
set objCoreApp = objFSO.OpenTextFile(strFilePath & "CoreAPP.txt", ForReading, False, TriStateTrue)
objErrorLog.WriteLine strComputer & vbTab & "," & vbTab & "Checking"
do while not (objCoreApp.AtEndOfStream)
strLine = objCoreApp.ReadLine
'If InStr (strLine, today) = 0 Then
if (left(strLine, len(strToday) + 1) = "[" & strToday) then
strErrorLine = objCoreApp.ReadLine
for i = 0 to ubound(arrErrors)
strError = arrErrors(i)
if (left(lcase(strErrorLine), len(strError)) = lcase(strError)) then
objErrorLog.WriteLine strErrorLine & vbTab & strComputer
exit for
end If
next
end If
loop
objCoreApp.close
loop
objErrorLog.WriteLine "Completed Checking all the servers"
objErrorLog.Close
objServerList.Close
MsgBox "Script Completed"
The Problem with the above script is.. Script able to catch only "corrupt cp file detected"...only... In-fact the above all array cases are true but not catching and writing in the log file... not sure why it is not catching the remaining errors...
looking for help...
When I compile above script with above log file... got below output...
MYserver1 , Checking
corrupt cp file detected adsa MYserver1
Completed Checking all the servers

Related

Oracle virutal machine ERROR_FAIL(0X80004005) hot to fix?

when i start a virtual machine it says aborted then the proceeding message
Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).
Result Code:
E_FAIL (0X80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
ive tried
disableling the audio

Context deadline exceeded

Selenoid is throwing context deadline exceeded after the tests runs for a while. Initially tests runs fine but somewhere after 15-20 mins, it starts throwing exceptions.
Selenoid and Selenoid-ui is run using commands:
./selenoid -conf /home/ec2-user/browsers.json -limit 10 -retry-count 3 -session-attempt-timeout 4m -log-output-dir /home/ec2-user/selenoid-logs -timeout 4m -video-recorder-image "selenoid/video-recorder:latest-release"
./selenoid-ui
Error from console:
selenoid-ui
2019/08/05 18:18:30 [ERROR] [Can't get status: context deadline exceeded]
2019/08/05 18:19:07 Removed client. 0 registered clients
selenoid
2019/08/05 18:04:19 [4093] [CLIENT_DISCONNECTED] [unknown] [xx.xx.xx.xx] [Error: context canceled]
2019/08/05 18:06:44 [4102] [CLIENT_DISCONNECTED] [unknown] [xx.xx.xx.xx] [Error: context canceled]
2019/08/05 18:14:24 [4107] [SESSION_DELETED] [4c4d9e47a8853ba972476cb70ffde4a3]
2019/08/05 18:17:44 [4107] [CLIENT_DISCONNECTED] [unknown] [xx.xx.xx.xx] [Error: context canceled]
2019/08/05 18:18:35 [4105] [CLIENT_DISCONNECTED] [unknown] [xx.xx.xx.xx] [Error: dial tcp 127.0.0.1:33292: i/o timeout]
Test Infrastructure
1) AWS EC2 t2.micro 1 cpu
2) NightwatchJS 1.1.11
3) Chrome 75.0
Additional Issue
I see no sessions logs saved in -log-output-dir and dir has the write permissions.
Tried giving session timeout with 4m but it is not helping.

Bacula: Director's connection to SD for this Job was lost

SD-7.4.4 (ubuntu 16) Director-7.4.4(ubuntu 16) FD-5.2.10 (windows)
I'm having trouble backing up windows clients with Bacula. I can run a backup just fine when the backup size is around 1MB or 2 but when running a backup of 500MB, I get the same error every time
"Director's connection to SD for this Job was lost."
Some things to mention. When I issue status client:
Terminated Jobs: JobId Level Files Bytes Status Finished
======================================================================
81 Full 5,796 514.8 M OK 06-Nov-17 12:50 BackupComputerA
When I issue status dir
06-Nov 17:58 acme-director JobId 81: Error: Director's connection to SD for this Job was lost.
06-Nov 17:58 acme-director JobId 81: Error: Bacula acme-director 7.4.4 (202Sep16):
Build OS: arm-unknown-linux-gnueabihf debian 9.0
JobId: 81
Job: BackupComputerA.2017-11-06_17.41.01_03
Backup Level: Full (upgraded from Incremental)
Client: "Computer-A-fd" 5.2.10 (28Jun12) Microsoft (build 9200), 32-bit,Cross-compile,Win32
FileSet: "Full Set" 2017-11-03 22:12:58
Pool: "RemoteFile" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File1" (From Job resource)
Scheduled time: 06-Nov-2017 17:40:59
Start time: 06-Nov-2017 17:41:04
End time: 06-Nov-2017 17:58:00
Elapsed time: 16 mins 56 secs
Priority: 10
FD Files Written: 5,796
SD Files Written: 0
FD Bytes Written: 514,883,164 (514.8 MB)
SD Bytes Written: 0 (0 B)
Rate: 506.8 KB/s
Software Compression: 100.0% 1.0:1
Snapshot/VSS: yes
Encryption: yes
Accurate: no
Volume name(s):
Volume Session Id: 1
Volume Session Time: 1509989906
Last Volume Bytes: 8,045,880,119 (8.045 GB)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: OK
SD termination status: Error
Termination: *** Backup Error ***
About 5 minutes into the backup, I get a message:
Running Jobs:
Console connected at 06-Nov-17 18:08
JobId Type Level Files Bytes Name Status
======================================================================
83 Back Full 0 0 BackupComputerE has terminated
====
The job completes and terminates but loses connection afterwards and I never get a
"OK"
for the status update.
I have added the "Heartbeat Interval = 1 Minute" to all the Daemons and still no luck. Using mysql as the database on the Director
Future thanks for any help
For anyone having the same issues, I was able to fix this problem between the SD and director by adding the heartbeat interval to the clients and adjusting the keep alive time with
sysctl -w net.ipv4.tcp_keepalive_time=60
on both the Storage daemon and the director. Connecting remotely to the director with the bconsole also interrupted jobs so I ran bconsole on the same machine as the director and connected via ssh.

Apache Twill HelloWorld example fails

When I run Apache twill HelloWorld example as stated in http://twill.incubator.apache.org/GettingStarted.html I get this log:
10:44:47.888 [ STARTING] DEBUG o.a.twill.yarn.YarnTwillController -
Yarn application status for HelloWorldRunnable
application_1443786884805_0185: ACCEPTED
10:44:48.383 [ STARTING-SendThread(hadice.dev:2181)] DEBUG org.apache.zookeeper.ClientCnxn -
Got ping response for sessionid: 0x15028da0ff0009d after 0ms
10:44:48.889 [IPC Parameter Sending Thread #0] DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root sending #45
10:44:48.894 [IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root]
DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root got value #45
10:44:48.894 [ STARTING] DEBUG o.a.hadoop.ipc.ProtobufRpcEngine - Call: getApplicationReport took 6ms
10:44:48.895 [ STARTING] DEBUG o.a.twill.yarn.YarnTwillController -
Yarn application status for HelloWorldRunnable application_1443786884805_0185:
ACCEPTED
10:44:49.711 [Kafka-Consumer-log-0] DEBUG o.a.t.i.k.client.SimpleKafkaConsumer -
No leader for topic partition TopicPartition{topic=log, partition=0}.
10:44:49.895 [IPC Parameter Sending Thread #0] DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root sending #46
10:44:49.902 [IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root] DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root got value #46
10:44:49.902 [ STARTING] DEBUG o.a.hadoop.ipc.ProtobufRpcEngine - Call: getApplicationReport took 7ms
10:44:49.902 [ STARTING] DEBUG o.a.twill.yarn.YarnTwillController -
Yarn application status for HelloWorldRunnable application_1443786884805_0185:
FAILED
10:44:50.902 [ STARTING] INFO o.a.twill.yarn.YarnTwillController -
Yarn application HelloWorldRunnable application_1443786884805_0185 is in state
FAILED
10:44:50.903 [ STARTING] INFO o.a.twill.yarn.YarnTwillController -
Yarn application HelloWorldRunnable application_1443786884805_0185 is not in running state. Shutting down controller.
10:44:50.907 [IPC Parameter Sending Thread #0] DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root sending #47
10:44:50.908 [ STARTING-SendThread(hadice.dev:2181)] DEBUG org.apache.zookeeper.ClientCnxn -
Reading reply sessionid:0x15028da0ff0009d, packet::
clientPath:/HelloWorldRunnable/instances/5e72cb8c-cf94-4718-a44b-ec983304efa0
serverPath:/HelloWorldRunnable/instances/5e72cb8c-cf94-4718-a44b-ec983304efa0
finished:false header:: 10,3 replyHeader:: 10,1797,-101 request:: '/HelloWorldRunnable/instances/5e72cb8c-cf94-4718-a44b-ec983304efa0,T response::
10:44:50.913 [IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root] DEBUG org.apache.hadoop.ipc.Client -
IPC Client (431687661) connection to gin1.dev/10.0.22.129:8032 from root got value #47
10:44:50.913 [ STOPPING] DEBUG o.a.hadoop.ipc.ProtobufRpcEngine - Call: getApplicationReport took 6ms
10:44:50.916 [ STOPPING] DEBUG o.a.twill.yarn.YarnTwillController -
Yarn application HelloWorldRunnable application_1443786884805_0185 completed with status
FAILED
The Application gets ACCEPTed but then transitions to the "FAILED" state.
The YARN Web UI shows this as the error (very unspecific):
Application application_1443786884805_0185 failed 2 times due to AM Container for appattempt_1443786884805_0185_000002 exited with exitCode: 1
For more detailed output, check application tracking page:http://gin1.dev:8088/proxy/application_1443786884805_0185/Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1443786884805_0185_02_000001
Exit code: 1
Stack trace: ExitCodeException exitCode=1:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
at org.apache.hadoop.util.Shell.run(Shell.java:455)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715)
at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Container exited with a non-zero exit code 1
Failing this attempt. Failing the application.
And the node log shows:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
at java.lang.Class.privateGetMethodRecursive(Class.java:3040)
at java.lang.Class.getMethod0(Class.java:3010)
at java.lang.Class.getMethod(Class.java:1776)
at org.apache.twill.launcher.TwillLauncher.main(TwillLauncher.java:85)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
What can be wrong? I supposed that hadoop classes should be on classpath in yarn application. How to fix that?
I assume you are launching the application with the result of hadoop classpath in the classpath (as shown in the example). You need to make sure the result of running hadoop classpath on launcher box points to local paths that contain hadoop jars. The other thing you might want to check is the stdout file in the container log directory. It prints out classpath that it uses to launch the application and see if you find hadoop jars there.

Tomcat Connection Pool Exhausted

I'm using Apache Tomcat JDBC connection pooling in my project. I'm confused because under heavy load I keep seeing the following error:
12:26:36,410 ERROR [] (http-/XX.XXX.XXX.X:XXXXX-X) org.apache.tomcat.jdbc.pool.PoolExhaustedException: [http-/XX.XXX.XXX.X:XXXXX-X] Timeout: Pool empty. Unable to fetch a connection in 10 seconds, none available[size:4; busy:4; idle:0; lastwait:10000].
12:26:36,411 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/APP].[AppConf]] (http-/XX.XXX.XXX.X:XXXXX-X) JBWEB000236: Servlet.service() for servlet AppConf threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
My expectation was that with pooling, requests for new connections would be held in a queue until a connection became available. Instead it seems that requests are rejected when the pool has reached capacity. Can this behaviour be changed?
Thanks,
Dal
This is my pool configuration:
PoolProperties p = new PoolProperties();
p.setUrl("jdbc:oracle:thin:#" + server + ":" + port + ":" + SID_SVC);
p.setDriverClassName("oracle.jdbc.driver.OracleDriver");
p.setUsername(username);
p.setPassword(password);
p.setMaxActive(4);
p.setInitialSize(1);
p.setMaxWait(10000);
p.setRemoveAbandonedTimeout(300);
p.setMinEvictableIdleTimeMillis(150000);
p.setTestOnBorrow(true);
p.setValidationQuery("SELECT 1 from dual");
p.setMinIdle(1);
p.setMaxIdle(2);
p.setRemoveAbandoned(true);
p.setJdbcInterceptors(
"org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
+ "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
+ "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer");
This working as per design/implementation, if you see the log Timeout: Pool empty. Unable to fetch a connection in 10 seconds and your configuration is p.setMaxWait(10000);. The requesting thread waits for 10seconds(10000 millseconds, maxwait) before giving up waiting for connection.
Now you have two solutions, increase the number of maxActive connection or check if there are any connection leaks/long running queries(which you do not expect).