Ubuntu 14 presto-admin server install failed

Presto
Enthusiast

Ubuntu 14 presto-admin server install failed

Hello 

sadly different cluster different error...

Setup:
-ubuntu 14
-1 coordinator 
-1 worker

-presto-admin2.2-online-installer
-ssh for presto user is working with password and sudo .


1. Try:

./presto-admin server install latest -I
Requested: rpm -i /opt/prestoadmin/packages/presto-server-rpm-0.177.rpm
Executed: sudo -S -p 'sudo password:'  /bin/bash -l -c "export JAVA8_HOME=\"/usr/lib/jvm/java-8-oracle/jre/\" && rpm -i /opt/prestoadmin/packages/presto-server-rpm-0.177.rpm"

Aborting.
Package deployed successfully on: host
[host] out: sudo password:
[host] out: rpm: RPM should not be used directly install RPM packages, use Alien instead!
[host] out: rpm: However assuming you know what you are doing...
[host] out: error: Failed dependencies:
[host] out: python >= 2.4 is needed by presto-server-rpm-0:0.177-1.x86_64
[host] out: /usr/sbin/useradd is needed by presto-server-rpm-0:0.177-1.x86_64
[host] out: /usr/sbin/groupadd is needed by presto-server-rpm-0:0.177-1.x86_64

2. Try: 

./presto-admin server install latest --nodeps -I
Package deployed successfully on: host
[host] out: sudo password:
[host] out: rpm: RPM should not be used directly install RPM packages, use Alien instead!
[host] out: rpm: However assuming you know what you are doing...
[host] out: /var/tmp/rpm-tmp.hsSWhB: 34: /var/tmp/rpm-tmp.hsSWhB: Syntax error: word unexpected (expecting ")")
[host] out: error: %pre(presto-server-rpm-0:0.177-1.x86_64) scriptlet failed, exit status 2
[host] out: error: presto-server-rpm-0:0.177-1.x86_64: install failed
[host] out:

Fatal error: [host] sudo() received nonzero return code 1 while executing!

Requested: rpm -i --nodeps /opt/prestoadmin/packages/presto-server-rpm-0.177.rpm
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "export JAVA8_HOME=\"/usr/lib/jvm/java-8-oracle/jre/\" && rpm -i --nodeps /opt/prestoadmin/packages/presto-server-rpm-0.177.rpm"


any idea? couldnt find anything ....

 

4 REPLIES
Teradata Employee

Re: Ubuntu 14 presto-admin server install failed

You need to install the referenced packages on all nodes and then re-run the installer:

 

[host] out: python >= 2.4 is needed by presto-server-rpm-0:0.177-1.x86_64
[host] out: /usr/sbin/useradd is needed by presto-server-rpm-0:0.177-1.x86_64
[host] out: /usr/sbin/groupadd is needed by presto-server-rpm-0:0.177-1.x86_64

 

Enthusiast

Re: Ubuntu 14 presto-admin server install failed

all of the packages are ofcourse already installed.

Those are basic with the ubuntu 14 lts .

Without python it would not be possible to run the presto-admin-install.sh, but this one runs without any errors.

and useradd and groupadd works too.

Teradata Employee

Re: Ubuntu 14 presto-admin server install failed

I suppose the next step would be to try installing the RPM manually on all nodes via alien.

Enthusiast

Re: Ubuntu 14 presto-admin server install failed

i already tried that. 

alien presto-server-rpm-0.177.rpm 
Warning: Skipping conversion of scripts in package presto-server-rpm: postinst postrm preinst
Warning: Use the --scripts parameter to include the scripts.
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs
dh_installchangelogs
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
                xargs -0 -r -i cp -a {} debian/presto-server-rpm
dh_compress
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: error: syntax error in debian/control at line 11: continued value line not in field
dh_gencontrol: dpkg-gencontrol -ldebian/changelog -Tdebian/presto-server-rpm.substvars -Pdebian/presto-server-rpm returned exit code 25
make: *** [binary-arch] Error 25

Did the configuration on the workers and coordinator manually and presto is working smooth now.

But would be nice if i can get the presto-admin running too.