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
Unable to connect application in local mode #175
Comments
By this do you mean that you're running YARN in pseudo-distributed mode (locally on your machine only)? I wonder if this is similar to the issue resolved by #165 (comment), but for the application master instead of the driver. We rely on the host specified by the nodemanager address, but if you're running things locally this may not resolve cleanly (especially if you have it set to To check, what does the following report? (untested, there may be a few typos, but hopefully this is clear). import skein
spec = skein.ApplicationSpec.from_yaml("""
name: example
master:
log_level: debug
services:
sleeper:
resources:
memory: 128
vcores: 1
script: |
sleep infinity
""")
client = skein.Client(log_level="debug")
app = client.submit_and_connect(spec)
print("Application running at %s" % app.address)
if app.address.startswith('localhost'):
print("Host is localhost, try manually specifying `127.0.0.1`")
address = app.address.replace('localhost', '127.0.0.1')
# Create a new client with the updated address
app = skein.ApplicationClient(address, app.id, security=app.security)
print(len(app.kv)) Also, I edited your original comment to enclose the code segments in backticks. This formats them nicely as code, making them much easier to read. I recommend reading https://guides.github.com/features/mastering-markdown/ for more information. |
Hello, Yes, you are right. i'm running YARN in pseudo-distributed mode that means the RessourceManager, NameNode, DataNode are all in local.
Thank you a lot and I think this issue can be closed so quickly. |
Ah, yeah, you need to specify a resolvable address when setting up yarn. You'll likely want Closing. |
Hello, I have met an errer ConnectionError: Unable to connect to application when i use app(ApplicationClient) to look at the Key/Value Store.
The environment is in local mode that means the Yarn is deployed in localhost.
For debug, I found that the errer is always happened when the ApplicationClient ask the request to the Container, for exemple: app.shutdown(), len(app.kv), app.get_specification()
For the detail of the errer, i just write a little test code for it.
and the error:
And the logs on Yarn:
For me, normally len(app.kv) will return 0 seen that there is no Key/Value for this demo(sleep infinity) but there is a connection problem clearly.
I don't know how to debug for that. Is there maybe any configuration missed?
Thank you advancely for your reply.
The text was updated successfully, but these errors were encountered: