Hadoop群起脚本注意事项

start-all.sh : 不推荐,使用start-dfs.sh ,启动HDFS
                                    使用start-yarn.sh,启动yarn
                                    
start-dfs.sh:  如何启动Namenode :  读取Namenode所在的主机名
                                以hadoop-daemon.sh start namenode
                                
                            如何启动DataNode:  借助etc/hadoop/slave文件!读取所有集群中的主机名!
                            
            步骤: ①编辑etc/hadoop/slave文件,将集群中所有的机器的主机名进行配置!
                   ②保证当前机器可以使用 ssh  集群其他机器  hadoop-daemon.sh start datanode
                        a)保证当前机器到其他机器已经配置ssh免密登录
                        b)所有的机器.bashrc编写了source /etc/profile

猜你喜欢

转载自blog.csdn.net/qq_43193797/article/details/85675631