[ 
https://issues.apache.org/jira/browse/AMBARI-19545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15826294#comment-15826294
 ] 

Doroszlai, Attila commented on AMBARI-19545:
--------------------------------------------

[~smnaha] Also, it is not possible to install Hive with default configuration:

{noformat}
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py",
 line 68, in <module>
    HiveClient().execute()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 314, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py",
 line 35, in install
    self.configure(env)
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 117, in locking_configure
    original_configure(obj, *args, **kw)
  File 
"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py",
 line 43, in configure
    hive(name='client')
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", 
line 89, in thunk
    return fn(*args, **kwargs)
  File 
"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py",
 line 102, in hive
    mode=mode_identified)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
line 155, in __init__
    self.env.run()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 160, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 124, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/providers/xml_config.py",
 line 66, in action_create
    encoding = self.resource.encoding
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
line 155, in __init__
    self.env.run()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 160, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 124, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
 line 123, in action_create
    content = self._get_content()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
 line 160, in _get_content
    return content()
  File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
line 51, in __call__
    return self.get_content()
  File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", 
line 142, in get_content
    rendered = self.template.render(self.context)
  File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 
891, in render
    return self.environment.handle_exception(exc_info, True)
  File "<template>", line 2, in top-level template code
  File "/usr/lib/python2.6/site-packages/ambari_jinja2/filters.py", line 176, 
in do_dictsort
    return sorted(value.items(), key=sort_func)
AttributeError: 'NoneType' object has no attribute 'items'
{noformat}

{noformat:title=blueprint.json}
{
  "host_groups": [
    {
      "name": "node",
      "components": [
        { "name": "APP_TIMELINE_SERVER" },
        { "name": "DATANODE" },
        { "name": "HDFS_CLIENT" },
        { "name": "HISTORYSERVER" },
        { "name": "HIVE_CLIENT" },
        { "name": "HIVE_METASTORE" },
        { "name": "HIVE_SERVER" },
        { "name": "JOURNALNODE" },
        { "name": "MAPREDUCE2_CLIENT" },
        { "name": "MYSQL_SERVER" },
        { "name": "NAMENODE" },
        { "name": "NODEMANAGER" },
        { "name": "OOZIE_CLIENT" },
        { "name": "OOZIE_SERVER" },
        { "name": "PIG" },
        { "name": "RESOURCEMANAGER" },
        { "name": "SECONDARY_NAMENODE" },
        { "name": "SLIDER" },
        { "name": "TEZ_CLIENT" },
        { "name": "WEBHCAT_SERVER" },
        { "name": "YARN_CLIENT" },
        { "name": "ZOOKEEPER_CLIENT" },
        { "name": "ZOOKEEPER_SERVER" }
      ],
      "cardinality": "1+"
    }
  ],
  "Blueprints": {
    "blueprint_name": "blue",
    "stack_name": "HDP",
    "stack_version": "2.5",
    "security": {
      "type": "NONE"
    }
  }
}
{noformat}

> Ambari-agent: In HIVE and OOZIE stack scripts, copy JCEKS file to desired 
> location
> ----------------------------------------------------------------------------------
>
>                 Key: AMBARI-19545
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19545
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.5.0
>            Reporter: Nahappan Somasundaram
>            Assignee: Nahappan Somasundaram
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: rb55538.patch
>
>
> Ambari agent generates the JCEKS provider files as 
> /var/lib/ambari-agent/cred/conf/<service>/<config>.jceks. 
> OOZIE and HIVE scripts should specify a location of their choice and set the 
> desired ACLs, instead of using the default location.



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

Reply via email to