Ubuntu 14.10 下安装Ambari
安装ambari有两种方式,一是自己下载源码编译,另外一个是使用公共仓库
1 使用Public Respositories
Step1: Download the Ambari repository on the Ambari Server host
For Redhat/CentOS/Oracle: cd /etc/yum.repos.d/ wget <ambari-repo-url> For SUSE: cd /etc/zypp/repos.d wget <ambari-repo-url> For Ubuntu: cd /etc/apt/sources.list.d wget <ambari-repo-url> |
Choose an appropriate <ambari-repo-url> based on the platform used:
(Redhat / CentOS / Oracle) 6 |
http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.1.0-1409/ambaribn.repo |
(Redhat / CentOS / Oracle) 7 |
http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos7/2.x/BUILDS/2.1.0-1409/ambaribn.repo |
SUSE 11 |
TBD |
Ubuntu 12 | http://s3.amazonaws.com/dev.hortonworks.com/ambari/ubuntu12/2.x/BUILDS/2.1.0-1409/ambaribn.list |
Step 2: Install, Setup, and Start Ambari Server
Install Ambari Server from the public Ambari repository:
For Redhat/CentOS/Oracle: yum install ambari-server For SUSE: zypper install ambari-server For Ubuntu: apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD apt-get update apt-get install ambari-server |
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
ambari-server setup |
Start Ambari Server:
ambari-server start |
Step 3: Deploy Cluster using Ambari Web UI
Open up a web browser and go to http://<ambari-server-host>:8080.
Log in with username admin and password admin and follow on-screen instructions.
2 自己下载源码编译
Step 1: Download and build Ambari 2.1.0 source
Go to http://www.apache.org/dyn/closer.cgi/ambari/ambari-2.1.0 and find the suggested mirror for download. The process to verify the download is described is at http://www.apache.org/dyn/closer.cgi#verify
wget http: //www.apache.org/dist/ambari/ambari-2.1.0/apache-ambari-2.1.0-src.tar.gz (use the suggested mirror from above) tar xfvz apache-ambari- 2.1 . 0 -src.tar.gz cd apache-ambari- 2.1 . 0 -src mvn versions:set -DnewVersion= 2.1 . 0 pushd ambari-metrics mvn versions:set -DnewVersion= 2.1 . 0 popd |
Note: If running into errors while compiling the ambari-metrics package due to missing the artifacts of jms, jmxri, jmxtools:
[ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-kafka-sink:jar: 2.1 . 0 - 0 : The following artifacts could not be resolved: javax.jms:jms:jar: 1.1 , com.sun.jdmk:jmxtools:jar: 1.2 . 1 , com.sun.jmx:jmxri:jar: 1.2 . 1 : Could not transfer artifact javax.jms:jms:jar: 1.1 from/to java.net (https: //maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory |
The work around is to manually install the three missing artifacts:
mvn install:install-file -Dfile=jms- 1.1 .pom -DgroupId=javax.jms -DartifactId=jms -Dversion= 1.1 -Dpackaging=jar mvn install:install-file -Dfile=jmxtools- 1.2 . 1 .pom -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion= 1.2 . 1 -Dpackaging=jar mvn install:install-file -Dfile=jmxri- 1.2 . 1 .pom -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion= 1.2 . 1 -Dpackaging=jar |
The three poms are:
$ cat jms- 1.1 .pom <project> <modelVersion> 4.0 . 0 </modelVersion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version> 1.1 </version> <name>Java Message Service</name> <description> The Java Message Service (JMS) API is a messaging standard that allows application components based on the Java 2 Platform, Enterprise Edition (J2EE) to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous. </description> <url>http: //java.sun.com/products/jms</url> <distributionManagement> <downloadUrl>http: //java.sun.com/products/jms/docs.html</downloadUrl> </distributionManagement> |
$ cat jmxri- 1.2 . 1 .pom <?xml version= "1.0" encoding= "UTF-8" ?><project> <modelVersion> 4.0 . 0 </modelVersion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> <version> 1.2 . 1 </version> <distributionManagement> <status>deployed</status> </distributionManagement> |
$ cat jmxtools- 1.2 . 1 .pom <?xml version= "1.0" encoding= "UTF-8" ?><project> <modelVersion> 4.0 . 0 </modelVersion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> <version> 1.2 . 1 </version> <distributionManagement> <status>deployed</status> </distributionManagement> |
RHEL (CentOS 5 or 6) & SUSE (SLES 11):
mvn -B clean install package rpm:rpm -DnewVersion= 2.1 . 0 -DskipTests -Dpython.ver= "python >= 2.6" |
Ubuntu:
mvn -B clean install package jdeb:jdeb -DnewVersion= 2.1 . 0 -DskipTests -Dpython.ver= "python >= 2.6" |
Note: You need to have tools such as rpm-build tool, brunch, etc. For details on prerequisites, please see Ambari Development.
Step 2: Install Ambari Server
Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/
[For CentOS 5 or 6]
yum install ambari-server*.rpm #This should also pull in postgres packages as well. |
[For SLES 11]
zypper install ambari-server*.rpm #This should also pull in postgres packages as well. |
[For Ubuntu 12]
apt-get install ambari-server*.deb #This should also pull in postgres packages as well. |
Step 3: Setup and Start Ambari Server
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
ambari-server setup |
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
ambari-server start |
Step 4: Install and Start Ambari Agent on All Hosts
Note: This step needs to be run on all hosts that will be managed by Ambari.
Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:
[For CentOS 5 or 6]
yum install ambari-agent*.rpm |
[For SLES 11]
zypper install ambari-agent*.rpm |
[For Ubuntu 12]
apt-get install ambari-agent*.rpm |
Edit /etc/ambari-agent/ambari.ini
... [server] hostname=localhost ... |
Make sure hostname under the [server] section points to the actual Ambari Server host, rather than "localhost".
ambari-agent start |
Step 5: Deploy Cluster using Ambari Web UI
Open up a web browser and go to http://<ambari-server-host>:8080.
Log in with username admin and password admin and follow on-screen instructions. Secure your environment by ensuring your administrator details are changed from the default values as soon as possible.
Under Install Options page, enter the hosts to add to the cluster. Do not supply any SSH key, and check "Perform manual registration on hosts and do not use SSH" and hit "Next".
第一种方式比较简单,但是下载Ambari花了很长时间
第二种方式比较复杂,编译过程中会遇到各种问题,包括安装NodeJS,安装Brunch....等等
参考:
https://cwiki.apache.org/confluence/display/AMBARI/Build+and+install+Ambari+2.1.0+from+Source
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development
https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.1.0+from+Public+Repositories
http://www.sxt.cn/u/756/blog/5423
Ubuntu 14.10 下安装Ambari的更多相关文章
- Ubuntu 14.10 下安装Ambari 问题汇总
在编译安装Ambari时候遇到了很多问题,现在记录一下 1 got error npm ERR! phantomjs@1.9.12 install while building ambari-web ...
- Ubuntu 14.10 下安装Ganglia监控集群
关于 Ganglia 软件,Ganglia是一个跨平台可扩展的,高性能计算系统下的分布式监控系统,如集群和网格.它是基于分层设计,它使用广泛的技术,如XML数据代表,便携数据传输,RRDtool用于数 ...
- Ubuntu 14.10 下安装java反编译工具 jd-gui
系统环境,Ubuntu 14.10 ,64位 1 下载JD-GUI,网址http://221.3.153.126/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/jd.benow.ca/ ...
- Ubuntu 14.10 下安装伪分布式hive-0.14.0
本地独立模式,MySQL作为元数据库 1 安装环境准备 1.1 安装JDK,在安装hadoop时候已经安装了,参考http://www.cnblogs.com/liuchangchun/p/40972 ...
- Ubuntu 14.10 下安装navicat
1 下载navicat,网址http://www.navicat.com.cn/download,我下载的是navicat111_premium_cs.tar.gz 2 解压到合适的位置 3 进入解压 ...
- Ubuntu 14.10下安装深度音乐客户端
很多刚从windows系统投靠到ubuntu的机油,在听音乐时不是很舒心.毕竟ubuntu软件中心的很多影音软件都是国外的朋友编写的,所以很多时候国内的朋友用着很不舒服.今天给大家推荐的是国内开发者针 ...
- Ubuntu 14.10 下安装rabbitvcs-版本控制
在Windows下用惯了TortoiseSVN这只小乌龟,到了Ubuntu下很不习惯命令行的SVN,于是经过一番寻找安装了RabbitVCS这款SVN图形化前端工具(官方网站:http://rabbi ...
- Ubuntu 14.10 下安装伪分布式hdoop 2.5.0
折腾了一天,其间配置SSH时候出现了问题,误删了ssh-keygen相关文件,导致配置SSH彻底萎了,又重装了系统.... 采用伪分布式模式,即hadoop将所有进程运行于同一台主机上,但此时Hado ...
- Ubuntu 14.10 下安装Synergy,不同电脑之间公用一套键盘鼠标
因为工作时候有多台电脑放在一起,如果每个用一套键盘鼠标很是不方便,所以希望能够不用电脑之间公用一套键盘鼠标. Synergy可以实现不同电脑之间公用一套键盘鼠标,并且支持简单的复制粘贴.很好用. 它还 ...
随机推荐
- nginx中try_files
location / { try_files $uri $uri/ /index.php?$query_string; } 当用户请求 http://localhost/example 时,这里的 $ ...
- Linux c 从文件当中读取任意一行的数据
代码如下 #include <stdio.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/ty ...
- VMware与Centos系统安装、重置root密码
VMware与Centos系统安装 今日任务 .Linux发行版的选择 .vmware创建一个虚拟机(centos) .安装配置centos7 .xshell配置连接虚拟机(centos) 选择性 ...
- python: super原理
super() 的入门使用 在类的继承中,如果重定义某个方法,该方法会覆盖父类的同名方法,但有时,我们希望能同时实现父类的功能,这时,我们就需要调用父类的方法了,可通过使用 super 来实现,比如: ...
- Java基础-访问修饰符
访问修饰符 default (即缺省,什么也不写): 在同一包内可见,不使用任何修饰符.使用对象:类.接口.变量.方法. private : 在同一类内可见.使用对象:变量.方法. 注意:不能修饰类( ...
- 18-10-09 Linux常用命令大全(非常全!!!)
Linux常用命令大全(非常全!!!) Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制, ...
- SQLite相关异常
SQLite的异常大多都和异常IO操作有关,这类异常通常在debug测试的时候难以发现通常和用户的操作有关系,根据我遇到的包括以下几种: 1.No transaction is active 这种情况 ...
- FreeSWITCH添加中文语音
1.准备中文语音包 可以到freeswitch官网下载,也可以自己录制 2.中文资源的安装路径: 英文资源的路径为conf/sounds/en/us/callie/... 类似的设置中文资源的路径 ...
- L2-024. 部落(并查集)*
L2-024. 部落 参考博客 #include<cstdio> #include<iostream> #include<set> #include<algo ...
- 5.移动终端App测试点归纳
以下所有测试最后必须在真机上完整的执行. 1 安装.卸载测试 1.1 在真机上.第三方软件(xy苹果助手.91.安卓助手)的安装与卸载 1.2 安装在手机卡上 或 SD卡上 (不同的IOS和安卓版本) ...