Previous Topic: Stop and Restart Data CollectorNext Topic: Discovering Your Network


Stop and Restart Data Repository

Situations can arise when you must stop and restart Data Repository. For example, the computer where Data Repository is installed can lose power or can lock up. Or, you want to relocate the computer. In this case, stop and restart Data Repository. If you want to install an operating system patch or you want to upgrade to a new version of Data Repository, stop and restart Data Repository.

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.

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

  2. Open a command prompt and type the following command:
    service dadaemon stop
    
  3. Log in to the database server you use for Data Repository as the database administrator user, not as the root user.
  4. Type the following command:
    /opt/vertica/bin/adminTools
    

    The Administration Tools dialog opens.

  5. Select (4) Stop Database.
  6. Press the Space bar next to the database name, select OK, and press Enter.

    You are prompted for the database password.

  7. Enter the database password and press Enter.

    Data Repository stops.

    Note: If Data Repository does not stop, select (2) Stop Vertica on Host from the (7) Advanced Tools Menu.

  8. Select Exit and press Enter.
  9. Relocate the computer, or perform any other administrative tasks.
  10. Log in to the database server you use for Data Repository as the database administrator user, not as the root user.
  11. Type the following commands:
    /opt/vertica/bin/adminTools
    

    The Administration Tools dialog opens.

  12. Select (3) Start Database.
  13. Press the Space bar next to the database name, select OK, and press Enter.

    You are prompted for the database password.

  14. Enter the database password and press Enter.

    The database starts.

  15. Select (E) Exit and press Enter.
  16. Start Data Aggregator by logging 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.

    If you installed Data Aggregator as the sudo user, you set up a sudo command alias for the service dadaemon command. Use the sudo command to run the dadaemon start script.

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

  17. Open a command prompt and typing the following command:
    service dadaemon start
    

    Data Repository restarts.

Stop and Restart the ActiveMQ Broker

Restart the Apache ActiveMQ broker if Data Aggregator detects a problem with ActiveMQ and Data Aggregator is unable to restart the broker successfully. You can also manually stop and restart the service when needed.

Follow these steps:

  1. Open the following directory from the command line:
    cd da_install_dir/broker/apache-activemq-version/bin
    
    da_install_dir

    Specifies the location of the Data Aggregator installation directory.

    apache-activemq-version

    Specifies the version of Apache ActiveMQ.

    Example: apache-activemq-5.5.1b

  2. Run the stop command:
    ./activemq stop -jmxurl service:jmx:rmi:///jndi/rmi://localhost:11099/jmxrmi --jmxuser admin --jmxpassword activemq da_broker
    
    –jmxurl service:jmx:rmi:///jndi/rmi://localhost:11099/jmxrmi

    Specifies the location of the activemq broker. This location only changes when a user modifies the port, or a user externalizes the broker to another system.

    Note: Modifying the port number is supported, but we do not support externalizing the broker.

    --jmxuser admin

    Specifies the username for shutting down the service.

    Default: admin

    --jmxpassword activemq

    Specifies the password for shutting down the service.

    Default: activemq

    da_broker

    Specifies the broker name that will be shut down.

    Default: da_broker

  3. Run the start command:
    ./activemq start