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

Fatal error: [localhost] /bin/sh: 1: rpm: not found #71

Closed
sweetfisheric opened this issue Oct 15, 2015 · 12 comments
Closed

Fatal error: [localhost] /bin/sh: 1: rpm: not found #71

sweetfisheric opened this issue Oct 15, 2015 · 12 comments

Comments

@sweetfisheric
Copy link

Hello,

I tried to follow this page http://prestodb.github.io/presto-admin/installation/presto-server-installation.html to install Presto sever, but I got the error 'Fatal error: [localhost] /bin/sh: 1: rpm: not found.' I tried to change the permission and different Presto rpm files but haven't had good luck. I am using Ubuntu 15.04 if that matters. Thank you.

@rschlussel-zz
Copy link
Member

Does your os have the rpm program installed?

@brian-rickman
Copy link
Contributor

Default installations of Ubuntu do not have rpm. You should be able to get it by running "sudo apt-get install rpm"

@sweetfisheric
Copy link
Author

Thank you. I was able to pass that after I installed Alien. I now got another error
'Deploying rpm on localhost...

Fatal error: [localhost] Needed to prompt for a connection or sudo password (host: localhost), but input would be ambiguous in parallel mode

Aborting.

My config.json file is

{
"username":"root",
"coordinator":"localhost",
"workers":[
"localhost"
],
"port":"22"
}

@brian-rickman
Copy link
Contributor

The primary advantage of presto-admin is that it makes it easy to operate on all the nodes of a cluster at once.

For a single node installation, I think you will be better off following the manual installation process outlined here:
https://prestodb.io/docs/current/installation/deployment.html

@rschlussel-zz
Copy link
Member

presto-admin connects to the hosts through ssh (even localhost). If you don't have passwordless ssh set up, you can run your commands with -I (that's an uppercase 'i') , and it will prompt you for a password. Alternatively you can pass in a password using -p.
For example:
sudo ./presto-admin -I server install /path/to/presto.rpm
sudo ./presto-admin -p my-not-so-secret-password server install /path/to/presto.rpm

@mattsfuller
Copy link

@sweetfisheric did you get this figured out?

@rschlussel-zz
Copy link
Member

Closing, as this seems to have been resolved.

@sbmaggarwal
Copy link

@rschlussel This is still happening. When I execute the following command:

./presto-admin -p my-password server install ./presto-server-rpm-0.167-t.0.2.x86_64.rpm

I get:

Using rpm_specifier as a local path
Fetching local presto rpm at path: ./presto-server-rpm-0.167-t.0.2.x86_64.rpm
Found existing rpm at: ./presto-server-rpm-0.167-t.0.2.x86_64.rpm
Deploying rpm on localhost...

Fatal error: [localhost] Needed to prompt for a connection or sudo password 
    (host: localhost), but input would be ambiguous in parallel mode

Aborting.

I have all libraries installed like rpm, python 2.7, Java 8 and have followed all steps till here. My config.json is empty as this should make use of all default settings.

I am trying to deploy a single node Presto installation. Anything else I need to confirm?

@yuokada
Copy link
Contributor

yuokada commented Apr 13, 2018

Hi, @sbmaggarwal
Please try to use -I Option.

./presto-admin -I -p my-password server install ./presto-server-rpm-0.167-t.0.2.x86_64.rpm

@sbmaggarwal
Copy link

@yuokada I am not sure why this happens but when I run the above command, it deletes the presto-server-rpm-0.167-t.0.2.x86_64.rpm file from the directory and gives me the following error:

Initial value for env.password: <Here I enter my-password>
Using rpm_specifier as a local path
Fetching local presto rpm at path: ./presto-server-rpm-0.167-t.0.2.x86_64.rpm

Fatal error: [localhost] Unable to find or download presto rpm with specifier ./presto-server-rpm-0.167-t.0.2.x86_64.rpm

Aborting.

What can be the issue?

@mattsfuller
Copy link

What happens if you don't put the "./" on the argument? So simply enter:
./presto-admin -I -p my-password server install presto-server-rpm-0.167-t.0.2.x86_64.rpm

I'm assuming you have the rpm located in the current directory.

@yuokada
Copy link
Contributor

yuokada commented Apr 27, 2018

@sbmaggarwal which version do you use?

It's not reproduce on 2.3. (zsh 5.4.2 & presto-admin 2.3)

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

6 participants