Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying and Configuring Cobar

  1. Go to the /home/cobar-server-1.2.8-SNAPSHOT/bin directory.
    cd /home/cobar-server-1.2.8-SNAPSHOT/bin
  2. Modify the startup.sh file.
    1. Open the startup.sh file.
      1
      vim startup.sh
      
    2. Replace line 38 with the following:
      1
      JAVA_OPTS="-server -Xms10240m -Xmx10240m -Xmn8g -Xss328k"
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Go to the /home/cobar-server-1.2.8-SNAPSHOT/conf directory.
    1
    cd /home/cobar-server-1.2.8-SNAPSHOT/conf
    
  4. Modify the schema.xml file.
    1. Open the schema.xml file.
      1
      vim schema.xml
      
    2. The schema.xml file contains the MySQL server IP address, port, user name, and password. Replace the information in the following figure with actual MySQL information.
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      <!-- Data source definition. A data source is the representation of a specific backend data connection.-->
      <dataSource name="dsTest" type="mysql">
        <property name="location">
          <location>192.168.200.56:3306/dbtest1</location>
          <location>192.168.200.56:3306/dbtest2</location>
          <location>192.168.200.56:3306/dbtest3</location>
        </property>
        <property name="user">root</property>
        <property name="password">123456</property>
        <property name="sqlMode">STRICT_TRANS_TABLES</property>
      </dataSource>
      

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. View the server.xml file.
    1
    2
    cd /home/cobar-server-1.2.8-SNAPSHOT/conf
    cat server.xml
    

    The database name provided by the system is dbtest and the password is test.