[ 
https://issues.apache.org/jira/browse/BIGTOP-1662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Weiser updated BIGTOP-1662:
-----------------------------------
    Attachment: 
0001-BIGTOP-1662-puppet-Fix-configuration-file-incomplete-2.patch

[~evans_ye]: You're spot-on about setting hadoop::kerberos_realm instead of 
hadoop::common_yarn::kerberos_realm in cluster.yaml. I've updated the patch 
accordingly. I've intentionally added the variable to the hadoop main module 
class so it can be handed down from there as a default to all the sub-classes 
(hdfs, yarn, mapred and httpfs).

As for the other modules: All the realm-setting is already in place in 
cluster.yaml and should work:
{noformat}
user@debian:~/bigtop/bigtop-deploy/puppet# grep kerberos_realm 
hieradata/bigtop/cluster.yaml 
hadoop::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hadoop-hbase::common_config::kerberos_realm: "%{hiera('kerberos::site::realm')}"
solr::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hadoop-oozie::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hcatalog::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hcatalog::webhcat::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hadoop-zookeeper::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
hue::server::kerberos_realm: "%{hiera('kerberos::site::realm')}"
{noformat}

I have to admit, I haven't tested them all. But I seem to remember from my 
tests for BIGTOP-1634 that their config files changed accordingly when I set 
kerberos::site::realm. Can you check in your environment that the realm turns 
up correctly for those other modules?

> puppet: Fix configuration file incompleteness due to hiera conversion
> ---------------------------------------------------------------------
>
>                 Key: BIGTOP-1662
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1662
>             Project: Bigtop
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: backlog
>            Reporter: Michael Weiser
>         Attachments: 
> 0001-BIGTOP-1662-puppet-Fix-configuration-file-incomplete-2.patch, 
> 0001-BIGTOP-1662-puppet-Fix-configuration-file-incomplete.patch
>
>
> The changes from BIGTOP-1634 omit kerberos_realm and 
> hadoop_security_authentication variables from some classes so that they're 
> not correctly entered in the generated configuration files. Also, a hasty 
> "fix" to hadoop-env.sh causes all variables to remain unset always.



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

Reply via email to