Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RabbitMQ output path #1756

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/developer_guide/2_2_rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In a second terminal from the root of the Morpheus repo execute:
python examples/developer_guide/2_2_rabbitmq/read_simple.py
```

This will read from a RabbitMQ exchange named 'logs', and write the results to `/tmp/results.json`.
This will read from a RabbitMQ exchange named 'logs', and write the results to `results.json`.

If no exchange named 'logs' exists in RabbitMQ it will be created. By default the `read_simple.py` script will utilize the class-based `RabbitMQSourceStage`, alternately using the `--use_source_function` flag will utilize the function-based `rabbitmq_source` stage.

Expand All @@ -64,7 +64,7 @@ morpheus --log_level=INFO --plugin examples/developer_guide/2_2_rabbitmq/rabbitm
run pipeline-other \
from-rabbitmq --host=localhost --exchange=logs \
monitor \
to-file --filename=/tmp/results.json --overwrite
to-file --filename=results.json --overwrite
```

### Write Pipeline
Expand Down
2 changes: 1 addition & 1 deletion examples/developer_guide/2_2_rabbitmq/read_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_pipeline(use_source_function: bool):
pipeline.add_stage(MonitorStage(config))

# Write the to the output file
pipeline.add_stage(WriteToFileStage(config, filename='/tmp/results.json', file_type=FileTypes.JSON, overwrite=True))
pipeline.add_stage(WriteToFileStage(config, filename='results.json', file_type=FileTypes.JSON, overwrite=True))

# Run the pipeline
pipeline.run()
Expand Down
2 changes: 1 addition & 1 deletion examples/developer_guide/4_rabbitmq_cpp_stage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ In a second terminal from the root of the Morpheus repo execute:
python examples/developer_guide/4_rabbitmq_cpp_stage/src/read_simple.py
```

This will read from a RabbitMQ exchange named 'logs', and write the results to `/tmp/results.json`.
This will read from a RabbitMQ exchange named 'logs', and write the results to `results.json`.

If no exchange named 'logs' exists in RabbitMQ it will be created.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run_pipeline(use_cpp, num_threads):
pipeline.add_stage(MonitorStage(config))

# Write the to the output file
pipeline.add_stage(WriteToFileStage(config, filename='/tmp/results.json', file_type=FileTypes.JSON, overwrite=True))
pipeline.add_stage(WriteToFileStage(config, filename='results.json', file_type=FileTypes.JSON, overwrite=True))

# Run the pipeline
pipeline.run()
Expand Down
Loading