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

Error at executing sample code with local deployment #372

Open
aitorarjona opened this issue May 6, 2022 · 0 comments
Open

Error at executing sample code with local deployment #372

aitorarjona opened this issue May 6, 2022 · 0 comments

Comments

@aitorarjona
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant