We have two separate cases in which the build fails:
#1 The build uses Nodejs v0.12.2. When the webapp folder already have a node_modules folder installed by an old version of node, build fails.
- To repro, just manually run npm install in webapp with an old node (Like v0.10.36). Then run mvn package from tez.
#2 async-disk-cache package creates files in tmpDir (/tmp). When run from a different user, because of user permission on there files, the build fails.