hadoop tez-ui 编译安装错误

错误一

问题描述
  • tez-ui编译命令
mvn clean package -DskipTests=true -Dmaven.javadoc.skip=true
错误信息
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install 

node and yarn) on project tez-ui: Could not extract the Node archive: Could not extract archive: 

'/root/.m2/repository/com/github/eirslett/node/5.12.0/node-5.12.0-linux-x64.tar.gz': EOFException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :tez-ui
分析原因
  • 缺少依赖库node-5.12.0-linux-x64.tar.gz
解决方法
  • 下载地址:https://nodejs.org/download/release/v5.12.0/
  • 下载后文件名:node-v5.12.0-linux-x64.tar.gz 将文件重命名:node-5.12.0-linux-x64.tar.gz
  • 复制到maven仓库目录/root/.m2/repository/com/github/eirslett/node/5.12.0/node-5.12.0-linux-x64.tar.gz

错误二

错误信息
[INFO] Installing Yarn version v0.21.3
[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v0.21.3/yarn-v0.21.3.tar.gz to 

/root/.m2/repository/com/github/eirslett/yarn/0.21.3/yarn-0.21.3./yarn-v0.21.3.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:02 min
[INFO] Finished at: 2021-09-23T03:01:38-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install 

node and yarn) on project tez-ui: Could not download Yarn: Could not download 

https://github.com/yarnpkg/yarn/releases/download/v0.21.3/yarn-v0.21.3.tar.gz: Remote host closed connection 

during handshake: SSL peer shut down incorrectly -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
分析原因
  • 缺少依赖库yarn-v0.21.3.tar.gz
解决方法
  • 下载地址:
    https://github-releases.githubusercontent.com/49970642/ae8c33ea-fd02-11e6-9cd7-759e21acee48?X-Amz- Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210922%2Fus-east-
    1%2Fs3%2Faws4_request&X-Amz-Date=20210922T092731Z&X-Amz-Expires=300&X-Amz-
    Signature=87581294127556b7350c58a1b39ae4fde47f91eca4f0e1877c15b20088da974b&X-Amz-
    SignedHeaders=host&actor_id=46650549&key_id=0&repo_id=49970642&response-content-disposition=attachment%3B
    %20filename%3Dyarn-v0.21.3.tar.gz&response-content-type=application%2Foctet-stream
  • 复制到maven仓库目录/root/.m2/repository/com/github/eirslett/yarn/0.21.3/yarn-0.21.3./yarn-v0.21.3.tar.gz

错误三

错误信息
[ERROR] bower ESUDO         Cannot be run with sudo
[ERROR] 
[ERROR] Additional error details:
[ERROR] Since bower is a user command, there is no need to execute it with superuser permissions.
[ERROR] If you're having permission errors when using bower without sudo, please spend a few minutes learning 

more about how your system should work and make any necessary repairs.
[ERROR] 
[ERROR] http://www.joyent.com/blog/installing-node-and-npm
[ERROR] https://gist.github.com/isaacs/579814
[ERROR] 
[ERROR] You can however run a command with sudo using "--allow-root" option
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.132 s
[INFO] Finished at: 2021-09-22T23:12:41-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:bower (bower install) on project 

tez-ui: Failed to run task: 'bower install --allow-root=false' failed. 

org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
分析原因
  • bower不允许使用root执行
解决方法
  • 方法一:在home目录添加配置文件,允许使用root执行
cd ~
vi .bowerrc
{"allow_root": true }
  • 方法二:修改配置文件
cd /usr/local/src/apache-tez-0.10.1-src/tez-ui
vi pom.xml
<allow-root-build>--allow-root=true</allow-root-build>
  • 方法三:根据错误提示在bower命令后面加–allow-root ,例如 bower install --allow-root

错误信息四

错误信息
[ERROR] 
[ERROR] Additional error details:
[ERROR] error: Failed connect to github.com:443; Operation now in progress while accessing 

https://github.com/sreenaths/more-js.git/info/refs
[ERROR] 
[ERROR] fatal: HTTP request failed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:26 min
[INFO] Finished at: 2021-09-23T03:56:16-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:bower (bower install) on project 

tez-ui: Failed to run task: 'bower install --allow-root=true' failed. 

org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
分析原因
  • bower install 依赖库下载失败,github 443 http请求错误
解决方法
  • 这个我真的解决不了,有解决的兄弟,可以分享一下解决方法。

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: Hadoop