Pre-req
1.一个外网IP的linux64
-
Ambarihap AS 都装在一台机器上
-
vncserver
AS 2.1installation guide
1.intallambari 2.1 and hdp 2.3
参考http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_Installing_HDP_AMB/content/index.html
wget -nvhttp://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.0/ambari.repo-O /etc/yum.repos.d/ambari.repo
yum installambari-server
ambari-serversetup
ambari-serverstart
yumupdate更新openssl
参考http://blog.csdn.net/tonyhuang_google_com/article/details/40585927
openssl-1.0.1e-42.el6.x86_64
选sevices(这时还没有AS)
遇到输用户密码的地方统一admin/admin
offline mode:
1. Copy therpm files(IBM-SPSS-AnalyticServer-ambari-2.1-HDP-2.3-2.1.0.0-1.x86_64.rpm andIBM-SPSS-AnalyticServer-2.1.0.0-1.x86_64.rpm) and repodata folder toa path in Ambari server machine.
2. Copy thesame rpm files and repodata folder to the same path in other machineswhich will install AS metastore and AS servers;
3. In Ambariserver machine, create a repo file in /etc/yum.repos.d/[e.g. as.repo]
[IBM-SPSS-AnalyticServer]
baseurl=file:///<Yourlocal path>/repos/IBM-SPSS-AnalyticServer/x86_64
enabled=1
gpgcheck=0
protect=1
4. In Ambariserver, run the command "yum installIBM-SPSS-AnalyticServer-ambari-2.1-HDP-2.3" to install AS.
5. In Ambariserver machine, create a repo file in /etc/yum.repos.d/
6. In themachines which will install AS metastore and AS servers., create arepo file "IBM-SPSS-AnalyticServer-2.1.0.0.repo" in/etc/yum.repos.d/
if notexsits:
[IBM-SPSS-AnalyticServer]
baseurl=file:///<Yourlocal path>/repos/IBM-SPSS-AnalyticServer/x86_64
enabled=1
gpgcheck=0
protect=1
if exsits:
Modify thebaseurl to file:///<Your localpath>/repos/IBM-SPSS-AnalyticServer/x86_64.
7. Then openthe/var/lib/ambari-server/resources/stacks/HDP/2.3/repos/repoinfo.xml inthe ambary server machine. Modify the AS baseurl tofile:///{extracted_yum_repository_root}/repos/IBM-SPSS-AnalyticServer/x86_64
8. Restartthe ambari-server
9. Login theAmbari webpage. Then click 'Add services' to add the AS server.
WORK AROUND
Add
<module>
<name>localClient</name>
<status>enabled</status>
</module>
to/opt/ibm/spss/analyticserver/2.1/ae_wlpserver/usr/servers/aeserver/configuration/ASModules.xml
改完之后 在ambariserver上restart AS 启动了之后又会stop
所以手动启
su ac_user
cd/opt/ibm/spss/analyticserver/2.1/bin
./start.sh
http://9.112.228.103:9080/analyticserver/admin/ibmadmin/admin