Commissioning a Storm Application on Linux
Scenario
Storm applications can run only on Linux, but not on Windows.
You can use storm commands to submit topologies in a Linux environment.
Prerequisites
- You have installed a Storm client.
- If the host where the client is installed is not a node in the cluster, the mapping between the host name and the IP address must be set in the hosts file on the node where the client locates. The host names and IP addresses must be mapped one by one.
- Generating the JAR Package of the Storm Application has been performed and storm-examples-1.0.jar has been generated and stored in /opt/jartarget/.
Procedure
- Perform security authentication in security mode. For details, see Preparing a Linux Client Environment.
- Submit a topology. (Wordcount is used as an example. For details about other topologies, see the related development guidelines.) Go to the storm-0.10.0/bin directory on the Storm client, and run the storm jar /opt/jartarget/storm-examples-1.0.jar com.huawei.storm.example.wordcount.WordCountTopology command.
- Run the storm list command to view the submitted applications. If the word-count application can be viewed, the task is submitted successfully.
If a service is set to the local mode and is submitted by using commands, ensure that the submitting environment is a normal one. Currently, services in local mode cannot be submitted by using commands in a security environment.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot