当前位置: 首页 > 知识库问答 >
问题:

Ambari Web构建失败,错误为:无法执行目标com.github.eirslett:FrontEndMaven插件:1.4:安装节点和线程

范俊逸
2023-03-14

我遵循了这篇文章的说明:

在CentOS 7上安装Ambari 2.7.5失败

不幸的是,我仍然得到一个错误:

[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ....................................... SUCCESS [11:41.142s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.173s]
[INFO] Ambari Web ........................................ FAILURE [33.222s]
[INFO] Ambari Views ...................................... SKIPPED
[INFO] Ambari Admin View ................................. SKIPPED
[INFO] ambari-utility .................................... SKIPPED
[INFO] ambari-metrics .................................... SKIPPED
[INFO] Ambari Metrics Common ............................. SKIPPED
[INFO] Ambari Metrics Hadoop Sink ........................ SKIPPED
[INFO] Ambari Metrics Flume Sink ......................... SKIPPED
[INFO] Ambari Metrics Kafka Sink ......................... SKIPPED
[INFO] Ambari Metrics Storm Sink ......................... SKIPPED
[INFO] Ambari Metrics Storm Sink (Legacy) ................ SKIPPED
[INFO] Ambari Metrics Collector .......................... SKIPPED
[INFO] Ambari Metrics Monitor ............................ SKIPPED
[INFO] Ambari Metrics Grafana ............................ SKIPPED
[INFO] Ambari Metrics Host Aggregator .................... SKIPPED
[INFO] Ambari Metrics Assembly ........................... SKIPPED
[INFO] Ambari Service Advisor ............................ SKIPPED
[INFO] Ambari Server ..................................... SKIPPED
[INFO] Ambari Functional Tests ........................... SKIPPED
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] ambari-logsearch .................................. SKIPPED
[INFO] Ambari Logsearch Appender ......................... SKIPPED
[INFO] Ambari Logsearch Config Api ....................... SKIPPED
[INFO] Ambari Logsearch Config JSON ...................... SKIPPED
[INFO] Ambari Logsearch Config Solr ...................... SKIPPED
[INFO] Ambari Logsearch Config Zookeeper ................. SKIPPED
[INFO] Ambari Logsearch Config Local ..................... SKIPPED
[INFO] Ambari Logsearch Log Feeder Plugin Api ............ SKIPPED
[INFO] Ambari Logsearch Log Feeder Container Registry .... SKIPPED
[INFO] Ambari Logsearch Log Feeder ....................... SKIPPED
[INFO] Ambari Logsearch Web .............................. SKIPPED
[INFO] Ambari Logsearch Server ........................... SKIPPED
[INFO] Ambari Logsearch Assembly ......................... SKIPPED
[INFO] Ambari Logsearch Integration Test ................. SKIPPED
[INFO] ambari-infra ...................................... SKIPPED
[INFO] Ambari Infra Solr Client .......................... SKIPPED
[INFO] Ambari Infra Solr Plugin .......................... SKIPPED
[INFO] Ambari Infra Manager .............................. SKIPPED
[INFO] Ambari Infra Assembly ............................. SKIPPED
[INFO] Ambari Infra Manager Integration Tests ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:15.037s
[INFO] Finished at: Mon Jun 08 10:27:49 UTC 2020
[INFO] Final Memory: 31M/381M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install node and yarn) on project ambari-web: The plugin com.github.eirslett:frontend-maven-plugin:1.4 requires Maven version 3.1.0 -> [Help 1]

更新:添加CentOS命令历史记录:

    1  sudo yum install wget rsync nano maven java java-devel rpm-build gcc -y
    2  sudo yum install ntp python python-devel rpm-build gcc-c++ java-1.7.0-openjdk java-1.7.0-openjdk-devel git -y
    3  sudo wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
    4  sudo sh setuptools-0.6c11-py2.7.egg
    5  sudo wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
    6  sudo tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
    7  sudo ln -s /opt/apache-maven-3.6.3 /opt/maven
    8  sudo nano /etc/profile.d/maven.sh
    9  sudo chmod +x /etc/profile.d/maven.sh
   10  source /etc/profile.d/maven.sh
   11  mvn -v
   15  sudo wget https://downloads.apache.org/ambari/ambari-2.7.5/apache-ambari-2.7.5-src.tar.gz
   16  sudo tar xfvz apache-ambari-2.7.5-src.tar.gz
   17  cd apache-ambari-2.7.5-src
   19  cd ambari-admin
   28  sudo yum --enablerepo=extras install epel-release
   29  sudo yum install npm -y
   32  node -v
   33  npm -v
   34  sudo nano pom.xml
   35  cd ..
   36  sudo mvn versions:set -DnewVersion=2.7.5.0.0
   37  pushd ambari-metrics
   38  sudo mvn versions:set -DnewVersion=2.7.5.0.0
   39  popd
   40  sudo mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.7"

这是我的环境:CentOS 7

NPM版本:3.10.10

节点版本:v6。17.1

Java版本:openjdk版本“1.8.0_252”openjdk运行时环境(构建1.8.0_252-b09)openjdk 64位服务器虚拟机(构建25.252-b09,混合模式)

Maven版本: Apache Maven 3.6.3(cecedd343002696d0abb50b32b541b8a6ba2883f)Maven主页: /opt/mavenJava版本: 1.8.0_252,供应商:甲骨文公司,运行时: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre

共有1个答案

晋俊贤
2023-03-14

@运球。在Ambari 2.7上工作时。5对于SUSE 12,我遇到了相同的错误。您需要确保首先获得正确的maven版本(ApacheMaven3.3.9或更高版本)。

通过编辑ambari web/pom,可以修复特定的包依赖性错误。xml并将节点版本设置为在构建操作系统中安装的版本。

一旦我这样做了,构建完成了Ambari Web步骤。对于其他包,您可能会遇到类似的依赖失败。您可以查看以下最新帖子了解更多细节,包括特定版本:

生成ambari 2.7时出错。5 Centos 7(在ambari管理步骤失败)

 类似资料:
  • 我的Cordova安装有问题:我安装了Cordova、Android Studio、Android SDK、Java并在中定义了 。当我转到Cordova项目并键入时,我会出现错误 检测到Android Studio项目 Android需求检查结果: Java JDK:installed 1.8.0 Android SDK:installed true Android目标:未安装 Android:

  • 我正在开发一个应用程序,如果我从android studio运行到我的设备上,它绝对运行良好。如果我将我的apk放入google drive并与其他人共享,它会显示错误< code >(“Android apk安装失败。安装包错误,无法安装。)当他们尝试安装应用程序时。不是署名的apk。它仍处于原型阶段(调试模式)。 请让我知道我哪里做错了。

  • 有问题的错误消息是 从文件夹中的工作正常。我的项目结构是 还有由定义 由下式定义 这是一个比这个问题中的版本修复升级晚得多的版本 插件在子模块pom而不是父pom中,因为这里的错误 我尝试删除

  • 我刚通过自制安装了Gradle。版本7.0。我运行了一个hello world任务,没有出错。然后,我按照说明安装ml-gradle(https://github.com/marklogic-community/ml-gradle)。我得到构建失败的原因是: 错误:在任务“:MLNewProject”(键入“NewProjectTask”)的配置中发现了一些问题。 > 类型'NewProjectT

  • 我试图用maven插件对来自Vaadin7.0.0的示例应用程序进行打包,但每次运行目标“package”时,生成都会失败,并出现以下错误: 我的pom.xml如下:http://maven.apache.org/maven-v4_0_0.xsd“>4.0.0com.myCompany essai war 0.0.1-快照Vaadin Web应用程序 我是maven新手,即使我发现了很多关于这个错