Alejandro Fernandez created AMBARI-14640:
--------------------------------------------

             Summary: Cluster deployment fails due to undeclared 
hadoop_conf_dir when Hadoop components not installed
                 Key: AMBARI-14640
                 URL: https://issues.apache.org/jira/browse/AMBARI-14640
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.2.1
            Reporter: Alejandro Fernandez
            Assignee: Alejandro Fernandez
             Fix For: 2.2.1


Installing a cluster where there are hosts without hadoop installed will run 
into the following error:

{code}
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'
{code}

STR:
- Install a new cluster with only ZK



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to