首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置误差

配置误差
EN

Stack Overflow用户
提问于 2014-07-11 12:38:21
回答 1查看 381关注 0票数 2

我试图运行Terracotta服务器,下面是配置文件。

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8" ?>
    <tc:tc-config xmlns:tc="http://www.terracotta.org/config"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-9.xsd">
      <servers>
        <server host="localhost" name="master">
          <!-- Specify the path where the server should store its data. -->
          <data>/x01/terracotta/masterServerData</data>
           <!-- Specify the port where the server should listen for client 
           traffic. -->
           <tsa-port>9510</tsa-port>
           <jmx-port>9520</jmx-port>
           <tsa-group-port>9530</tsa-group-port>
           <!-- Enable BigMemory on the server. -->
           <dataStorage size="4g">
              <offheap size="2g"/> 
              <!-- Hybrid storage is optional. -->
              <hybrid/> 
           </dataStorage>
         </server>
        <!-- Add the restartable element for Fast Restartability (optional). -->
        <restartable enabled="true"/>
      </servers>
      <clients>
        <logs>logs-%i</logs>
      </clients>
    </tc:tc-config>

然后我得到了跟随错误。

代码语言:javascript
复制
Fatal Terracotta startup exception:

*******************************************************************************
The configuration data in the base configuration from file at '/x01/terracotta/terracotta-3.7.7/tc-config.xml' does not obey the Terracotta schema:
  [0]: Line 11, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port jmx-port l2-group-port dso security' instead of 'tsa-port' here in element server
  [1]: Line 13, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port l2-group-port dso security' instead of 'tsa-group-port' here in element server
  [2]: Line 15, column 12: Expected elements 'authentication http-authentication index logs data-backup statistics dso-port l2-group-port dso security' instead of 'dataStorage' here in element server
  [3]: Line 22, column 9: Expected elements 'server mirror-groups ha update-check' instead of 'restartable' here in element servers

*******************************************************************************

有人能帮帮我吗。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-15 20:57:06

您正在运行Terracotta 3.7,但是您的配置文件是为Terracotta 4.x设置的。要么升级Terracotta,要么更新tc-config.xml。

看一看配置Terracotta 3.x的文档。特别是:

  • tsa-端口应该是dso-port。
  • tsa-group-port应该是l2-group-port。
  • dataStorage应该在dso->持久性下

在旧版本的Terracotta中还有其他一些细微的差别,因此,请熟悉适合您的版本的结构,以确保您能够按照您的需要配置它。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24697965

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档