You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by ericp56 <er...@twcable.com> on 2009/04/14 19:34:10 UTC

Farming questions

Hello,

I am using Geronimo 2.1.3

I tried following http://cwiki.apache.org/GMOxDOC21/farming.html but nothing
happens as expected.

I am trying to add nuce29 as a cluster member, and nuce10 is the deployment
"base"

So, in nuce29's config.xml:
    <module name="org.apache.geronimo.configs/farming/2.1.3/car">
        <gbean
name="org.apache.geronimo.configs/farming/2.1/car?ServiceModule=org.apache.geronimo.configs/farming/2.1/car,j2eeType=NodeInfo,name=NodeInfo2"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NUCE10</attribute>
            <attribute
propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean
class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"
xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager123</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">nuce10</ns:property>
                    <ns:property name="port">1100</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>
        <gbean name="ClusterInfo">
            <attribute name="name">${clusterName}</attribute>
        </gbean>
    </module>

In nuce10's:
    <module name="org.apache.geronimo.configs/farming/2.1.3/car">
        <gbean name="ClusterInfo">
            <attribute name="name">${clusterName}</attribute>
        </gbean>
    </module>

clusterName = NUCEPROD


In the Geronimo shell, I try:
deploy/distribute  --targets NUCEPROD,name=MasterConfigurationStore
HealthMonitor.war 
and get:
ERROR DeploymentException: No target named or matching
'name=NUCEPROD,MasterConfigurationStore' was found

If I try:
deploy/distribute  --targets name=MasterConfigurationStore HealthMonitor.war 
then it deploys it on NUCE10 as  twcable/HealthMonitor_G_SLAVE/1.0/car and
not on NUCE29.  And also, the app fails to start on NUCE10, but I don't want
it there anyway.


What am I doing wrong?

Thanks,

Eric




-- 
View this message in context: http://www.nabble.com/Farming-questions-tp23044218s134p23044218.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Farming questions

Posted by viola lu <vi...@gmail.com>.
Can you show your error output?thanks.

On Fri, Apr 17, 2009 at 12:31 AM, ericp56 <er...@twcable.com>wrote:

>
> Thanks for your help.
>
> I'll update the documentation because there was a "gotcha" in the example.
> I didn't notice the ID in the gbean name attribute.  When I had multiple
> entries for each server in the farm, G would reduce the list down to the
> first entry, because the names (the one in italics) were essentially
> referring to the same server.  Now that I make that unique for each farm
> member, all is well.
>
>        <gbean
>
> name="org.apache.geronimo.configs/farming/2.1/car?ServiceModule=org.apache.geronimo.configs/farming/2.1/car,j2eeType=NodeInfo,name=NUCE29"
> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
>             <attribute name="name">NUCE29</attribute>
>             <attribute
>
> propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
> name="extendedJMXConnectorInfo">
>                <ns:javabean
> class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
> xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"
> xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
> xmlns="">
>                    <ns:property name="username">system</ns:property>
>                     <ns:property name="password">manager</ns:property>
>                     <ns:property name="protocol">rmi</ns:property>
>                     <ns:property name="host">nuce29</ns:property>
>                    <ns:property name="port">1099</ns:property>
>                     <ns:property name="urlPath">JMXConnector</ns:property>
>                    <ns:property name="local">false</ns:property>
>          </ns:javabean></attribute>
>        </gbean>
>
> --
> View this message in context:
> http://www.nabble.com/Farming-questions-tp23044218s134p23081626.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


-- 
viola

Re: Farming questions

Posted by ericp56 <er...@twcable.com>.
Thanks for your help.

I'll update the documentation because there was a "gotcha" in the example. 
I didn't notice the ID in the gbean name attribute.  When I had multiple
entries for each server in the farm, G would reduce the list down to the
first entry, because the names (the one in italics) were essentially
referring to the same server.  Now that I make that unique for each farm
member, all is well.

        <gbean
name="org.apache.geronimo.configs/farming/2.1/car?ServiceModule=org.apache.geronimo.configs/farming/2.1/car,j2eeType=NodeInfo,name=NUCE29"
gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
            <attribute name="name">NUCE29</attribute>
            <attribute
propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
name="extendedJMXConnectorInfo">
                <ns:javabean
