我正在嘗試使用此指令在 Mac 作業系統上安裝 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-env:
#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/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
也許 /etc/hosts 中有一些錯誤?
uj5u.com熱心網友回復:
默認情況下,Hadoop 假定0.0.0.0將映射到本地連接。
您似乎試圖通過修改主機檔案來繞過 JetBrains 帳戶檢查。請像這樣還原您的主機檔案
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/360153.html
