ambair安装报错解决收集

简介: ambair

wget https://www-eu.apache.org/dist/ambari/ambari-2.7.5/apache-ambari-2.7.5-src.tar.gz (use the suggested mirror from above)

tar xfvz apache-ambari-2.7.5-src.tar.gz

cd apache-ambari-2.7.5-src

mvn versions:set -DnewVersion=2.7.5.0.0

 

pushd ambari-metrics

mvn versions:set -DnewVersion=2.7.5.0.0

popd

mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"



报错:

1

解决:

npm install pm2@latest -g

pm2 install pm2-slack

 

[root@fkg73201worker0 apache-ambari-2.7.5-src]#  pm2 install pm2-slack


                       -------------


__/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____

_\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___

 _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__

  _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___

   _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____

    _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________

     _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________

      _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_

       _\///______________\///______________\///__\///////////////__



                         Runtime Edition


       PM2 is a Production Process Manager for Node.js applications

                    with a built-in Load Balancer.


               Start and Daemonize any application:

               $ pm2 start app.js


               Load Balance 4 instances of api.js:

               $ pm2 start api.js -i 4


               Monitor in production:

               $ pm2 monitor


               Make pm2 auto-boot at server restart:

               $ pm2 startup


               To go further checkout:

               http://pm2.io/



                       -------------


[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2

[PM2] PM2 Successfully daemonized

[PM2][Module] Installing NPM pm2-slack module

[PM2][Module] Calling [NPM] to install pm2-slack ...

+ pm2-slack@1.1.0

added 301 packages from 256 contributors in 212.699s


3 packages are looking for funding

 run `npm fund` for details


[PM2][Module] Module downloaded

[PM2][WARN] Applications index not running, starting...

[PM2] App [pm2-slack] launched (1 instances)

Module: pm2-slack

$ pm2 set pm2-slack:slack_url null

$ pm2 set pm2-slack:log false

$ pm2 set pm2-slack:error true

$ pm2 set pm2-slack:kill true

$ pm2 set pm2-slack:exception true

$ pm2 set pm2-slack:restart false

$ pm2 set pm2-slack:reload false

$ pm2 set pm2-slack:delete false

$ pm2 set pm2-slack:stop false

$ pm2 set pm2-slack:restart overlimit true

$ pm2 set pm2-slack:exit false

$ pm2 set pm2-slack:start false

$ pm2 set pm2-slack:online false

$ pm2 set pm2-slack:buffer true

$ pm2 set pm2-slack:buffer_seconds 2

$ pm2 set pm2-slack:queue_max 100

$ pm2 set pm2-slack:buffer_max_seconds 20

Modules configuration. Copy/Paste line to edit values.

[PM2][Module] Module successfully installed and launched

[PM2][Module] Checkout module options: `$ pm2 conf`

┌─────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐

│ id  │ name         │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │

└─────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

Module

┌────┬──────────────────────────────┬───────────────┬──────────┬──────────┬──────┬──────────┬──────────┬──────────┐

│ id │ module                       │ version       │ pid      │ status   │ ↺    │ cpu      │ mem      │ user     │

├────┼──────────────────────────────┼───────────────┼──────────┼──────────┼──────┼──────────┼──────────┼──────────┤

│ 0  │ pm2-slack                    │ 1.1.0         │ 1493388  │ online   │ 0    │ 0%       │ 25.8mb   │ root     │


安装npm

curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -

yum install -y nodejs

npm install -g cnpm --registry=https://registry.npm.taobao.org

npm install

npm run build

npm -v

2.

解决:

  cd /tmp/npm_config_tmp/phantomjs/

wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2


3.

解决:

cd /root/.m2/repository/com/github/eirslett/yarn/0.23.2/yarn-0.23.2./

wget https://github.com/yarnpkg/yarn/releases/download/v0.23.2/yarn-v0.23.2.tar.gz

4.

解决:

更新npm

npm install phantomjs@1.9.20

5.

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project ambari-admin: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project ambari-admin: Command execution failed.



解决:


#cd ambari-admin/src/main/resources/ui/admin-web目录下,编辑 .bowerrc ,修改后的内容如下:


{

   "directory": "app/bower_components",

   "allow_root": true

}

个人将ambari-admin(包括子目录ambari-admin/src/main/resources/ui/admin-web)里面生成的node、node_modules删除,保持干净的源码环境,再单独编译ambari-admin


# find ~/.m2/repository/ -name "*.lastUpdated" -exec rm -rf {} \;


# mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true -X -rf :ambari-admin


如果还报错,则在ambari-admin/src/main/resources/ui/admin-web/下执行


# bower install


安装bower的依赖包,然后再重新编译


6.报错 Too many files with unapproved license

增加 -Drat.skip=true 参数 ,跳过licensing 检查

7,



mvn -B clean install rpm:rpm -DnewVersion=2.7.4.0.0 -DbuildNumber=631319b00937a8d04667d93714241d2a0cb17275 -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true



在线安装

一、环境准备:

1,npm安装

wget https://npm.taobao.org/mirrors/node/v16.7.0/node-v16.7.0-linux-x64.tar.gz

tar -xf node-v16.7.0-linux-x64.tar.gz

cd node-v16.7.0-linux-x64/bin/

ln -s  /root/node-v16.7.0-linux-x64/bin/npm /usr/local/bin/npm

ln -s  /root/node-v16.7.0-linux-x64/bin/node /usr/local/bin/node


2,maven安装

tar -xf ache-maven-3.6.0-bin.tar.gz

echo "export MAVEN_HOME=/root/apache-maven-3.6.0/" >>/etc/profile

source /etc/profile



二、下载源码

1,下载

https://archive.apache.org/dist/ambari/ambari-2.7.4/ 下载源码

2,解压

tar -xf apache-ambari-2.7.4-src.tar.gz


目录
相关文章
|
6月前
Metasploit -- 更新后报错处理
Metasploit -- 更新后报错处理
48 0
|
6月前
|
编解码 Ubuntu
记录一次Gstreamer运行报错排查
记录一次Gstreamer运行报错排查
|
NoSQL Redis
如何查看yum 安装的软件路径(不要再忘了)
如何查看yum 安装的软件路径 今天使用yum 安装了一个软件,后来没有找到路径 1、首先安装一个redis [root@iZbp1eem925ojwyx17ao9kZ ~]# yum install redis 2...
1990 0
|
6月前
|
运维 NoSQL Linux
linux环境收集core文件步骤
请注意,生成core文件可能会占用磁盘空间,因此应谨慎使用。一旦完成故障排查,建议将相关的core文件删除以释放磁盘空间。
115 5
|
6月前
|
SQL 关系型数据库 MySQL
MySQL安装运行问题及解决方法
MySQL安装运行问题及解决方法
88 0
|
Java Android开发
SVN检索项目后install报错解决办法!
SVN检索项目后install报错解决办法!
117 0
SVN检索项目后install报错解决办法!
|
关系型数据库 MySQL 应用服务中间件