class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"
xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
xmlns="">
                    <ns:property name="username">system</ns:property>
                    <ns:property name="password">manager</ns:property>
                    <ns:property name="protocol">rmi</ns:property>
                    <ns:property name="host">nuce29</ns:property>
                    <ns:property name="port">1099</ns:property>
                    <ns:property name="urlPath">JMXConnector</ns:property>
                    <ns:property name="local">false</ns:property>
          </ns:javabean></attribute>
        </gbean>

-- 
View this message in context: http://www.nabble.com/Farming-questions-tp23044218s134p23081626.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Farming questions

Posted by viola lu <vi...@gmail.com>.
Pls first make sure node nuce10 :

 clusterNodeName=NODE --> clusterNodeName=nuce10
RemoteDeployHostname=localhost ->RemoteDeployHostname=$your_nuce10_ip

in file $G_install_dir\var\config\config-substitutions.properties,

and config.xml file is
org.apache.geronimo.configs/farming/2.1/car should be
org.apache.geronimo.configs/farming/2.1.3/car
<ns:property name="host">nuce29</ns:property>should be <ns:property
name="host">$Your_nuce29_IP</ns:property>
and do the same thing on node nuce29

then run command on nuce10
deploy.bat/sh --user system --password manager start
org.apache.geronimo.configs/farming//car
deploy.bat/sh --user system --password manager --host nuce29_IP --port
[nuice20_rmi_port] start org.apache.geronimo.configs/farming//car

deploy.bat/sh --user system --password manager deploy --targets
org.apache.geronimo.configs/farming/2.1.3/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.3/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore
your_application your_cluster_plan.xml

Good Luck!



On Wed, Apr 15, 2009 at 1:34 AM, ericp56 <er...@twcable.com>wrote:

>
> Hello,
>
> I am using Geronimo 2.1.3
>
> I tried following http://cwiki.apache.org/GMOxDOC21/farming.html but
> nothing
> happens as expected.
>
> I am trying to add nuce29 as a cluster member, and nuce10 is the deployment
> "base"
>
> So, in nuce29's config.xml:
>    <module name="org.apache.geronimo.configs/farming/2.1.3/car">
>        <gbean
>
> name="org.apache.geronimo.configs/farming/2.1/car?ServiceModule=org.apache.geronimo.configs/farming/2.1/car,j2eeType=NodeInfo,name=NodeInfo2"
> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
>            <attribute name="name">NUCE10</attribute>
>            <attribute
>
> propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
> name="extendedJMXConnectorInfo">
>                <ns:javabean
> class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
> xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"
> xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"
> xmlns="">
>                    <ns:property name="username">system</ns:property>
>                    <ns:property name="password">manager123</ns:property>
>                    <ns:property name="protocol">rmi</ns:property>
>                    <ns:property name="host">nuce10</ns:property>
>                    <ns:property name="port">1100</ns:property>
>                    <ns:property name="urlPath">JMXConnector</ns:property>
>                    <ns:property name="local">false</ns:property>
>          </ns:javabean></attribute>
>        </gbean>
>        <gbean name="ClusterInfo">
>            <attribute name="name">${clusterName}</attribute>
>        </gbean>
>    </module>
>
> In nuce10's:
>    <module name="org.apache.geronimo.configs/farming/2.1.3/car">
>        <gbean name="ClusterInfo">
>            <attribute name="name">${clusterName}</attribute>
>        </gbean>
>    </module>
>
> clusterName = NUCEPROD
>
>
> In the Geronimo shell, I try:
> deploy/distribute  --targets NUCEPROD,name=MasterConfigurationStore
> HealthMonitor.war
> and get:
> ERROR DeploymentException: No target named or matching
> 'name=NUCEPROD,MasterConfigurationStore' was found
>
> If I try:
> deploy/distribute  --targets name=MasterConfigurationStore
> HealthMonitor.war
> then it deploys it on NUCE10 as  twcable/HealthMonitor_G_SLAVE/1.0/car and
> not on NUCE29.  And also, the app fails to start on NUCE10, but I don't
> want
> it there anyway.
>
>
> What am I doing wrong?
>
> Thanks,
>
> Eric
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Farming-questions-tp23044218s134p23044218.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


-- 
viola