You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2026/08/11 11:55:00 UTC

[jira] [Created] (SPARK-58712) Fix incorrect usage strings in four examples

Uroš Bojanić created SPARK-58712:
------------------------------------

             Summary: Fix incorrect usage strings in four examples
                 Key: SPARK-58712
                 URL: https://issues.apache.org/jira/browse/SPARK-58712
             Project: Spark
          Issue Type: Bug
          Components: Examples
    Affects Versions: 4.3.0
            Reporter: Uroš Bojanić


Four usage strings disagree with the code around them.

DirectKafkaWordCount and DirectKerberizedKafkaWordCount document "<brokers> <topics>" in the class comment, but both require three arguments: the arity check is args.length < 3, the arguments are destructured as brokers, groupId and topics, the runtime usage message already prints the three argument form, and the comment itself documents <groupId> on the following line. SPARK-27973 corrected the runtime message for the first example but left the comment behind.

SkewedGroupByTest documents "Usage: GroupByTest", naming a different example that also exists, so copying the line runs the wrong job.

JavaRecoverableNetworkWordCount prints "You arguments were"; its Scala counterpart already reads "Your arguments were".

Comment and message text only.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org