Hi,

When you change the port offset by 1, you need to change following files as
well.

*In BAM 2.4.1*

1. <BAM_Home>/repository/conf/etc/hector-config.xml

change the port to 9161.
<Nodes>localhost:9161</Nodes>

You do not need to change the datasource files. I think in new BAM 2.4.1
those ports are set with the port offset.

To connect to the Cassandra cluster use *localhost:9161* as connection url.


*In BAM 2.4.0*

1. <BAM_Home>/repository/conf/datasources/master-datasources.xml

change the port of WSO2BAM_CASSANDRA_DATASOURCE which uses for EVENT_KS.
<url>jdbc:cassandra://localhost:9161/EVENT_KS</url>

change the port of WSO2BAM_UTIL_DATASOURCE which uses for BAM_UTIL_KS.
<url>jdbc:cassandra://localhost:9161/BAM_UTIL_KS</url>.


These configurations worked for me.
Thank you.



On Mon, May 26, 2014 at 5:48 PM, Eder Castro <[email protected]>wrote:

> Hi all,
> I want to get stadistics about usage of my apis deployed in AM, but when I
> consume one of my apis, I get one error.
>
> I have installed 1.6.0 AM and 2.4.1 BAM and I do this steps (steps for
> products integration).
> https://docs.wso2.org/display/AM150/Monitoring+Using+WSO2+BAM
>
> I need some help, :D
>
> ERROR IN BAM CONSOLE (When I do a request to a deployed api in AM):
> =======================================================
>
> [2014-05-26 14:16:32,997]  INFO
> {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected
> [2014-05-26 14:16:34,363] ERROR
> {me.prettyprint.cassandra.connection.HConnectionManager} -  Could not start
> connection pool for host localhost(127.0.0.1):9160
> [2014-05-26 14:16:34,372]  INFO
> {org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory}
> -  Initializing cluster
> [2014-05-26 14:16:34,375] ERROR
> {org.wso2.carbon.databridge.datasink.cassandra.subscriber.BAMEventSubscriber}
> -  Error processing event.
> com.google.common.util.concurrent.UncheckedExecutionException:
> me.prettyprint.hector.api.exceptions.HectorException: All host pools marked
> down. Retry burden pu
> shed out to client.
>         at
> com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2258)
>         at com.google.common.cache.LocalCache.get(LocalCache.java:3990)
>         at
> com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
>         at
> com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
>         at
> com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4884)
>         at
> org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory.getCluster(ClusterFactory.java:95)
>         at
> org.wso2.carbon.databridge.datasink.cassandra.subscriber.BAMEventSubscriber.receive(BAMEventSubscriber.java:69)
>         at
> org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: me.prettyprint.hector.api.exceptions.HectorException: All host
> pools marked down. Retry burden pushed out to client.
>         at
> me.prettyprint.cassandra.connection.HConnectionManager.getClientFromLBPolicy(HConnectionManager.java:390)
>         at
> me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:244)
>         at
> me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:199)
>         at
> org.wso2.carbon.databridge.persistence.cassandra.datastore.CassandraConnector.createKeySpaceIfNotExisting(CassandraConnector.java:456)
>         at
> org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory.initCassandraKeySpaces(ClusterFactory.java:86)
>         at
> org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory$1.load(ClusterFactory.java:74)
>         at
> org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory$1.load(ClusterFactory.java:54)
>         at
> com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
>         at
> com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
>         at
> com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
>         at
> com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
>         ... 12 more
> [2014-05-26 14:16:35,370]  WARN
> {me.prettyprint.cassandra.connection.CassandraHostRetryService} -  Downed
> localhost(127.0.0.1):9160 host still appears to be dow
> n: Unable to open transport to localhost(127.0.0.1):9160 ,
> java.net.ConnectException: Connection refused: connect
>
> Thanks a lot!
> Eder
>
>
>
>
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards
P.C. Gunatilaka
Undergraduate,
Department of Computer Science And Engineering,
University of Moratuwa, Sri Lanka.

Web <http://reddragonspace.blogspot.com/> ,
Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
Google+<https://plus.google.com/113204823932612396731/posts>,
Twitter <http://twitter.com/#!/PubuduSpace> ,
About.me<http://about.me/pubudugunatilaka>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to