Dear all,
I modified some demo java code to submit a job to a
node(g3.grid.cn:192.168.1.179), the container error message give me a hint to
setstagingCredentialEndpoint.
I am a newbie,do not know how to worte the code,and wrote some codes like that :
////////////////////////////////////////////////////////////
ExtendedGSSManager manager =
(ExtendedGSSManager)ExtendedGSSManager.getInstance();
GSSCredential cred =
manager.createCredential(GSSCredential.INITIATE_AND_ACCEPT);
GlobusCredential userGlobusCred =
((GlobusGSSCredentialImpl)cred).getGlobusCredential();
HostAuthorization iA = new HostAuthorization();
ClientSecurityDescriptor secDesc = new ClientSecurityDescriptor();
secDesc.setGSITransport(Constants.ENCRYPTION);
secDesc.setAuthz(iA);
secDesc.setGSSCredential(cred);
String delegationUri="https://" + nodeHostname +
":8443/wsrf/services/DelegationFactoryService";
EndpointReferenceType delegFactoryEndpoint =
DelegationServiceEndpoint.getInstance().getDelegationServiceEndpoint();
X509Certificate certToSign =
DelegationUtil.getCertificateChainRP(delegFactoryEndpoint, secDesc)[0];
EndpointReferenceType credentialEndpoint =
DelegationUtil.delegate(delegationUri,userGlobusCred,certToSign,lifetime,true,secDesc);
jobDescription.setJobCredentialEndpoint(credentialEndpoint);
jobDescription.setStagingCredentialEndpoint(credentialEndpoint);
///////////////////////////////////////////////////////////
but the container's output is:
///////////////////////////////////////////////////////////
2007-12-18 10:13:35,286 DEBUG utils.DelegatedCredential
[RunQueueThread_4,getCredential:362] waiting to receive initial credential...
2007-12-18 10:13:35,286 DEBUG utils.DelegatedCredential
[RunQueueThread_4,getCredential:370] done waiting...
2007-12-18 10:13:35,289 DEBUG utils.WSStagingHelper
[RunQueueThread_4,setStagingStubSecurity:451]
[resourceKey:d61a7dc0-ad0e-11dc-b716-92e57673f332] Using RFT Authorization
subject null
2007-12-18 10:13:35,289 DEBUG utils.WSStagingHelper
[RunQueueThread_4,setStagingStubSecurity:454]
[resourceKey:d61a7dc0-ad0e-11dc-b716-92e57673f332] Staging Subject: -->null<--
2007-12-18 10:13:35,289 DEBUG utils.WSStagingHelper
[RunQueueThread_4,setStagingStubSecurity:511] Found host and cert configuration.
2007-12-18 10:13:35,291 DEBUG utils.WSStagingHelper
[RunQueueThread_4,submitStagingRequest:120]
[resourceKey:d61a7dc0-ad0e-11dc-b716-92e57673f332] calling
RFTF.createReliableFileTransfer()
2007-12-18 10:13:35,433 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:460]
Fault Class: class org.globus.exec.generated.StagingFaultType
2007-12-18 10:13:35,433 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:461]
Resource Key:
{http://www.globus.org/namespaces/2004/10/gram/job}ResourceID=d61a7dc0-ad0e-11dc-b716-92e57673f332
2007-12-18 10:13:35,433 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:462]
Description: Staging error for RSL element fileStageIn.
2007-12-18 10:13:35,433 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:463]
Cause:
2007-12-18 10:13:35,434 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:464]
State when failure occurred StageIn
2007-12-18 10:13:35,434 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:466]
Script Command: StageIn
2007-12-18 10:13:35,434 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:467]
GT2 Error Code: 0
2007-12-18 10:13:35,437 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:514]
setting fault cause
2007-12-18 10:13:35,438 DEBUG utils.FaultUtils [RunQueueThread_4,makeFault:519]
Script Command: StageIn
2007-12-18 10:13:35,438 DEBUG
ManagedJobResourceImpl.d61a7dc0-ad0e-11dc-b716-92e57673f332
[RunQueueThread_4,setFault:346] fault element name: StagingFaultType
2007-12-18 10:13:35,439 DEBUG
ManagedJobResourceImpl.d61a7dc0-ad0e-11dc-b716-92e57673f332
[RunQueueThread_4,setFault:350] fault element name: StagingFault
2007-12-18 10:13:35,439 DEBUG
ManagedJobResourceImpl.d61a7dc0-ad0e-11dc-b716-92e57673f332
[RunQueueThread_4,setFault:353] fault element name: stagingFault
...
//////////////////////////////////////////////////////////////
The container's debug infos including Perl Job Description;
//////////////////////////////////////////
2007-12-18 10:13:35,526 DEBUG exec.StateMachine
[RunQueueThread_5,runScript:2972] Perl Job Description: $description = {
jobtype => [ 'single' ],
jobdir => [ '/home/wanlin/.globus/d61a7dc0-ad0e-11dc-b716-92e57673f332' ],
stdout => [ '/tmp/stdout' ],
count => [ '1' ],
executable => [ '/tmp/runrenderworker' ],
stderr => [ '/tmp/stderr' ],
xmlextensions => [ '1' ],
stagingcredentialendpoint => [ 'Address:
https://192.168.1.179:8443/wsrf/services/DelegationService
Reference property[0]:
<ns1:DelegationKey
xmlns:ns1="http://www.globus.org/08/2004/delegationService">d5b07150-ad0e-11dc-b716-92e57673f332</ns1:DelegationKey>
' ],
condoros => [ 'LINUX' ],
stdin => [ '/dev/null' ],
factoryendpoint => [ 'Address:
https://g3.grid.cn:8443/wsrf/services/ManagedJobFactoryService
Reference property[0]:
<ns5:ResourceID
xmlns:ns5="http://www.globus.org/namespaces/2004/10/gram/job">Fork</ns5:ResourceID>
' ],
useforkstarter => [ '1' ],
arguments => [
'https://g3.grid.cn:8443/wsrf/services/render/RenderSourceService', '0' ],
environment => [ [ 'GLOBUS_LOCATION', '/usr/local/globus-4.0.5' ], [
'X509_CERT_DIR', '/etc/grid-security/certificates' ], [ 'X509_USER_PROXY', ''
], [ 'X509_USER_CERT', '' ], [ 'X509_USER_KEY', '' ], [ 'HOME', '/home/wanlin'
], [ 'LOGNAME', 'wanlin' ], [ 'SCRATCH_DIRECTORY',
'/home/wanlin/.globus/scratch' ], [ 'JAVA_HOME', '/usr/java/jdk1.6.0_03/jre' ],
[ 'GLOBUS_GRAM_JOB_HANDLE',
'https://192.168.1.179:8443/wsrf/services/ManagedExecutableJobService?d61a7dc0-ad0e-11dc-b716-92e57673f332'
], ],
directory => [ '/tmp' ],
condorarch => [ 'INTEL' ],
};
////////////////////////////////////////////////////////
/////////////////////////////////////////////////////
2007-12-18 10:13:36,145 DEBUG StateMachine.audit
[RunQueueThread_9,logAuditRecord:3495] update:
"https://192.168.1.179:8443/wsrf/services/ManagedExecutableJobService?HCNR+6gwawADD9A+8twUDr3CIX8=","NULL","/O=Grid/OU=GlobusTest/OU=simpleCA-g4.grid.cn/OU=grid.cn/CN=wanlin","wanlin","NULL","Tue
Dec 18 10:13:34 GMT+08:00
2007","NULL","NULL","NULL","NULL","4.0.5","Fork","<ns1:serviceLevelAgreement
xmlns:ns1="http://www.globus.org/namespaces/2004/10/gram/job/description"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:ServiceLevelAgreementType">
<ns1:job xsi:type="ns1:JobDescriptionType">
<ns1:factoryEndpoint
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xsi:type="ns2:EndpointReferenceType">
<ns2:Address
xsi:type="ns2:AttributedURI">https://g3.grid.cn:8443/wsrf/services/ManagedJobFactoryService</ns2:Address>
<ns2:ReferenceProperties xsi:type="ns2:ReferencePropertiesType">
<ns5:ResourceID
xmlns:ns5="http://www.globus.org/namespaces/2004/10/gram/job">Fork</ns5:ResourceID>
</ns2:ReferenceProperties>
<ns2:ReferenceParameters xsi:type="ns2:ReferenceParametersType"/>
</ns1:factoryEndpoint>
<ns1:stagingCredentialEndpoint
xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xsi:type="ns3:EndpointReferenceType">
<ns3:Address
xsi:type="ns3:AttributedURI">https://192.168.1.179:8443/wsrf/services/DelegationService</ns3:Address>
<ns3:ReferenceProperties xsi:type="ns3:ReferencePropertiesType">
<ns1:DelegationKey
xmlns:ns1="http://www.globus.org/08/2004/delegationService">d5b07150-ad0e-11dc-b716-92e57673f332</ns1:DelegationKey>
</ns3:ReferenceProperties>
<ns3:ReferenceParameters xsi:type="ns3:ReferenceParametersType"/>
</ns1:stagingCredentialEndpoint>
<ns1:executable xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">/tmp/runrenderworker</ns1:executable>
<ns1:directory xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">/tmp</ns1:directory>
<ns1:argument xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">https://g3.grid.cn:8443/wsrf/services/render/RenderSourceService</ns1:argument>
<ns1:argument xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">0</ns1:argument>
<ns1:stdout xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">/tmp/stdout</ns1:stdout>
<ns1:stderr xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">/tmp/stderr</ns1:stderr>
<ns1:count xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:positiveInteger">1</ns1:count>
<ns1:jobType xsi:type="ns1:JobTypeEnumeration">single</ns1:jobType>
<ns1:fileStageIn
xmlns:ns4="http://www.globus.org/namespaces/2004/10/rft"
xsi:type="ns4:TransferRequestType">
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/runrenderworker</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/runrenderworker</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/RenderWorker.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/RenderWorker.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/com_ibm_redbook_gridintro_render_stubs.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/com_ibm_redbook_gridintro_render_stubs.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-awt-util.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-awt-util.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-bridge.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-bridge.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-css.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-css.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-dom.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-dom.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-ext.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-ext.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-gvt.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-gvt.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-parser.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-parser.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-rasterizer.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-rasterizer.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-script.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-script.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-svg-dom.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-svg-dom.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-transcoder.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-transcoder.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-util.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-util.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/batik-xml.jar</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/batik-xml.jar</ns4:destinationUrl>
</ns4:transfer>
<ns4:transfer xsi:type="ns4:TransferType">
<ns4:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/home/wanlin/render/mapSpain.svg</ns4:sourceUrl>
<ns4:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/mapSpain.svg</ns4:destinationUrl>
</ns4:transfer>
</ns1:fileStageIn>
<ns1:fileStageOut
xmlns:ns5="http://www.globus.org/namespaces/2004/10/rft"
xsi:type="ns5:TransferRequestType">
<ns5:transfer xsi:type="ns5:TransferType">
<ns5:sourceUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/mapSpain-0-0.jpg</ns5:sourceUrl>
<ns5:destinationUrl xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">gsiftp://g3.grid.cn:2811/tmp/renderresult/mapSpain-0-0.jpg</ns5:destinationUrl>
</ns5:transfer>
</ns1:fileStageOut>
</ns1:job>
</ns1:serviceLevelAgreement>","false","true"
////////////////////////////////////////////////////////////////////////
Can anyone help me? Thanks in advance.
-----------------------------------------------
Lin Wan
2007-12-18
--------------
万林
2007-12-18