From 90e74c821ddcaa3c6dfba9a0c509177a67fd39c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Tue, 22 Dec 2020 19:56:52 +0100 Subject: [PATCH] hadoop: fix connection loss - image user must have the shell on the slave nodes too --- hadoop/site.pp.tmpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hadoop/site.pp.tmpl b/hadoop/site.pp.tmpl index d93dc20..cedeff9 100644 --- a/hadoop/site.pp.tmpl +++ b/hadoop/site.pp.tmpl @@ -130,7 +130,6 @@ class{'site_hadoop': distribution => $$distribution, version => $$version, users => [ - '${image_user}', 'example', 'hawking', ], @@ -142,6 +141,14 @@ class{'site_hadoop': spark_enable => true, } +# site_hadoop::users hasn't shell on the nodes, we need exception for '${image_user}' +hadoop::user{'${image_user}': + shell => true, + hdfs => $$hadoop::hdfs_hostname == $$::fqdn, + groups => 'users', + realms => $$site_hadoop::user_realms, + touchfile => 'hdfs-user-${image_user}-created', +} node /${master_hostname}\..*/ { include ::site_hadoop::role::master_hdfs -- GitLab