ubuntu14安装ambari2.2
https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.2.0+from+Public+Repositories
查看是否开启transparent_hugepage
redhat
cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
其它
cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never
always代表开启
不存在该文件就是没开启
临时关闭
echo never > /sys/kernel/mm/transparent_hugepage/defrag
/etc/hosts配置模板:
127.0.0.1 ha0 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.2.92 ha1
192.168.2.82 ha2
192.168.2.184 ha3
192.168.2.190 ha4
192.168.2.160 ha5
最好只留
192.168.2.214 ha0
192.168.2.92 ha1
192.168.2.82 ha2
192.168.2.184 ha3
192.168.2.190 ha4
192.168.2.160 ha5
几处配置过程中的错误:
下列配置都会报错
127.0.1.1 ha0 ha0.ggz.test
::1 localhost ip6-localhost ip6-loopback
127.0.0.1 localhost ha0
127.0.0.1 localhost
127.0.1.1 ha0
错误:
2013-03-11 19:41:08,263 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
ERROR 2016-01-07 11:16:51,903 main.py:143 - Ambari agent machine hostname (ha0.ggz.bluefir) does not match expected ambari server hostname (ha0). Aborting registration. Please check hostname, hostname -f and /etc/hosts file to confirm your hostname is setup correctly
INFO 2016-01-07 11:52:03,525 NetUtil.py:60 - Connecting to https://ha0.ggz.bluefir:8440/ca
如果已经错了,可以去每台机器/etc/ambari-agent/conf/ambari-agent.ini修改ambari-server主机信息
环境是在root用户下搭建
apt-get install ntp
service ntp start
1.ssh免密码登陆
2.cd /etc/apt/sources.list.d/
wget http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.0.0/ambari.list
或者直接创建ambari.list
#VERSION_NUMBER=2.2.0.0-1310
deb http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.0.0 Ambari main
3.
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
apt-get update
apt-get install ambari-server
ambari-server 对应的下载地址
http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.0.0/pool/main/a/ambari-server/ambari-server_2.2.0.0-1310_amd64.deb
(路径:/var/cache/apt/archives/ambari-server_2.2.0.0-1310_amd64.deb)
为了加快速度可以将ambari-server_2.2.0.0-1310_amd64.deb拷贝到/var/cache/apt/archives/下,再执行apt-get install ambari-server
- ambari-server setup
Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u60-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u60-linux-x64.tar.gz
为了加快速度可以将jdk-8u60-linux-x64.tar.gz拷贝到/var/lib/ambari-server/resources/下,再执行ambari-server setup
全部回车,默认,或者如果选择mysql的话
apt-get install libmysql-java
hostname:127.0.0.1
根据指导,进行建表
(通过/etc/ambari-server/conf/ambari.properties文件,貌似可以修改要安装的软件包)
5.ambari-server start
此时server安装完成
6.测试
http://ha0:8080
admin admin
数据库密码:ambari bigdata
错误:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9733A7A07513CAD
在节点机器执行:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
oozie配置:
ambari-server setup --jdbc-db=mysql --jdbc-driver=/data/mysql-connector-java-5.1.31-bin.jar
选择create new MySQL项
安装mysql
sudo apt-get install mysql-server
apt-get isntall mysql-client
sudo apt-get install libmysqlclient-dev
oozie连接MySQL的设置
jdbc url:
jdbc:mysql://localhost:3306/oozie
mysql设置
mysql -uroot -p
create database oozie;
create user 'oozie'@'%' identified by 'oozie';
GRANT ALL PRIVILEGES ON *.* TO 'oozie'@'%' WITH GRANT OPTION;
grant all on *.* to oozie@'localhost' identified by 'ooze';
flush privileges;
重新配置集群:
ambari-server stop
删除mysql中的ambari数据库
重新建ambari
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
ambari-server start
ubuntu14安装ambari2.2的更多相关文章
- ubuntu14.04下编译安装ambari-2.4.2.0
ubuntu14.04下编译安装ambari-2.4.2.0 编译前的准备工作 准备工作有: 系统参数 系统依赖(编译环境) 离线安装包 java环境 maven环境 Nodejs环境 git环境 a ...
- CentOS-7.2安装Ambari-2.4.2
一,Ambari 是什么? Ambari 跟 Hadoop 等开源软件一样,也是 Apache Software Foundation 中的一个项目,并且是顶级项目.目前最新的发布版本是 2.4.2. ...
- CentOS-7.2安装Ambari-2.6.1
CentOS-7.2安装Ambari-2.6.1 一.Ambari 是什么? Ambari 跟 Hadoop 等开源软件一样,也是 Apache Software Foundation 中的一个项目, ...
- CentOS7安装Ambari2.7.4过程【离线安装】
先配置免密码登录 修改所有结点的host 192.168.210.133 node1 192.168.210.134 node2 192.168.210.135 node3 192.168.210.1 ...
- ubuntu14安装TensorFlow
1.安装ubuntu 网址:https://www.cnblogs.com/blog4matto/p/5581914.html 选择ubuntu14的原因:最初是想安装16的,后来发现总出问题,网上查 ...
- 转)Ubuntu14安装wireshark进行抓包
转自:http://jingyan.baidu.com/article/c74d60009d992f0f6a595de6.html 背景: ubuntu14.04/64位 为了抓包和分析包 安装过程: ...
- ubuntu14安装tensorflow并测试
1.ubuntu版本的选择:看了很多博文,建议使用ubuntu14,稳定兼容性好. 2.tensorflow的安装: http://wiki.jikexueyuan.com/project/tenso ...
- [py2neo]Ubuntu14 安装py2neo失败问题解决
环境 1.操作系统Ubuntu14 2.py2neo版本4.1 3.python版本python3.4 问题 pip install py2neo==4.1 安装失败,提示: Cannot unin ...
- ubuntu14 安装及卸载vmware
原帖http://blog.sina.com.cn/s/blog_73dac6b50101gp4f.html 适用于ubuntu14和vmware player 12.5
随机推荐
- jquery中的each方法,$.each \ this.each \ $.fn.each
jquery.each 方法 方法一 $("img").each(function(i,elem){ // i 下标 从零开始, // elem == this // $(elem ...
- mysql批量更新
UPDATE ta INNER JOIN tb ON ta.id=tb.id SET ta.col1=tb.col1, ta.col2=tb.col2 以上代码用来批量更新mysql中的记录
- HttpSessionBindingListener和HttpSessionAttributeListener区别 - gengkunpeng的专栏 - 博客频道 - CSDN.NET
分享到 一键分享 QQ空间 新浪微博 百度云收藏 人人网 腾讯微博 百度相册 开心网 腾讯朋友 百度贴吧 豆瓣网 搜狐微博 百度新首页 QQ好友 和讯微博 更多... 百度分享 HttpSession ...
- JAVA解析各种编码密钥对(DER、PEM、openssh公钥)
一.DER编码密钥对 先说下DER编码,是因为JCE本身是支持DER编码密钥对的解析的,可以参见PKCS8EncodedKeySpec和X509EncodedKeySpec. DER编码是ASN.1编 ...
- 【linux】who&&w
who和w 看到目前服务器所登陆的用户,区别是w能看到更详细的信息. [root@andon tmp]# who admin tty5[tty指本地登陆] 2016-05-27 15:16[登陆时间] ...
- 14款经典的MySQL客户端软件
1. EMS MySQL Manager 强大的mysql管理工具,允许用户通过图形界面创建或编辑数据库对象,并提供通过sql语句管理用户和权限,通过图形界面建立sql语句,自动生成html格式的数据 ...
- php提高效率
1. foreach效率更高,尽量用foreach代替while和for循环. 2. 循环内部不要声明变量,尤其是对象这样的变量. 3. 在多重嵌套循环中,如有可能,应当将最长的循环放在内层,最短循环 ...
- 【gradle】之maven主库找不到Could not find org.restlet.jee:org.restlet:2.1.1
Could not find org.restlet.jee:org.restlet:2.1.1. 我是用gradle构建solr的时候出现的这个错误,通过google查询到这么一段解释 For th ...
- "aa".equals(name)这种写法为什么就可以避免空指针
public static void main(String[] args) { String name=null; if("aa".equals(name))//这种情形,不出现 ...
- 怎样减少FLASH影片文件过大——绝对好用
网站建设中怎样减少FLASH影片文件过大 一,制作前的处理 1声音(mp3): GoldWave中打开需要处理的mp3,然后把它另存为---在最下一栏的属性中选择较低的字节数,例如,本来的mp3 ...