File tree 4 files changed +14
-2
lines changed
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ index-servers = pypi_internal
4
4
[pypi_internal]
5
5
repository: http://bdch-ftp.td.teradata.com:8082
6
6
username: admin
7
- password: hadoopdb
7
+ password: hadoopdb
Original file line number Diff line number Diff line change 26
26
from fabric .operations import run , os
27
27
from fabric .tasks import execute
28
28
from fabric .utils import warn , error
29
+ from retrying import retry
29
30
30
31
from prestoadmin import configure_cmds
31
32
from prestoadmin import connector
@@ -115,6 +116,7 @@ def install(local_path):
115
116
def deploy_install_configure (local_path ):
116
117
package .deploy_install (local_path )
117
118
update_configs ()
119
+ wait_for_presto_user ()
118
120
119
121
120
122
def add_tpch_connector ():
@@ -134,6 +136,14 @@ def update_configs():
134
136
_LOGGER .info ('No connector directory found, not adding connectors.' )
135
137
136
138
139
+ @retry (stop_max_delay = 30000 , wait_fixed = 2000 )
140
+ def wait_for_presto_user ():
141
+ ret = sudo ('getent passwd presto' )
142
+ if not ret .succeeded :
143
+ raise Exception ('Presto package was not installed successufully. '
144
+ 'Presto user was not created.' )
145
+
146
+
137
147
@task
138
148
@requires_config (StandaloneConfig )
139
149
def uninstall ():
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ PyYAML==3.11
16
16
overrides == 0.5
17
17
setuptools == 20.1.1
18
18
pip == 7.1.2
19
+ retrying == 1.3.3
Original file line number Diff line number Diff line change 43
43
'setuptools==20.1.1' ,
44
44
'wheel==0.23.0' ,
45
45
'flake8==2.5.4' ,
46
- 'tox==1.9.2'
46
+ 'tox==1.9.2' ,
47
+ 'retrying==1.3.3'
47
48
]
48
49
49
50
test_requirements = [
You can’t perform that action at this time.
0 commit comments