Ubuntu 14.10 下安装Ambari 问题汇总

  在编译安装Ambari时候遇到了很多问题,现在记录一下

1 got error npm ERR! phantomjs@1.9.12 install while building ambari-web

[exec] npm ERR! phantomjs@1.9.12 install: `node install.js`
[exec] npm ERR! Exit status 1
[exec] npm ERR! 
[exec] npm ERR! Failed at the phantomjs@1.9.12 install script.
[exec] npm ERR! This is most likely a problem with the phantomjs package,
[exec] npm ERR! not with npm itself.
[exec] npm ERR! Tell the author that this fails on your system:
[exec] npm ERR! node install.js
[exec] npm ERR! You can get their info via:
[exec] npm ERR! npm owner ls phantomjs
[exec] npm ERR! There is likely additional logging output above.

因为安装时候默认从国外网站下载phantomjs,所以不FQ根本下不下来,那自然会报错,我尝试自己下载phantomjs然后放到ambari的目录下面,但是还是不行,后来尝试更改它的下载源,可以了

PHANTOMJS_CDNURL=https://www.npmjs.com/package/phantomjs mvn -B clean install package jdeb:jdeb -DnewVersion=2.1.0 -DskipTests -Dpython.ver="python >= 2.6"

2 ambari java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors

这是因为guava jar包的版本太低了,所以下载一个最新的版本,同时替换掉原来位置的jar包/usr/lib/ambari-server

3 brunch安装失败,这个问题后来我重装了NodeJS,并且用ROOT用户去安装所有相关软件,后来好了,所以在安装的时候可能需要root权限

4