更改hadoop多群集中的ssh默认端口 [英] Change ssh default port in hadoop multi cluster

查看:1275
本文介绍了更改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默认端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