欢迎来到天天文库
浏览记录
ID:38213988
大小:24.35 KB
页数:9页
时间:2019-06-07
《hbase+hadoop搭建指南》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、目录1.ssh无密钥访问21.1修改每台机器上的/etc/hosts21.2在每台机器上安装ssh21.3把主节点内.ssh目录下的所有id_rsa.pub拷贝到一个文件里21.4把这个文件authorized_keys拷贝到所有从节点32Hadoop安装32.1关闭所有节点的防火墙32.2安装JDK32.3修改/root/hadoopSoftware/hadoop-1.0.4/conf/core-site.xml42.4修改/root/hadoopSoftware/hadoop-1.0.4/conf/hdfs-site.xml52.5修改/root/hado
2、opSoftware/hadoop-1.0.4/conf/mapred-site.xml52.6修改/root/hadoopSoftware/hadoop-1.0.4/conf/masters62.7修改/root/hadoopSoftware/hadoop-1.0.4/conf/slaves62.8修改/root/hadoop-1.0.4/conf/hadoop-env.xml62.9同步到所有节点:72.10启动hadoop73Hbase安装73.1修改主节点hbase/conf文件夹下的hbase-env73.2修改主节点conf内的hbase-site
3、.xml文件73.3修改regionservers文件为83.4同步到所有从节点93.5启动hbase91.ssh无密钥访问1.1修改每台机器上的/etc/hosts,改为192.168.36.86BG4S02主节点192.168.36.92BG8S01从节点192.168.36.93BG8S02从节点192.168.36.94BG8S03从节点192.168.36.95BG8S04从节点192.168.36.96BG8S05从节点192.168.36.97BG8S06从节点192.168.36.98BG8S07从节点192.168.36.87BG8S08从节
4、点1.2在每台机器上安装sshssh-keygen-trsa,一直按回车,指导最后。把所有从节点台的id_rsa.pub拷贝到主节点的/root/.ssh/的目录下:scpBG8S01:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S01.pubscpBG8S02:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S02.pubscpBG8S03:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S03.pubscpBG8S04:/root/.ssh/id_rs
5、a.pub/root/.ssh/id_rsaBG8S04.pubscpBG8S05:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S05.pubscpBG8S06:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S06.pubscpBG8S07:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S07.pubscpBG8S08:/root/.ssh/id_rsa.pub/root/.ssh/id_rsaBG8S08.pub1.3把主节点内.ssh目录下的所有i
6、d_rsa.pub拷贝到一个文件里文件名叫authorized_keyscatid_rsa.pub>>authorized_keyscatid_rsaBG8S01.pub>>authorized_keyscatid_rsaBG8S02.pub>>authorized_keyscatid_rsaBG8S03.pub>>authorized_keyscatid_rsaBG8S04.pub>>authorized_keyscatid_rsaBG8S05.pub>>authorized_keyscatid_rsaBG8S06.pub>>authorized_keysc
7、atid_rsaBG8S07.pub>>authorized_keyscatid_rsaBG8S08.pub>>authorized_keys1.4把这个文件authorized_keys拷贝到所有从节点scpauthorized_keysBG8S01:/root/.ssh/authorized_keysscpauthorized_keysBG8S02:/root/.ssh/authorized_keysscpauthorized_keysBG8S03:/root/.ssh/authorized_keysscpauthorized_keysBG8S04:/ro
8、ot/.ssh/authorized_
此文档下载收益归作者所有