All Products
Search
Document Center

ApsaraMQ for RocketMQ:Environment preparation

Last Updated:Mar 31, 2025

This topic describes how to prepare the environment before you use Apache RocketMQ SDK for Java to send and receive messages.

Process

  1. Install Python 3.7 or later. For more information, visit the official Python website.

  2. Obtain the resource information.

    You must create the resources, including the instance, topic, and consumer group, in the ApsaraMQ for RocketMQ console in advance. For more information, see Step 2: Create resources.

  3. Run the following command to install the Python library:

    pip install rocketmq-python-client==5.0.5
  4. Modify the parameters in the sample code based on the resource information obtained in Step 2: Create resources. Then, run the sample code.

References