Hi, 1- change the following <service> entry in * $GLOBUS_LOCATION/etc/globus_wsrf_mds_index/server-config.wsdd* according to :
<service name="DefaultIndexService" provider="Handler" > use="literal" style="document"> > <parameter name="providers" > value="* > org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection* > > org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider > GetRPProvider > GetMRPProvider > QueryRPProvider > DestroyProvider > SetTerminationTimeProvider > SubscribeProvider > GetCurrentMessageProvider"/> > > *<parameter name="rpProviderConfigFile" > value="/etc/globus_wsrf_mds_index/rp-provider-config-gluece.xml"/>* > <parameter name="handlerClass" > value="org.globus.axis.providers.RPCProvider"/> > <parameter name="scope" value="Application"/> > <parameter name="allowedMethods" value="*"/> > <parameter name="className" > value="org.globus.mds.index.impl.DefaultIndexService"/> > <wsdlFile>share/schema/mds/index/index_service.wsdl</wsdlFile> > </service> > 2- make sure that *$GLOBUS_LOCATION/etc/globus_wsrf_mds_index/rp-provider-config-gluece.xml *is addressed correctly: there is a sample for this configuration file available at *$GLOBUS_LOCATION/etc/globus_wsrf_mds_usefulrp/gluece-rpprovider-sample-config.xml *: <?xml version="1.0" encoding="UTF-8"?> > <!-- > Copyright 1999-2006 University of Chicago > > Licensed under the Apache License, Version 2.0 (the "License"); > you may not use this file except in compliance with the License. > You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > See the License for the specific language governing permissions and > limitations under the License. > --> > <!-- > Sample configuration file for GLUECE resource property provider. > > This sample configures the provider to generate cluster information > using > Ganglia on the localhost with the default Ganglia port, and configures > PBS > as the scheduler information provider. The period of execution is set > to > 300 seconds for each information provider, but may be configured > seperately > if desired. > > Also note if the arguments to the GangliaElementProducer are ommitted > or > removed, the code will assume the default values of 'localhost' and > '8649' > for the Ganglia host and port. > --> > > <ns1:ResourcePropertyProviderConfigArray > xsi:type="ns1:ResourcePropertyProviderConfigArray" xmlns:ns1=" > http://mds.globus.org/rpprovider/2005/08" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > <ns1:resourcePropertyProviderConfiguration > xsi:type="ns1:resourcePropertyProviderConfig"> > <ns1:resourcePropertyName xsi:type="xsd:QName" xmlns:mds=" > http://mds.globus.org/glue/ce/1.1">mds:GLUECE</ns1:resourcePropertyName> > <ns1:resourcePropertyImpl > xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.GLUEResourceProperty</ns1:resourcePropertyImpl> > <ns1:resourcePropertyElementProducers > xsi:type="ns1:resourcePropertyElementProducerConfig"> > <ns1:className > xsi:type="xsd:string">org.globus.mds.usefulrp.glue.GangliaElementProducer</ns1:className> > <ns1:arguments xsi:type="xsd:string">localhost</ns1:arguments> > <ns1:arguments xsi:type="xsd:string">8649</ns1:arguments> > <ns1:period xsi:type="xsd:int">300</ns1:period> > <ns1:transformClass > xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.transforms.GLUEComputeElementTransform</ns1:transformClass> > </ns1:resourcePropertyElementProducers> > <ns1:resourcePropertyElementProducers > xsi:type="ns1:resourcePropertyElementProducerConfig"> > <ns1:className > xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.producers.SchedulerInfoElementProducer</ns1:className> > <ns1:arguments xsi:type="xsd:string">* > libexec/globus-scheduler-provider-fork*</ns1:arguments> > <ns1:transformClass > xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.transforms.GLUESchedulerElementTransform</ns1:transformClass> > <ns1:period xsi:type="xsd:int">300</ns1:period> > </ns1:resourcePropertyElementProducers> > </ns1:resourcePropertyProviderConfiguration> > </ns1:ResourcePropertyProviderConfigArray> > 3- change $GLOBUS_LOCATION/etc/globus_wsrf_mds_usefulrp/gluerp.xml to use Ganglia as the default provider: <defaultProvider>*java org.globus.mds.usefulrp.glue.GangliaElementProducer* > </defaultProvider> > 4- that's all, you sould have the information in the *DefaultIndexService*now. (accessible through webMDS or globus-wsrf-query) Cheers, Shayan http://www3.ntu.edu.sg/home5/shay0001/ --- What do you do to protect our planet? Be considerate: Cut back on air conditioning and heating use if you can. 2009/2/25 Ritesh Badwaik <[email protected]> > Hi, > Can anyone tell me , how to configure ganglia with globus-4.2.1 > > Thanks and Regards > Ritesh >
