Question

https://raw.github.com/AmazonEMR/bootstrap.actions/master/node/install-node-bin-x86.sh

That simply just. doesn't. work.

downloads that file. Add: node --version

At end of it.

"On the master instance (i-d6c6a28b), bootstrap action 1 returned a non-zero return code"

Was it helpful?

Solution

The script works.

Adding the

node --version

Doesn't work because the path to node executable was appended as environment variable for your bash. This does not take effect until next time you sign in.

What was chocking for me was that the example from AWS was bad.

https://github.com/AmazonEMR/sample.apps/blob/master/node/sample-mapper.js

Some how

process.stderr.write(err);

doesn't work.

Edit- Try running that install-node-bin-x86.sh line by line through ssh. It will all run fine. Node --version still doesn't work. BUT. log out the SSH session and connect again. Then do 'Node --version' it will work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top