-
Notifications
You must be signed in to change notification settings - Fork 100
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
Wrong error message during install when missing .properties files #212
Comments
Hi Shin,
Can you please verify the permissions and/or try running with sudo? Thanks, Eric |
Eric:
I guess that after I use "sudo ./presto-admin" , then the presto-admin process will access presto server as root, which is not allowed by our server setting and failed. |
When I use sudo, I got the following errors:
Error log:
|
Sorry for the delay. The issues here is in connecting to the other nodes of the Presto, not starting Presto yet. What is in your /etc/opt/prestoadmin/config.json file? Maybe you have root there as "username", and it's trying to log onto the other nodes as root and failing. I suggest running presto-admin with the --serial flag (http://teradata.github.io/presto/docs/current/installation/presto-admin/presto-admin-cli-options.html), that might give you more clarity about what exactly is failing. Once you get to the other nodes, the Presto server is always started as the presto service user. |
Also, the password you provide has to be both the password you use to log into the cluster and the sudo password for that user. The stacktrace you provided suggests that, with the password you're providing, the "username" user specified in config.json can't log into the other node. |
@cawallin In config.json, it is not root.
We have two limitation with network: Do you think these limitations have anything relations with the errors? |
|
If that doesn't work, you can work around the issue by making /etc/opt/prestoadmin and /var/log/prestoadmin and /etc/prestoadmin readable by sso, and then your config will write out properly. We have plans to make it not necessary to run presto-admin as root for these issues and a couple others, hopefully we'll be able to get to it soon. |
maybe no private key in root account, |
You were specifying just a password before -- can you log on with just a password or do you need an ssh key? You can specify -i to use your private ssh key. presto-admin also has a -i flag to specify your private ssh key. |
@cawallin ssh works.
however, presto-admin still got error.
I didn't asked to input the passphrase of my private key. |
This is progress, presto-admin can access the other nodes now! Does /etc/presto/node.properties exist on that node? Your initial issue was writing out the config files to all the nodes, so maybe it didn't get there. Otherwise a log for presto-admin would be helpful. |
Error log:
|
Weird, that didn't go as far. In that case, presto-admin seems like it tried to use the password from -I to log into the other node, rather than the private key. That's a bug, maybe it's non-deterministic whether it uses the password from -I or the private key to log into the node. If you'd be willing to share the full log via a gist (or email), we can double check that during the remainder of our business hours. |
@zz22394: Can we get the presto-admin logs as a gist please (or by direct email, if you'd prefer)? They should be in /var/log/prestoadmin |
@zz22394 I've managed to set up presto-admin in a whole bunch of ways that conflict with various permissions, but I haven't gotten it to try password authentication when it should have been using keys like you saw in #212 (comment). The good news is, there's a bug that's independent of ssh that could be causing this issue: #212 (comment) We get the file as the user who is ssh'ing to the remote host, and if that user doesn't have permission to read the file /etc/presto/node.properties, you'll see that error. I'll be out next week, but I'll into the issue if I have time. I've let @cawallin know what I've found as well so she can continue looking into the issue as she is able to. |
Glad to hear it! server install should work all the way through now too. |
#217 was merged, closing this issue. |
Dear team
We are trying to use presto-admin to install Presto.
before installing, I forgot to create node.properties, in this situation:
then I installed:
and got the Error message:
Log in presto-admin.log:
In fact, node.properties is not "Permission denied", it is not exist.
The text was updated successfully, but these errors were encountered: