|
@@ -22,7 +22,8 @@ from resource_management import *
|
|
|
def setup_hdp_install_directory():
|
|
|
import params
|
|
|
if params.rpm_version:
|
|
|
- Execute(format('ambari-python-wrap /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^{rpm_version}- | tail -1`')
|
|
|
+ Execute(format('ambari-python-wrap /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^{rpm_version}- | tail -1`'),
|
|
|
+ only_if=format('ls -d /usr/hdp/{rpm_version}-*')
|
|
|
)
|
|
|
|
|
|
def setup_config():
|