Hi,
I've modified step 5 in [1] to read as follows. Please review.
1.
Optionally in order to view the cluster information in the Cassandra
Keyspaces List UI, add a file named *cassandra-endpoint.xml*in
<BAM_HOME>/repository/conf/etc with following configuration. The
*cassandra-endpoint.xml* file is required when deploying the backend
Cassandra cluster in a IaaS like AWS. IaaS may not provide real IPs, hence
it is necessary to use this configuration file to list the mapped real IPs.
<Cassandra>
<EndPoints>
<EndPoint><HostName>name_of_machine1(BAM N1)</HostName></EndPoint>
<EndPoint><HostName>name_of_machine2(BAM N2)</HostName></EndPoint>
</EndPoints>
</Cassandra>
When configuring an external Cassandra cluster, you must additionally
enable clustering in the <BAM_HOME>/repository/conf/axis2/axis2.xml file.
<clustering class=
"org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
enable="true">
[1] - https://docs.wso2.com/display/CLUSTER420/Configuring+Cassandra+for+BAM
Thanks,
Sam
*Samuel Gnaniah*
Senior Technical Writer
WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798
On Mon, Jul 28, 2014 at 1:25 PM, Deependra Ariyadewa <[email protected]> wrote:
>
>
>
> On Mon, Jul 28, 2014 at 1:12 PM, Rajith Siriwardena <[email protected]>
> wrote:
>
>> This was solved by enabling axis2 clustering in each nodes. Since we
>> need distributed cache enabled between all the nodes.
>>
>> hi Doc team/ Deep,
>>
>> I guess for the point five "Optionally in order to view the cluster
>> information in the Cassandra Keyspaces List UI" in [1], enabling axis2
>> configuration should also be added.
>>
>
> We need to enable Axis2 clustering when there is an external Cassandra
> cluster.
>
> cassandra-endpoint.xml is needed when we deploy the backend Cassandra
> cluster in a IaaS like AWS. Most of the time IaaS does not provide real IPs
> therefore we have to use this config file to list the mapped real IPs.
>
>
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER420/Configuring+Cassandra+for+BAM
>>
>>
>> On Mon, Jul 28, 2014 at 11:27 AM, Rajith Siriwardena <[email protected]>
>> wrote:
>>
>>> Hi Inosh,
>>>
>>> Yes, as follows in both nodes.
>>>
>>> <Cassandra>
>>> <EndPoints>
>>> <EndPoint><HostName>10.0.30.31</HostName></EndPoint>
>>> <EndPoint><HostName>10.0.31.141</HostName></EndPoint>
>>> </EndPoints>
>>> </Cassandra>
>>>
>>>
>>>
>>> On Mon, Jul 28, 2014 at 11:24 AM, Inosh Goonewardena <[email protected]>
>>> wrote:
>>>
>>>> Hi Rajith,
>>>>
>>>> Do you have same cassandra-endpoint.xml in both nodes? In order to view
>>>> the cluster information in the Cassandra Keyspaces List UI,
>>>> cassandra-endpoint.xml
>>>> file has be added as mentioned in [1].
>>>>
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/CLUSTER420/Configuring+Cassandra+for+BAM
>>>>
>>>>
>>>>
>>>> On Mon, Jul 28, 2014 at 11:12 AM, Rajith Siriwardena <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have clustered Cassandra according to the guide "Configuring
>>>>> Cassandra for BAM" [1]. When Browsing the keyspace from node2, it shows
>>>>> the
>>>>> keyspaces without any problem. when I do that from the node1, it says
>>>>> system error occurred and the following log can be found.
>>>>> In both nodes bam-datasources.xml file is exactly same. credentials
>>>>> are valid and also I can access both Cassandra nodes using Cassandra
>>>>> explorer.
>>>>>
>>>>>
>>>>> TID: [0] [BAM] [2014-07-27 22:03:26,992] INFO
>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>> '[email protected] [-1234]' logged in at [2014-07-27
>>>>> 22:03:26,992-0700]
>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>>>> TID: [0] [BAM] [2014-07-27 22:03:31,985] ERROR
>>>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -
>>>>> InvalidRequestException(why:You have not logged in)
>>>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
>>>>> java.lang.reflect.InvocationTargetException
>>>>> Caused by: InvalidRequestException(why:You have not logged in)
>>>>> at
>>>>> org.apache.cassandra.thrift.Cassandra$describe_keyspaces_result.read(Cassandra.java:24061)
>>>>> at
>>>>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>>>>> at
>>>>> org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspaces(Cassandra.java:1085)
>>>>> at
>>>>> org.apache.cassandra.thrift.Cassandra$Client.describe_keyspaces(Cassandra.java:1073)
>>>>> at
>>>>> me.prettyprint.cassandra.service.AbstractCluster$1.execute(AbstractCluster.java:130)
>>>>> ... 126 more
>>>>> TID: [0] [BAM] [2014-07-27 22:03:31,992] ERROR
>>>>> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient} - Error
>>>>> retrieving keyspace names !
>>>>> {org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient}
>>>>> org.apache.axis2.AxisFault: InvalidRequestException(why:You have not
>>>>> logged in)
>>>>> at
>>>>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>>>> at
>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>>> at
>>>>> org.wso2.carbon.cassandra.mgt.stub.ks.CassandraKeyspaceAdminStub.listKeyspacesOfCurrentUser(CassandraKeyspaceAdminStub.java:553)
>>>>>
>>>>>
>>>>> Any idea?
>>>>>
>>>>>
>>>>> [1]
>>>>> https://docs.wso2.com/display/CLUSTER420/Configuring+Cassandra+for+BAM
>>>>>
>>>>>
>>>>> Thanks,
>>>>> --Rajith
>>>>> --
>>>>> *Rajith Siriwardana*
>>>>> Software Engineer
>>>>> WSO2 Inc. ; http://wso2.com
>>>>> *lean. enterprise. middleware*
>>>>>
>>>>> ------------------------------------------------------
>>>>> *http://people.apache.org/~siriwardana
>>>>> <http://people.apache.org/~siriwardana>*
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Inosh Goonewardena
>>>> Associate Technical Lead- WSO2 Inc.
>>>> Mobile: +94779966317
>>>>
>>>
>>>
>>>
>>> --
>>> *Rajith Siriwardana*
>>> Software Engineer
>>> WSO2 Inc. ; http://wso2.com
>>> *lean. enterprise. middleware*
>>>
>>> ------------------------------------------------------
>>> *http://people.apache.org/~siriwardana
>>> <http://people.apache.org/~siriwardana>*
>>>
>>
>>
>>
>> --
>> *Rajith Siriwardana*
>> Software Engineer
>> WSO2 Inc. ; http://wso2.com
>> *lean. enterprise. middleware*
>>
>> ------------------------------------------------------
>> *http://people.apache.org/~siriwardana
>> <http://people.apache.org/~siriwardana>*
>>
>
>
>
> --
> Deependra Ariyadewa
> WSO2, Inc. http://wso2.com/ http://wso2.org
>
> email [email protected]; cell +94 71 403 5996 ;
> Blog http://risenfall.wordpress.com/
> PGP info: KeyID: 'DC627E6F'
>
> *WSO2 - Lean . Enterprise . Middleware*
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev