Error getting hadoop setup using ansible

#1

im getting below error while running ansible playbook,

fatal: [x.x.x.x]: FAILED! => {“changed”: false, “msg”: “Destination /home/hadoop/.bash_profile does not exist !”, “rc”: 257}

source code:

  • name: update path in profile for hadoop executables
    lineinfile:
    dest: /home/hadoop/.bash_profile
    state: present
    line: ‘export PATH=$PATH:/opt/hadoop-2.9.1/bin:/opt/hadoop-2.9.1/sbin’
0 Likes

#2

@Madhavan_M
As per your given log it was saying that there is no such file or directory exist, firstly check if the file exists are not.

0 Likes

#3

this is full code.

whether this is correct or not

0 Likes