# ambari-redis-service (For Ambari Version>2.6 and Redis Version=3.0.7)
Ambari Redis Service / Custom Stack will allow you to install and manage Redis and Redis HA (with Sentinels and Slaves) via Ambari.
To use simply download and copy the stack contents to:
1.配置yarn 资源库
1.1. redis资源库创建,并配置到网络.
1.2. 将redis.repo进行修改 , 放置到/etc/yum.repos.d
1.3. 更新资源库
yum clean all
yum list|grep redis
yum makecache
2.创建文件夹
VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
rm -rf /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/REDIS
cd /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/
3.复制数据
将 ambari-redis-service 中的文件全部复制到REDIS 目录中 (注意是ambari-redis-service中的内容.)。
4.重启ambari
ambari-server restart
5.配置安装
登录ambari管理界面,进行配置即可
注: 依赖包需要jemalloc
yum -y install jemalloc
以来文件以及代码位置: git:
https://gitee.com/zhanglong_mx/ambari-redis-service.git