micafer/ansible-role-hadoop

IM_NODE_NUM variable not present

Closed this issue · 3 comments

When attempting to use this role the following error is presented

One or more undefined variables: 'IM_NODE_NUM' is undefined

What is the expected value for the variable? Can you please place this in the README or provide info so I can pull request a fix?

You are right. It is a variable that we use internally in our platform, but it is not really needed.
I have update the role removing this variable.
Now It should work.

Awesome! Got the change! However, now we are seeing another error from the same play. It happens on every FTP endpoint.

{"dest": "/tmp/hadoop-2.2.0.tar.gz", "failed": true, "response": "Request failed: <urlopen error ftp error: [Errno ftp error] 550 Failed to change directory.>", "state": "absent", "status_code": -1, "url": "ftp://apache.cs.utah.edu/apache.org/hadoop/core/stable1/hadoop-2.2.0.tar.gz"}
msg: Request failed

The problem is that you changed the hadoop version to 2.X. and the ftp urls have the path for the 1.X (see the "stable1" dir. This role is tested with 1.X version with 2.X versions it will probably fail.