pravega-client-rust icon indicating copy to clipboard operation
pravega-client-rust copied to clipboard

Error at executing sample code with local deployment

Open aitorarjona opened this issue 2 years ago • 0 comments

Problem description Can't execute example code with local testing deployment.

Steps to reproduce:

  • Install Pravega from source:
git clone https://github.com/pravega/pravega.git
cd pravega
./gradlew startStandalone
  • Install pravega python package:
python3.9 -m venv venv
source venv/bin/activate
pip install pravega
  • Execute sample:
import pravega_client
stream_manager = pravega_client.StreamManager("tcp://127.0.0.1:9090")

scope_result = stream_manager.create_scope("scope_foo")
stream_result = stream_manager.create_stream("scope_foo", "stream_bar", 1)

writer = stream_manager.create_writer("scope_foo","stream_bar")
writer.write_event("hello world")

Error:

  File "/home/aitor/Projects/pravega-github/pravega-python-test/test.py", line 5, in <module>
    scope_result = stream_manager.create_scope("scope_foo")
ValueError: RetryError { error: ConnectionError { can_retry: true, error_msg: "status: Unknown, message: \"transport error: error trying to connect: dns error: failed to lookup address information: Name or service not known\", details: [], metadata: MetadataMap { headers: {} }" }, total_delay: 61.111s, tries: 11 }

Problem location

Suggestions for an improvement

aitorarjona avatar May 06 '22 09:05 aitorarjona