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*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
