From c12ddda6d30357d23971e0dc61c449589a1083ff Mon Sep 17 00:00:00 2001 From: Keith Bourgoin Date: Tue, 6 Aug 2024 13:36:26 -0400 Subject: [PATCH] More path fixes. --- doc/quickstart.rst | 2 +- doc/topologies.rst | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/quickstart.rst b/doc/quickstart.rst index aa3ae56f..a8e9d260 100644 --- a/doc/quickstart.rst +++ b/doc/quickstart.rst @@ -135,7 +135,7 @@ topology in pure Python using Thrift. For details see :ref:`topology_dsl`. Let's have a look at the definition file created by using the ``sparse quickstart`` command. -.. literalinclude:: ../../streamparse/bootstrap/project/topologies/wordcount.py +.. literalinclude:: ../streamparse/bootstrap/project/topologies/wordcount.py :language: python In the ``count_bolt`` bolt, we've told Storm that we'd like the stream of diff --git a/doc/topologies.rst b/doc/topologies.rst index a42dd911..ee7aa8d9 100644 --- a/doc/topologies.rst +++ b/doc/topologies.rst @@ -36,11 +36,11 @@ Simple Python Example The first step to putting together a topology, is creating the bolts and spouts, so let's assume we have the following bolt and spout: -.. literalinclude:: ../../examples/redis/src/bolts.py +.. literalinclude:: ../examples/redis/src/bolts.py :language: python :lines: 1-28 -.. literalinclude:: ../../examples/redis/src/spouts.py +.. literalinclude:: ../examples/redis/src/spouts.py :language: python One important thing to note is that we have added an ``outputs`` attribute to @@ -51,7 +51,7 @@ objects. Now let's hook up the bolt to read from the spout: -.. literalinclude:: ../../examples/redis/topologies/wordcount_mem.py +.. literalinclude:: ../examples/redis/topologies/wordcount_mem.py :language: python .. note:: @@ -72,7 +72,7 @@ The topology DSL fully supports JVM-based bolts and spouts via the Here's an example of how we would use the `Storm Kafka Spout `_: -.. literalinclude:: ../../examples/kafka-jvm/topologies/pixelcount.py +.. literalinclude:: ../examples/kafka-jvm/topologies/pixelcount.py :language: python One limitation of the Thrift interface we use to send the topology to Storm is @@ -127,7 +127,7 @@ attribute. The most common grouping is probably the with the same value for the specified fields to the same executor. This can be seen in the prototypical word count topology: -.. literalinclude:: ../../examples/redis/topologies/wordcount_mem.py +.. literalinclude:: ../examples/redis/topologies/wordcount_mem.py :language: python