Thanks Jonathan, @Darion Please try building after running, "mvn clean –PcleanUICache".
As mentioned here https://github.com/apache/tez/blob/master/BUILDING.txt#L94 in the Tez BUILDING.txt, running that would cleanup the UI caches. We have observed discrepancies relating to the file caches affecting the build. Regards, - Sreenath From: "darion.yaphet" <fly...@163.com<mailto:fly...@163.com>> Reply-To: "user@tez.apache.org<mailto:user@tez.apache.org>" <user@tez.apache.org<mailto:user@tez.apache.org>> Date: Thursday, August 25, 2016 at 3:43 PM To: "user@tez.apache.org<mailto:user@tez.apache.org>" <user@tez.apache.org<mailto:user@tez.apache.org>> Subject: Re:Re: Tez 0.8.4 building failed Hello Jonathan Thank you for you answer . But I download the source release from tez.apache.org . It's not a git repo . At 2016-08-25 14:02:46, "Jonathan Eagles" <jeag...@gmail.com<mailto:jeag...@gmail.com>> wrote: Thanks for report this. I have sometimes seen this issue when switching git branches. I don't know if there is a JIRA tracking this issue or not but I have found that it can resolved this by removing the npm related build artifacts and then rebuilding. For example from the root directory of the tez git repo you can see the ignored directories that have been created as part of the build. // -n is dry run git clean -d -x -n tez-ui These directories can be safely deleted and the build should be retried after this. Let me know if this fixes it for you. // really deletes all untracked files. please be really careful so as to not lose your changes. you have been warned. git clean -d -x -f tez-ui jeagles On Wed, Aug 24, 2016 at 11:13 PM, darion.yaphet <fly...@163.com<mailto:fly...@163.com>> wrote: Hi team : I building tez 0.8.4 failed when building tez-ui2 module . I'm not sure is it a bug . Here is the log message :) [INFO] --- exec-maven-plugin:1.3.2:exec (ember build) @ tez-ui2 --- > tez-ui@0.2.0<mailto:tez-ui@0.2.0> build:mvn > /home/maintain/darion/source/tez/apache-tez-0.8.4-src/tez-ui2/src/main/webapp > TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod module.js:338 throw err; ^ Error: Cannot find module 'resolve' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/maintain/darion/source/tez/apache-tez-0.8.4-src/tez-ui2/src/main/webapp/node_modules/ember-cli/bin/ember:7:15) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) â–˝ at Function.Module.runMain (module.js:501:10) npm ERR! Linux 3.10.0-229.1.2.el7.x86_64 npm ERR! argv "/home/maintain/darion/source/tez/apache-tez-0.8.4-src/tez-ui2/src/main/webapp/node/node" "/home/maintain/darion/source/tez/apache-tez-0.8.4-src/tez-ui2/src/main/webapp/node/npm/bin/npm-cli" "run" "build:mvn" npm ERR! node v0.12.2 npm ERR! npm v2.15.3 npm ERR! code ELIFECYCLE npm ERR! tez-ui@0.2.0<mailto:tez-ui@0.2.0> build:mvn: `TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the tez-ui@0.2.0<mailto:tez-ui@0.2.0> build:mvn script 'TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod'. npm ERR! This is most likely a problem with the tez-ui package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs tez-ui npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls tez-ui npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: