From 6ce480cca89c56950d80b977316d98c7e374ec8d Mon Sep 17 00:00:00 2001
From: rdecoupe <remy.decoupes@inrae.fr>
Date: Mon, 27 Jan 2020 11:33:57 +0100
Subject: [PATCH] edit readme after install cluster on debian 10

---
 README.md                                   | 11 +++++++++++
 playbook/roles/hadoop-common/tasks/main.yml |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 3763e19..e5f2cf3 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,11 @@ Acutally, this project does :
 	```shell
 	apt-get install sshpass
 	```
+	+ Configure ansible (allow becoming unprivileged user without error : "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user")
+	```shell
+	sed -i 's/.*pipelining.*/pipelining = True/' /etc/ansible/ansible.cfg
+	sed -i 's/.*allow_world_readable_tmpfiles.*/allow_world_readable_tmpfiles = True/' /etc/ansible/ansible.cfg
+	```
 * Vagrant with virtualox
 	+ Install virtualbox on your own computer (for Ubuntu or Debian):
 	```
@@ -84,6 +89,12 @@ Inside this file, edit your network setting (name for your interface adaptator a
 	```shell
 	vim /etc/hosts
 	```	
+	if you did not edit your cluster settings since you git have pulled, you may want to use this default settings:
+	```shell
+	10.0.0.10 namenode
+	10.0.0.11 datanode1
+	10.0.0.12 datanode2
+	```	
 4. in cli : start your multiple VM from this [directory : vagrant/cluster](vagrant/cluster) :
 	```shell
 	vagrant up
diff --git a/playbook/roles/hadoop-common/tasks/main.yml b/playbook/roles/hadoop-common/tasks/main.yml
index 9c0afee..be73f3e 100644
--- a/playbook/roles/hadoop-common/tasks/main.yml
+++ b/playbook/roles/hadoop-common/tasks/main.yml
@@ -29,7 +29,7 @@
 
 - name: Set JAVA_HOME as environment variable
   become: yes
-  # become_user : hadoop
+  become_user : hadoop
   blockinfile:
     insertafter: EOF
     path : ~/.bashrc
-- 
GitLab