好文档 - 专业文书写作范文服务资料分享网站

先电大数据平台操作手册-iandian-bigdata-v2.1

天下 分享 时间: 加入收藏 我要投稿 点赞

# source /etc/profile #java –version java version \

Java(TM) SE Runtime Environment (build HotSpot(TM) 64-Bit Server VM (build , mixed mode) # slaver1

#mkdir /usr/jdk64/ #scp .

# tar -zxvf -C /usr/jdk64/ # vi /etc/profile

export JAVA_HOME=/usr/jdk64/ PATH=$JAVA_HOME/bin:$PATH # source /etc/profile #java –version java version \

Java(TM) SE Runtime Environment (build HotSpot(TM) 64-Bit Server VM (build , mixed mode)

3 配置ambari-server

# master

# yum -y install ambari-server

3.1 安装MariaDB数据库

# master

# yum install mariadb mariadb-server mysql-connector-java 启动服务

# systemctl enable mariadb

# systemctl start mariadb 配置MySQL

#mysql_secure_installation

按enter确认后设置数据库root密码,我们这里设置为“bigdata” Remove anonymous users [Y/n] y Disallow root login remotely [Y/n] n

Remove test database and access to it [Y/n] y Reload privilege tables now [Y/n] y 创建ambari数据库 # mysql -uroot -pbigdata

MariaDB [(none)]> create database ambari;

MariaDB [(none)]> grant all privileges on ambari.* to 'ambari'@'localhost' identified by 'bigdata';

MariaDB [(none)]> grant all privileges on ambari.* to 'ambari'@'%' identified by 'bigdata';

MariaDB [(none)]> use ambari;

MariaDB [ambari]> source /var/lib/ambari-server/resources/ MariaDB [ambari]> Bye

3.2 安装配置ambari-server

# master

# ambari-server setup

WARNING: SELinux is set to 'permissive' mode and temporarily disabled. OK to continue [y/n] (y)

Customize user account for ambari-server daemon [y/n] (n) n Checking JDK...

[1] Oracle JDK + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK + Java Cryptography Extension (JCE) Policy Files 7 [3] Custom JDK

==============================================================================

Enter choice (1): 3

Path to JAVA_HOME: /usr/jdk64/ 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): 3 Hostname (localhost): Port (3306):

Database name (ambari): Username (ambari):

Enter Database Password (bigdata):

Proceed with configuring remote database connection properties [y/n] (y)

Ambari Server 'setup' completed successfully.

启动ambari-server服务 # ambari-server start

登陆界面登录用户名密码为admin:admin

4 配置ambari-agent

# master & slaver1

# yum -y install ambari-agent # vi /etc/ambari-agent/conf/ [server] hostname= master # ambari-agent restart

# tail -f /var/log/ambari-agent/

INFO 2017-01-12 09:44:20,919 :265 - Heartbeat response received (id = 1340) INFO 2017-01-12 09:44:30,820 :78 - Building Heartbeat: {responseId = 1340, timestamp = , commandsInProgress = False, componentsMapped = True}

5 部署管理Hadoop集群

5.1 部署Hadoop集群

登陆界面 Address}:8080/,用户名密码为admin:admin。接下来就可以启动安装向导,创建集群,安装服务。

先电大数据平台操作手册-iandian-bigdata-v2.1

#source/etc/profile#java–versionjavaversion\Java(TM)SERuntimeEnvironment(buildHotSpot(TM)64-BitServerVM(build,mixedmode)#slaver1#mkdir/usr/jdk64/#scp.
推荐度:
点击下载文档文档为doc格式
9reqv47be06m3qp9xkwe9ersa9ps1u00x9f
领取福利

微信扫码领取福利

微信扫码分享