更改hadoop多群集中的ssh默认端口

编程入门 行业动态 更新时间:2024-10-25 01:26:06
本文介绍了更改hadoop多群集中的ssh默认端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我的Hadoop多节点群集有3个节点,一个名称节点和两个datanodes,我使用Hbase存储数据,由于某些原因,我想更改默认的ssh端口号,我知道该怎么做,但如果我改变了,我将不得不在hadoop和hbase中进行哪些配置更改?

我看到链接,这个链接只是解释了hadoop的配置变化,但我认为Hbase,Zookeper和Yarn的配置也需要改变。我对吗?如果是的话,我需要在hadoop和hbase中做什么改变?

Hadoop verison 2.7.1 p $ HB $ b HBase version 1.0.1.1

Help Appreciated :)

解决方案

SSH isn Hadoop托管配置,因此与Spark,Hbase,Zookeper或Yarn无关,除了向群集添加新节点和进行内部通信之外。

您必须在每个节点上编辑 / etc / ssh / sshd_config 以更改任何SSH相关设置。然后重新启动所有Hadoop服务以及 sshd 。

相关行是

Port 22

更改端口号,然后做 pre $ sudo service sshd restart code $

在 hadoop-env.sh 中有 HADOOP_SSH_OPTS 环境变量。我不太确定它的功能,但欢迎您尝试像这样设置端口。

export HADOOP_SSH_OPTS = - p

也不确定这个,但是在 hbase-env.sh

export HBASE_SSH_OPTS = - p ;

完成所有配置后,重新启动Hadoop服务

stop-all.sh start-all.sh

My Hadoop muti node cluster has 3 nodes, one namenode and two datanodes, I am using Hbase for storing data, due to some reasons I want to change default ssh port number which I know how to do, but if I change that, what configuration changes I will have to make in hadoop and hbase?

I saw link , this link just explains the change in configuration for hadoop, but I think configuration of Hbase, Zookeper and Yarn also needs to be changed. Am I right? If yes, what changes I need to do in hadoop and hbase?

Hadoop verison 2.7.1

HBase version 1.0.1.1

Help Appreciated :)

解决方案

SSH isn't a Hadoop managed configuration, and therefore has nothing to do with Spark, Hbase, Zookeper or Yarn other than adding new nodes to the cluster and inter-process communication.

You'll have to edit /etc/ssh/sshd_config on every node to change any SSH related settings. Then restart all the Hadoop services as well as sshd.

The related line is

Port 22

Change the port number, then do

sudo service sshd restart

In hadoop-env.sh there is the HADOOP_SSH_OPTS environment variable. I'm not really sure what it does, but you are welcome to try and set a port like so.

export HADOOP_SSH_OPTS="-p <num>"

Also not sure about this one, but in hbase-env.sh

export HBASE_SSH_OPTS="-p <num>"

Once done setting all the configs, restart the Hadoop services

stop-all.sh start-all.sh

更多推荐

更改hadoop多群集中的ssh默认端口

本文发布于:2023-08-07 03:44:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1316783.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口   hadoop   ssh

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!