linux编译HDP3.1.5_hbase过程

3 篇文章 0 订阅

当执行mvn -U clean package -Prelease -Dmaven.test.skip=true命令打包时报如下错误:

[ERROR] Unknown lifecycle phase ".test.skip=true". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException

解决方案1:命令中的参数用单引号包起来
mvn -U clean package ‘-Prelease -Dmaven.test.skip=true’

继续报错
如下

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:09 h
[INFO] Finished at: 2020-05-07T13:04:49+08:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "release -Dmaven.test.skip=true" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (banned-jsr305) on project hbase-client: Some Enforcer rules have failed. 
Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hbase-client

添加跳过enforcer参数,如下

mvn package -DskipTests validate -Denforcer.skip=true

继续报错

Error:connection  reset

卡在hbase-client模块,分析应该是网络问题
继续从hbase-client模块进行编译

mvn package -DskipTests validate -Denforcer.skip=true -rf hbase-client

又报错!!

[ERROR] Failed to execute goal on project hbase-client: Could not resolve 
dependencies for project org.apache.hbase:hbase-client:jar:2.1.6.3.1.5.1-
2: Could not transfer artifact org.apache.hbase:hbase-
protocol:jar:2.1.6.3.1.5.1-2 from/to jetty
 (http://repo.hortonworks.com/content/groups/public/): GET request of:
  org/apache/hbase/hbase-protocol/2.1.6.3.1.5.1-2/hbase-protocol-
  2.1.6.3.1.5.1-2.jar from jetty failed: Premature end of Content-Length
   delimited message body (expected: 3221641; received: 492129 -> [Help 1]

分析,应该还是网络问题
继续从hbase-client模块进行编译

mvn package -DskipTests validate -Denforcer.skip=true -rf hbase-client

过程中断了,晚上挂起来执行算了

touch ../mvnLog
nohup mvn package -DskipTests  validate -Denforcer.skip=true >../mvnLog 2>&1 &

编译成功!
但是没有看到tar包!!!

查找mvn操作手册
重新编译,发现正常情况应该在habse-assembly文件目录下有tar.gz包
重新编译

nohup mvn package -DskipTests assembly:single validate -Denforcer.skip=true >../mvnLog 2>&1 & 

编译成功,在habse-assembly目录下也有tar包了
ok,结束

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
HDP 3.1.5是Hortonworks Data Platform(Hortonworks数据平台)的一个版本,Ubuntu是一个流行的开源操作系统,而Ambari 2.7.5是一个用于管理Hadoop集群的开源工具。 HDP 3.1.5是Hortonworks为大数据分析和处理提供的软件套件。它包括了一系列的开源组件,如Hadoop、Hive、HBase、Spark和Kafka等,可以用于存储和分析大规模数据。HDP 3.1.5版本带来了许多新功能和改进,提高了数据处理性能、安全性和可靠性。 Ubuntu是一个流行的开源操作系统,特点是易用性和稳定性。它支持HDP 3.1.5,并提供了包管理工具,方便用户安装和管理HDP的软件包。 Ambari 2.7.5是一个开源的集群管理工具,用于配置、监控和管理Hadoop集群。它提供了一个直观的Web界面,方便用户进行集群的配置和管理。Ambari 2.7.5版本为用户带来了更加稳定和高效的集群管理功能,并修复了一些bug。 结合使用HDP 3.1.5、Ubuntu和Ambari 2.7.5,用户可以方便地部署、配置和管理Hadoop集群。通过Ambari的直观界面,用户可以轻松监控集群的状态,并进行必要的配置和调整。Ubuntu作为操作系统,为HDP和Ambari提供了高度稳定和可靠的平台,确保集群正常运行。 总而言之,HDP 3.1.5提供了丰富的大数据处理工具,Ubuntu作为操作系统提供了稳定的平台,而Ambari 2.7.5则提供了集群管理的功能,使用户能够更方便地部署、配置和管理Hadoop集群。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Geoffrey Turing

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值