2014-07-24 6 views
0

Windows에서 BAM 2.4.1을 실행하고 있습니다.WSO2 BAM 2.4.1 포트 오프셋 오류

을 carbon.xml에 설정하십시오.

<Ports> 

     <!-- Ports offset. This entry will set the value of the ports defined below to 
     the define value + Offset. 
     e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445 
     --> 
     <Offset>200</Offset> 

빵 -있는 DataSources.xml

datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> 

    <providers> 
     <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> 
    </providers> 

    <datasources>  

     <datasource> 
      <name>WSO2BAM_DATASOURCE</name> 
      <description>The datasource used for analyzer data</description> 
      <definition type="RDBMS"> 
       <configuration> 
        <url>jdbc:h2:repository/database/samples/BAM_STATS_DB;AUTO_SERVER=TRUE</url> 
        <username>wso2carbon</username> 
        <password>wso2carbon</password> 
        <driverClassName>org.h2.Driver</driverClassName> 
        <maxActive>50</maxActive> 
        <maxWait>60000</maxWait> 
        <testOnBorrow>true</testOnBorrow> 
        <validationQuery>SELECT 1</validationQuery> 
        <validationInterval>30000</validationInterval> 
       </configuration> 
      </definition> 
     </datasource> 

     <datasource> 
      <name>WSO2BAM_CASSANDRA_DATASOURCE</name> 
      <description>The datasource used for Cassandra data</description> 
      <definition type="RDBMS"> 
       <configuration> 
        <url>jdbc:cassandra://localhost:9160/EVENT_KS</url> 
        <username>admin</username> 
        <password>admin</password> 
       </configuration> 
      </definition> 
     </datasource> 

     <datasource> 
      <name>WSO2BAM_UTIL_DATASOURCE</name> 
      <description>The datasource used for BAM utilities, such as message store etc..</description> 
      <definition type="RDBMS"> 
       <configuration> 
        <url>jdbc:cassandra://localhost:9160/BAM_UTIL_KS</url> 
        <username>admin</username> 
        <password>admin</password> 
        <dataSourceProps> 
         <property name="externalCassandra">false</property> 
        </dataSourceProps> 
       </configuration> 
      </definition> 
     </datasource> 

     <!-- The URL configs are loaded from hector-config.xml --> 
     <datasource> 
      <name>WSO2BAM_HIVE_INCREMENTAL_DATASOURCE</name> 
      <definition type="RDBMS"> 
       <configuration> 
        <username>admin</username> 
        <password>admin</password> 
        <dataSourceProps> 
         <property name="replicationFactor">1</property> 
         <property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property> 
         <property name="readConsistencyLevel">QUORUM</property> 
         <property name="writeConsistencyLevel">QUORUM</property> 
         <property name="keyspaceName">HIVE_INCREMENTAL_KS</property> 
        </dataSourceProps> 
       </configuration> 
      </definition> 
     </datasource> 

    </datasources> 

</datasources-configuration> 

시작으로 아무 문제.

그러나 누른 후에 "홈페이지"에서 "카산드라 Keyspaces는"관리 콘솔의 I는 서버 로그에서 콘솔

The following error details are available. Please refer logs for more details. 
org.wso2.carbon.cassandra.mgt.ui.CassandraAdminClientException: Error retrieving keyspace names ! 
at org.wso2.carbon.cassandra.mgt.ui.CassandraKeyspaceAdminClient.listKeyspacesOfCurrentUSer(CassandraKeyspaceAdminClient.java:122) 
at org.apache.jsp.cassandramgt.cassandra_005fkeyspaces_jsp._jspService(org.apache.jsp.cassandramgt.cassandra_005fkeyspaces_jsp:107) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) ...... 

및 오류의 오류

[2014-07-24 18:09:43,190] WARN {me.prettyprint.cassandra.connection.CassandraHo 
stRetryService} - 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.ConnectExcep 
tion: Connection refused: connect 

노트, 9160 어떤 포트가 아닙니다 얻을 옳은. [1] 고정 만보고

https://wso2.org/jira/browse/BAM-1476 ....

에 어떤 문제가 있습니까?

+0

위대한! 고마워. – user3131825

답변

0

WSO2BAM_CASSANDRA_DATASOURCE 섹션의 9160 값을 9160 + portOffset으로 변경하십시오. /conf/etc/hector-config.xml도 같은 값으로 변경하십시오.