http://192.168.159.11/hbase/
虚拟机目录/var/www/html/hbase
启动httpd /bin/systemctl start httpd.service
httpd配置文件修改下面三行路径 vi /etc/httpd/conf/httpd.conf
DocumentRoot "/data/www/html"
<Directory "/data/www">
<Directory "/data/www/html">
重启 /bin/systemctl restart httpd.service
关闭透明大页
[root@hdp11 ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never
[root@hdp11 ~]# echo never > /sys/kernel/mm/transparent_hugepage/enabled
[root@hdp11 ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
yum文件
[root@hdp1 hbase]# cat /etc/yum.repos.d/hdp.repo
[AMBARI-2.2.1.0] name=AMBARI-2.2.1.0 baseurl=http://hdp1/hbase/AMBARI-2.2.1.0/centos7/2.2.1.0-161/ enabled=1 gpgcheck=0 [HDP-2.2.1.0] name=HDP-2.2.1.0 baseurl=http://hdp1/hbase/HDP/centos7/2.x/updates/2.4.0.0/ enabled=1 gpgcheck=0 [HDP-uti] name=HDP-uti baseurl=http://hdp1/hbase/HDP-UTILS-1.1.0.20/repos/centos7/ enabled=1 gpgcheck=0
所有节点
yum -y install ambari-agent
ambari-agent start
chkconfig --add ambari-agent
修改配置文件hostname /etc/ambari-agent/conf/ambari-agent.ini
master节点 yum install ambari-server -y
初始化ambari-server ambari-server setup
一路默认(jdk选[3] Custom JDK 填JAVA_HOME地址 数据库选[1] - PostgreSQL (Embedded))
ambari账号密码 都是admin(或者ambari)
Database name (ambari):
Postgres schema (ambari):
Username (ambari):
Enter Database Password (bigdata):
[root@hdp9 ~]# ambari-server setup Using python /usr/bin/python2 Setup ambari-server Checking SELinux... SELinux status is 'disabled' Customize user account for ambari-server daemon [y/n] (n)? Adjusting ambari-server permissions and ownership... Checking firewall status... Redirecting to /bin/systemctl status iptables.service Checking JDK... Do you want to change Oracle JDK [y/n] (n)? y [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [3] Custom JDK ============================================================================== Enter choice (1): 3 WARNING: JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts. WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. Path to JAVA_HOME: /var/java/jdk1.8.0_151/ Validating JDK on Ambari Server...done. Completing setup... Configuring database... Enter advanced database configuration [y/n] (n)? y Configuring database... ============================================================================== Choose one of the following options: [1] - PostgreSQL (Embedded) [2] - Oracle [3] - MySQL [4] - PostgreSQL [5] - Microsoft SQL Server (Tech Preview) [6] - SQL Anywhere ============================================================================== Enter choice (1): Database name (ambari): Postgres schema (ambari): Username (ambari): admin Enter Database Password (ambari): Re-enter password: Default properties detected. Using built-in database. Configuring ambari database... Checking PostgreSQL... Configuring local database... Connecting to local database...done. Configuring PostgreSQL... Restarting PostgreSQL Extracting system views... ....... Adjusting ambari-server permissions and ownership... Ambari Server 'setup' completed successfully.
启动service ambari-server start 页面访问http://192.168.159.19:8080/ admin admin
ambari-server start 启动 ambari-server stop 停止 ambari-server restart 重启 ambari-agent start 启动 ambari-agent stop 停止 ambari-agent status 查看状态
Name your cluster kzx_pay_hf
HDP 2.4
Advanced Repository Options (参考 /etc/yum.repos.d/hdp.repo)
Choose Services
HDFS HBase ZooKeeper Ambari Metrics
这里注意 failed disk tolerance设置,测试环境如果只有一个磁盘 又设置1会导致datanode启动失败
报org.apache.hadoop.util.DiskChecker$DiskErrorException: Invalid volume failure config value: 1
【HDFS问题】datanode启动失败的问题
- Add HBase Master 为hbase增加Standby HBase Maste(添加完需要start,先显示hbase master,启动完会变成Standby HBase Maste)
- Enable NameNode HA(需停掉hbase),填
-
1
1
标签:...,ambari,JDK,hdp2.4,server,agent,hbase,搭建 From: https://www.cnblogs.com/hanxing/p/18163594