|
@@ -97,35 +97,15 @@ class hdp-hbase(
|
|
|
hdp-hbase::configfile { 'regionservers':}
|
|
|
|
|
|
if ($security_enabled == true) {
|
|
|
- if ($type == 'master') {
|
|
|
+ if ($type == 'master' and $service_state == 'running') {
|
|
|
hdp-hbase::configfile { 'hbase_master_jaas.conf' : }
|
|
|
} elsif ($type == 'regionserver' and $service_state == 'running') {
|
|
|
-
|
|
|
- $hbase_grant_premissions_file = '/tmp/hbase_grant_permissions.sh'
|
|
|
-
|
|
|
- file { $hbase_grant_premissions_file:
|
|
|
- owner => $hbase_user,
|
|
|
- group => $hdp::params::user_group,
|
|
|
- mode => '0644',
|
|
|
- content => template('hdp-hbase/hbase_grant_permissions.erb')
|
|
|
- }
|
|
|
-
|
|
|
- hdp::exec { '${smokeuser}_grant_privileges' :
|
|
|
- command => "su - ${smoke_test_user} -c 'hbase --config $conf_dir shell ${hbase_grant_premissions_file}'",
|
|
|
- require => File[$hbase_grant_premissions_file]
|
|
|
- }
|
|
|
-
|
|
|
- Hdp-hbase::Configfile<||> -> File[$hbase_grant_premissions_file] ->
|
|
|
- Hdp::Exec['${smokeuser}_grant_privileges'] -> Anchor['hdp-hbase::end']
|
|
|
-
|
|
|
- } elsif ($type == 'regionserver') {
|
|
|
hdp-hbase::configfile { 'hbase_regionserver_jaas.conf' : }
|
|
|
- } else {
|
|
|
+ } elsif ($type == 'client') {
|
|
|
hdp-hbase::configfile { 'hbase_client_jaas.conf' : }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- Anchor['hdp-hbase::begin'] -> Hdp::Package['hbase'] -> Hdp::Directory[$config_dir] ->
|
|
|
+ Anchor['hdp-hbase::begin'] -> Hdp::Package['hbase'] -> Hdp::Directory[$config_dir] ->
|
|
|
Hdp-hbase::Configfile<||> -> Anchor['hdp-hbase::end']
|
|
|
}
|
|
|
}
|