-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42210/
-----------------------------------------------------------
Review request for Ambari, Jonathan Hurley, Srimanth Gunturi, and Sid Wagle.
Bugs: AMBARI-14640
https://issues.apache.org/jira/browse/AMBARI-14640
Repository: ambari
Description
-------
STR:
Install a new cluster with only ZK
Installing a cluster where there are hosts without hadoop installed will run
into the following error.
```
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 37, in <module>
AfterInstallHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 237, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 32, in hook
setup_config()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 53, in setup_config
if params.hadoop_conf_dir is not None and
os.path.exists(params.hadoop_conf_dir):
AttributeError: 'module' object has no attribute 'hadoop_conf_dir'
```
Diffs
-----
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
e7a3a82
Diff: https://reviews.apache.org/r/42210/diff/
Testing
-------
Verified on a new cluster install with only ZK.
Python unit tests passed.
----------------------------------------------------------------------
Total run:859
Total errors:0
Total failures:0
OK
Thanks,
Alejandro Fernandez