此内容没有您所选择的语言版本。

9.3.  Create fabric environment with multiple ensemble servers


Set up Host A

To setup the fabric environment with multiple ensemble servers, follow these steps:
  1. Log on to the first ensemble server, HostA(0.0.0.1).
  2. Extract the jboss-fuse-karaf-6.3.0.redhat-262.zip and modify the file etc/users.properties.
  3. Change the environment settings in the file bin/setenv.
    export EXTRA_JAVA_OPTS="-Djava.rmi.server.hostname=0.0.0.1 -Daether.updateCheckManager.sessionState=bypass"
  4. Change the environment settings in the file etc/system.properties.
    karaf.name = fabricserver1
  5. Start fuse ./fuse.
  6. Create a fabric.
    JBossFuse:karaf@root> fabric:create --clean --new-user AdminUser --new-user-password AdminPass --new-user-role Administrator --zookeeper-password ZooPass --zookeeper-data-dir zkdata --resolver manualip --manual-ip 127.0.0.1 --wait-for-provisioning
    
  7. Verify the zookeeper url.
    JBossFuse:karaf@root> config:proplist --pid io.fabric8.zookeeper fabric.zookeeper.pid = io.fabric8.zookeeper service.pid = io.fabric8.zookeeper zookeeper.password = ZKENC=YWRtaW4=zookeeper.url = sample.demo:218

Set up Host B

Start the other ensemble server, Host 2.
  1. Log on to HostB(0.0.0.2).
  2. Extract jboss-fuse-karaf-6.3.0.redhat-262.zip and modify the file etc/users.properties.
  3. Modify the environment variables in the file jbin/setenv.
    export EXTRA_JAVA_OPTS="-Djava.rmi.server.hostname=0.0.0.2 -Daether.updateCheckManager.sessionState=bypass"
  4. Start fuse ./fuse.
  5. Join fabric.
    fabric:join --zookeeper-password admin --resolver manualip --manual-ip 0.0.0.2 sample.demo:2181 fabricserver2
    

Set up Host C

Start the other ensemble server, Host 3.
  1. Log on to HostC(0.0.0.3).
  2. Extract jboss-fuse-karaf-6.3.0.redhat-262.zip and modify the file etc/users.properties.
  3. Modify the environment variables in the file jbin/setenv.
    export EXTRA_JAVA_OPTS="-Djava.rmi.server.hostname=0.0.0.3 -Daether.updateCheckManager.sessionState=bypass"
  4. Start fuse ./fuse.
  5. Join fabric.
    fabric:join --zookeeper-password admin --resolver manualip --manual-ip 0.0.0.3 sample.demo:2181 fabricserver2
    

Run the Fabric ensemble.

To run the ensemble, use the following command:
  1. Log on to HostA, and add ensemble, fabric:ensemble-add fabricserver2 fabricserver3.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.