HDFS 在Mac OS上安装Hadoop的问题

rnmwe5a2  于 2022-12-09  发布在  HDFS
关注(0)|答案(1)|浏览(214)

我正在尝试使用此指令在Mac OS上安装Hadoop。在这一步sbin/start-dfs.sh,我有一个问题。我的结果:Starting namenodes on [localhost] Starting datanodes localhost: datanode is running as process 26210. Stop it first. Starting secondary namenodes [https://account.jetbrains.com:443] sed: 1: "s/^/https://account.jet ...": bad flag in substitute command: '/' .
我能做些什么呢?我真的希望你能帮助我!
Hadoop环境:

#export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home

生成的SSH密钥

ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa 
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 
chmod 0600 ~/.ssh/authorized_keys

/etc/主机:

127.0.0.1   localhost 
255.255.255.255 broadcasthost 
::1             localhost 
0.0.0.0 https://account.jetbrains.com:443  
1.2.3.4 account.jetbrains.com  
1.2.3.4 http://www.jetbrains.com  
1.2.3.4 www-weighted.jetbrains.com  
0.0.0.0 account.jetbrains.com

可能是/etc/hosts中有一些错误?

vmdwslir

vmdwslir1#

默认情况下,Hadoop假设0.0.0.0将Map到本地连接。
您似乎试图通过修改主机文件来绕过JetBrains帐户检查。请按如下方式还原主机文件

127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost

相关问题