Looking at the compilation log, I found that the Hadoop Common module was compiled successfully.
Just modifying the Hadoop Common's ASFHeader does not cause the Yarn UI module to compile failed
Compilation failure is caused by compiling json files and js file errors in [Apache Hadoop YARN UI].
[ERROR] bower ember#2.2.0 invalid-meta ember is missing "ignore" entry in bower.json
[ERROR] bower select2#4.0.0 invalid-meta select2 is missing "ignore" entry in bower.json