当前位置:网站首页>Centralized management of clusters
Centralized management of clusters
2022-07-28 01:24:00 【Brother Xing plays with the clouds】
One 、 The current problems
Before reading this article , You should read : Get to know namenode and datanode.
Before , We started Hadoop In clusters , The first is to start namenode, Then start datanode. Be careful : Our previous practice is to manually start datanode The command of is sent to all datanode, Obviously, if the cluster is very large , This is not appropriate . We hope to pass start-dfs.sh Start all nodes . So we need to configure namenode On top of the machine slaves file , This file manages this namenode All of the following datanode. The location of this file is :{hadoop_home}/etc/hadoop, among {hadoop_home} yes Hadoop Installation directory .
Two 、 To configure namenode On the machine slaves file
1. function cd /usr/local/hadoop/hadoop-2.7.3/etc/hadoop Enter into slaves Directory of files
2. function vim slaves command , add to slave Machine name , Save and exit .
3、 ... and 、 Configuration free SSH Remote login
1. stay namenode On the machine , Get into /root/.ssh Below directory , Run the command : ssh-keygen -t rsa
2. take namenode The public key on the machine copy To npfdev1( This machine ),npfdev2,npfdev3,npfdev4 above .
Run the following command :
ssh-copy-id npfdev1
ssh-copy-id npfdev2
ssh-copy-id npfdev3
ssh-copy-id npfdev4
Four 、 stay namenode Machine running start-dfs.sh Start cluster
1. Once the boot is complete , see :
Be careful :start-dfs.sh Will start by default secondarynamenode
5、 ... and 、 stay namenode Machine running stop-dfs.sh Start cluster
1. After stopping , see :
6、 ... and 、 Startup and shutdown Hadoop Summary of cluster command steps :
1. modify master On /etc/hadoop/slaves file , every last slave Occupy a line .
2. Configuration free SSH Remote login .
3. start-dfs.sh Start cluster .
4. stop-dfs.sh Stop the cluster .
Be careful : If you make similar mistakes ,
The solution is in hadoop-env.sh and yarn-env.sh Add the following two lines :
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
reference :
1. Hadoop 2.2.0 Cluster installation
边栏推荐
- If asynchronous processing is implemented according to the framework
- Advanced MySQL -- stored procedures and custom functions
- Redefine analysis - release of eventbridge real-time event analysis platform
- 如何让数字零售承接起流量时代和留量时代的发展重任,或许才是关键所在
- 安全检测风险
- 在一个字符串里面统计给定字符串的个数
- Support Wu xiongang! Arm Chinese management sent an open letter: shocked and angry at the unwarranted allegations!
- How the test architects of bat factories interpret various disputes of the test platform
- Huawei responded to the US blockade of the supply chain: they still have to pay for 5g patents
- Oxygen temperature and humidity module
猜你喜欢

在一个字符串里面统计给定字符串的个数

Lua进阶
![[C language] file operation](/img/6e/b8f3466ca0a5f7424afcab561124af.png)
[C language] file operation

mysql查询条件字段值末尾有空格也能查到数据问题

Matlab 绘制 - 点和向量:向量加减的方法和源码

BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)

ABAP CDS Table Function介绍与示例

Introduction to the browser video frame operation method requestvideoframecallback()

《安富莱嵌入式周报》第275期:2022.07.18--2022.07.24

Lua快速上手
随机推荐
Meguiar sued liandian for secret theft and sentenced: liandian was fined NT $100million and three employees were sentenced!
从功能测试到自动化测试,月薪突破30K+,我的6年测开经验。
3年经验想拿20K,居然面了半个月都没拿到?
Use of swarm task task
BSP video tutorial issue 21: easy one key implementation of serial port DMA variable length transceiver, support bare metal and RTOS, including MDK and IAR, which is more convenient than stm32cubemx (
BigDecimal common API
At the meeting on June 19, SMIC may set the fastest listing record in China!
BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)
Arm中国夺权大战的背后:“独立”两年,仍难“自主”?
重新定义分析 - EventBridge 实时事件分析平台发布
Flutter 通话界面UI
Starfish Os打造的元宇宙生态,跟MetaBell的合作只是开始
8000字讲透OBSA原理与应用实践
美光起诉联电窃密案宣判:联电被罚1亿元新台币,三名员工被判刑!
Redis-哨兵模式
比亚迪半导体完成8亿元A+轮融资:30家知名投资机构入局,估值已达102亿元!
Oxygen temperature and humidity module
spreadsheet 导出 excel表格
From functional testing to automated testing, my monthly salary has exceeded 30k+, and I have 6 years of testing experience.
20 bad habits of bad programmers