自动启动hadoop服务

自动启动hadoop服务,hadoop,centos,Hadoop,Centos,我正在使用centos 7,我想让hadoop服务以动态方式工作 我的意思是,我想自动化发出start-all.sh命令的过程 在centos启动后自动执行 我编写了以下脚本,并将其命名为start-hadoop.sh(/root/start-hadoop.sh) 哪个应该启动hadoop服务 我以root用户身份授予该脚本执行权限,并将该脚本目录放入文件rc.local中 在给出它之后,当然可以在路径/etc/rc.d/rc.local下找到它 执行权限,但在启动时不执行 请提供帮助,有没有更

我正在使用centos 7,我想让hadoop服务以动态方式工作 我的意思是,我想自动化发出start-all.sh命令的过程 在centos启动后自动执行

我编写了以下脚本,并将其命名为start-hadoop.sh(/root/start-hadoop.sh)

哪个应该启动hadoop服务

我以root用户身份授予该脚本执行权限,并将该脚本目录放入文件rc.local中

在给出它之后,当然可以在路径/etc/rc.d/rc.local下找到它 执行权限,但在启动时不执行
请提供帮助,有没有更好的方法

您能找到解决方案吗?您能找到解决方案吗?
/etc/rc.d/init.d/functions

/usr/local/hadoop/etc/hadoop/hadoop-env.sh

/usr/local/hadoop/sbin/start-dfs.sh