H13-723_V2.0 · Question #4
In FusionInsight HD, use the Streaming command line to submit the om.huawei.examole.WordCount task in example.jar. The task name is wcTest. Which of the following commands is correct?
The correct answer is C. storm jar example .jar om.huawei.example.WordCount wcTest. Option C follows the correct Apache Storm CLI syntax: storm jar <jar_file> <main_class> <topology_name>, placing the JAR first, then the fully-qualified class name, then the topology name - matching all three requirements in the question (file: example.jar, class…
Question
In FusionInsight HD, use the Streaming command line to submit the om.huawei.examole.WordCount task in example.jar. The task name is wcTest. Which of the following commands is correct?
Options
- Astorm jar example .jar wcTest om.huawei.example.WordCount
- Bstorm jar example .jar wcTest WordCount
- Cstorm jar example .jar om.huawei.example.WordCount wcTest
- Dstorm jar example.jar WordCount wcTest
How the community answered
(21 responses)- A5% (1)
- B5% (1)
- C81% (17)
- D10% (2)
Explanation
Option C follows the correct Apache Storm CLI syntax: storm jar <jar_file> <main_class> <topology_name>, placing the JAR first, then the fully-qualified class name, then the topology name - matching all three requirements in the question (file: example.jar, class: om.huawei.example.WordCount, task name: wcTest).
Why the distractors fail:
- A swaps the class name and topology name (
wcTestappears before the class), and introduces a space inexample .jar - B swaps the order and drops the package prefix, using only
WordCountinstead of the fullom.huawei.example.WordCount - D uses the correct order but omits the package path, making the class name unresolvable
Memory tip: Think of it as "Jar, Class, Name" - JCN order: the JAR file comes first, the fully-qualified Class comes second, and the topology Name comes last. Any command that puts the name before the class, or drops the package prefix, is wrong.
Topics
Community Discussion
No community discussion yet for this question.