Skip to Content
author's profile photo Former Member
Former Member

Error while adding project to cluster

I have created two nodes "node1" and "node2" and configured CCR file as follows:

<?xml version="1.0" encoding="UTF-8"?>

<Configuration xmlns="http://www.sybase.com/esp/project_config/2010/08/">

<Runtime>

<Clusters>

<!-- we need this only if we have a project/stream binding -->

<Cluster name="cluster1" type="local">

<Username>studio</Username>

<Password>sap123</Password>

</Cluster>

</Clusters>

<Bindings>

<Binding name="BaseInput">

<Cluster>cluster1</Cluster> <!-- this is always needed -->

<Workspace>test</Workspace>

<Project>test</Project>

<BindingName>BaseInputBinding</BindingName> <!-- this is for plat-in adapter name-->

<RemoteStream>BaseInput</RemoteStream>

</Binding>

</Bindings>

<AdaptersPropertySet>

<PropertySet name="Atom Feed Input">

<Property name="URL"></Property>

</PropertySet>

...

</AdaptersPropertySet>

</Runtime>


<Deployment>

<Project ha="false"> // no active-active deployment

<Options>

<Option name="time-granularity" value="5"/>

<Option name="debug-level" value="4"/>

</Options>

<Instances>

<Instance name="primary">

<Affinities>

<!-- By default no need to put affinity. -->

<Affinity type="controller" charge="positive" strength="strong" value="node1"/>

<Affinity type="instance" charge="negative" strength="strong" value="secondary"/>

</Affinities>

</Instance>

<Instance name="secondary">

<Affinities>

<!-- By default no need to put affinity. -->

<Affinity type="controller" charge="positive" strength="weak" value="node2"/>

<Affinity type="instance" charge="negative" strength="strong" value="primary"/>

</Affinities>

</Instance>

</Instances>

</Project>

<Cluster>

<Failover enable="true">

<FailureInterval>120</FailureInterval>

<FailuresPerInterval>4</FailuresPerInterval>

</Failover>

<Affinities>

<Affinity type="controller" charge="positive">myController</Affinity>

</Affinities>

</Cluster>

</Deployment>

</Configuration>

I have started two nodes "node1" and node2" and try to add project to cluster using following command:

esp_cluster_admin --uri=esp://10.66.186.103:9786 --username=studio --password=sap123 --add_project --project-name=jmsxmlinput --workspace-name=test--ccx=test.ccx --ccr=test.ccr

I got following error

[error] Passed in key must select exactly one node: Failover

How to fix this error?

Thanks

Shashi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 11, 2014 at 02:55 PM

    Hi Shashi,

    I would like to try to reproduce this problem in my environment. Can you provide the node1.xml and node2.xml files and where each are started and how they are started. Are they on the same machine? What is the OS environment? Are you using ESP 5.1 SP04?

    Please can you also provide the project files you are using. Did you use the ESP Studio to create the CCR, if not, where did it come from?

    Thank you,

    Alice

    Message was edited by: Alice Silverstein Added "Please can you also provide the project files you are using. Did you use the ESP Studio to create the CCR, if not, where did it come from?"

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Alice Mark

      Hi Alice,


      It is working fine. Thank you very much.

      I started two nodes from two different hosts.

      When I added project to the cluster, it started running on both the hosts and both were getting data.

      Since I have to persist data in HANA, there will be duplicate entries in the table (both application instances enters data in the table).

      I want to setup a cluster such that, when I add a project, it should start on one host and when that host fails, another host should come-up with new project instance. Second host should recover project state from the log store.

      Currently I am looking at setting up the log store.

      I need help/suggestion to setup above mentioned cluster.

      Thanks

      Shashi

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.