Previous Topic: Modify the External ActiveMQ Memory Limit After Installation (Optional)Next Topic: Troubleshooting


Change the Opened Port Number on the Data Aggregator Host (Optional)

After you install Data Aggregator, you can change the port that is opened on the Data Aggregator host.

Note: You opened port 61616 before you installed Data Aggregator and Data Collector.

Follow these steps:

  1. Log in to the computer where Data Aggregator is installed. Log in as the root user or a sudo user with access to a limited set of commands.
  2. Open a command prompt and type the following command to stop Data Aggregator:
    service dadaemon stop
    
  3. Type the following commands to remove the data directory and the local‑jms‑broker.xml file from the deploy directory:
    rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/data
    rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/deploy/local-jms-broker.xml
    
  4. Edit the local-jms-broker.xml file in the Data Aggregator installation directory/apache-karaf-2.3.0/jms directory:
    1. Locate the following lines:
      <!-- The transport connectors ActiveMQ will listen to -->
       <transportConnectors>
         <transportConnector name="openwire" uri="tcp://dahostname:61616"/>
      
    2. Replace 61616 with the port that you want to use for incoming connections on Data Aggregator.
  5. Open a command prompt and type the following command to start Data Aggregator:
    service dadaemon start
    
  6. Wait a few minutes, then type the following command to verify that the port change is successful:
    netstat -a | grep port
    
    port

    Is the port number that you specified previously for incoming connections on Data Aggregator.

  7. If the port change is successful, Data Aggregator waits for incoming connections on that port. If Data Aggregator is not waiting for incoming connections, type the following command to review the karaf.log file for errors:
    grep ERROR karaf.log
    
  8. Resolve the errors.
  9. Log in to the computer where Data Collector is installed. Log in as the root user or a sudo user with access to a limited set of commands.

    Note: For more information about the sudo user, see the Data Aggregator Installation Guide.

  10. Open a command prompt and type the following command:
    service dcmd stop
    
  11. Type the following commands to remove the data directory and the local‑jms‑broker.xml file from the deploy directory:
    rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/data
    rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/deploy/local-jms-broker.xml
    
  12. Edit the local-jms-broker.xml file in the Data Collector installation directory/apache-karaf-2.3.0/jms directory:
    1. Locate the following lines:
      <networkConnector name="manager"
           uri="static:(tcp://dahostname:61616)"
           duplex="true"
           suppressDuplicateTopicSubscriptions="false"/>
      
    2. Replace 61616 with the port that you specified previously in the local-jms-broker.xml file on the Data Aggregator host.
  13. Open a command prompt and type the following command to start Data Collector:
    service dcmd start
    
  14. Wait a few minutes, then type the following command to verify that the port change is successful:
    netstat -a | grep port
    
    port

    Is the port number that you specified in a previous step for incoming connections on Data Aggregator.

    If the port change is successful, you should see a connection between Data Aggregator and Data Collector. If you do not see a connection, type the following command to review the karaf.log file for errors:

    grep ERROR karaf.log
    
  15. Resolve the errors.

    The opened port number on the Data Aggregator host is changed.

More information:

How to Complete the Installation