简体   繁体   English

在 Mac OS 上安装 Hadoop 的问题

[英]Problems with installation Hadoop on Mac OS

I am trying to install hadoop on Mac os using this instruction .我正在尝试使用此指令在 Mac 操作系统上安装 hadoop。 At this step sbin/start-dfs.sh , I have a problem.在这一步sbin/start-dfs.sh ,我遇到了问题。 My result: 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: '/'我的结果: 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: '/' 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: '/' . 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: '/'

What can be done about it?可以做些什么呢? I really hope for your help!我真的希望得到你的帮助!

hadoop-env: hadoop-env:

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

Generated SSH key生成的 SSH 密钥

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

/etc/hosts: /etc/hosts:

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  

Maybe there is some error in /etc/hosts?也许 /etc/hosts 中有一些错误?

By default, Hadoop assumes that 0.0.0.0 will map to a local connection.默认情况下,Hadoop 假定0.0.0.0将映射到本地连接。

You appear to have tried to bypass JetBrains account checks by modifying your hosts file.您似乎试图通过修改主机文件来绕过 JetBrains 帐户检查。 Please revert your hosts file like this请像这样还原您的主机文件

127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM