Hadoop2.x安装启动错误
Hadoop2安装笔记可以参看:http://www.geedoo.info/hadoop2-development-environment-to-build-test.html 这里主要记录下hadoop安装和测试过程遇到的问题记录: 1.问题一 安装配置完成后执行start-dfs.sh出现如下异常: sed: -e expression #1, char 6: unkn
Hadoop2安装笔记可以参看:http://www.geedoo.info/hadoop2-development-environment-to-build-test.html
这里主要记录下hadoop安装和测试过程遇到的问题记录:
1.问题一
安装配置完成后执行start-dfs.sh出现如下异常:
sed: -e expression #1, char 6: unknown option to `s' have: ssh: Could not resolve hostname have: Name or service not known loaded: ssh: Could not resolve hostname loaded: Name or service not known VM: ssh: Could not resolve hostname VM: Name or service not known library: ssh: Could not resolve hostname library: Name or service not known which: ssh: Could not resolve hostname which: Name or service not known You: ssh: Could not resolve hostname You: Name or service not known stack: ssh: Could not resolve hostname stack: Name or service not known might: ssh: Could not resolve hostname might: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known guard.: ssh: Could not resolve hostname guard.: Name or service not known Java: ssh: Could not resolve hostname Java: Name or service not known disabled: ssh: Could not resolve hostname disabled: Name or service not known The: ssh: Could not resolve hostname The: Name or service not known will: ssh: Could not resolve hostname will: Name or service not known VM: ssh: Could not resolve hostname VM: Name or service not known try: ssh: Could not resolve hostname try: Name or service not known the: ssh: Could not resolve hostname the: Name or service not known fix: ssh: Could not resolve hostname fix: Name or service not known stack: ssh: Could not resolve hostname stack: Name or service not known Server: ssh: Could not resolve hostname Server: Name or service not known guard: ssh: Could not resolve hostname guard: Name or service not known to: ssh: Could not resolve hostname to: Name or service not known 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known you: ssh: Could not resolve hostname you: Name or service not known highly: ssh: Could not resolve hostname highly: Name or service not known -c: Unknown cipher type 'cd' fix: ssh: Could not resolve hostname fix: Name or service not known recommended: ssh: Could not resolve hostname recommended: Name or service not known that: ssh: Could not resolve hostname that: Name or service not known now.: ssh: Could not resolve hostname now.: Name or service not known library: ssh: Could not resolve hostname library: Name or service not known the: ssh: Could not resolve hostname the: Name or service not known link: ssh: Could not resolve hostname link: Name or service not known with: ssh: Could not resolve hostname with: Name or service not known or: ssh: Could not resolve hostname or: Name or service not known noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known with: ssh: Could not resolve hostname with: Name or service not known The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established. RSA key fingerprint is fa:8e:e6:aa:3f:f9:f0:0b:48:6e:40:ca:c2:f1:02:21. Are you sure you want to continue connecting (yes/no)? it: ssh: connect to host it port 22: Connection refused HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known warning:: ssh: Could not resolve hostname warning:: Name or service not known
出现上述问题,之后谷歌了很久,大部分说是配置hosts的问题,检查之后没发现问题。
问题的原因是没有设置hadoop的native本地库。
解决方案:
输出native环境变量
export HADOOP_COMMON_LIB_NATIVE_DIR=/app/cloud/hadoop/hadoop-2.4.0/lib/native
参考
http://stackoverflow.com/questions/19943766/hadoop-unable-to-load-native-hadoop-library-for-your-platform-error-on-centos
http://stackoverflow.com/questions/19775808/messed-up-sed-syntactics-in-hadoop-startup-script-after-reinstalling-jvm
http://stackoverflow.com/questions/20011252/hadoop-2-2-0-64-bit-installing-but-cannot-start
原文地址:Hadoop2.x安装启动错误, 感谢原作者分享。

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

如果您在使用印表機時遇到錯誤訊息,例如操作無法完成(錯誤0x00000771),可能是因為印表機已中斷連線。在這種情況下,您可以透過以下方法解決問題。在本文中,我們將討論如何在Windows11/10PC上修復此問題。整個錯誤訊息說:操作無法完成(錯誤0x0000771)。指定的印表機已被刪除。修正WindowsPC上的0x00000771印表機錯誤若要修復印表機錯誤操作無法完成(錯誤0x0000771),指定的印表機已在Windows11/10PC上刪除,請遵循下列解決方案:重新啟動列印假脫機

目錄解決方法一解決方法二一、刪除Windows更新的臨時檔案二、修復受損的系統檔案三、檢視並修改登錄項目四、關閉網卡IPv6五、執行WindowsUpdateTroubleshootor工具進行修復六、關閉防火牆和其它相關的防毒軟體。七、關閉WidowsUpdate服務。解決方法三解決方法四華為電腦Windows更新出現「0x8024401c」報錯問題現象問題原因解決方案仍未解決?最近web伺服器因為系統漏洞需要更新,登入伺服器之後,更新提示錯誤碼0x8024401c解決方法一

如果你已經成功下載了百度網盤的安裝文件,但是無法正常安裝,可能是軟體文件的完整性發生了錯誤或者是殘留文件和註冊表項的問題,下面就讓本站來為用戶們來仔細的介紹一下百度網盤下載成功但是安裝不了問題解析吧。 百度網盤下載成功但是安裝不了問題解析 1、檢查安裝檔完整性:確保下載的安裝檔完整且沒有損壞。你可以重新下載一次,或者嘗試使用其他可信任的來源下載安裝檔。 2、關閉防毒軟體和防火牆:某些防毒軟體或防火牆程式可能會阻止安裝程式的正常運作。嘗試將防毒軟體和防火牆停用或退出,然後重新執行安裝

wps是使用非常廣泛的辦公室軟體,包括了文件、表格和PPT,並且支援多端同步。如果在編輯wps時出現提示“無法啟動此物件的來源應用程式”,則如何解決?出現這個問題可能是因為你正在嘗試打開一個連結或文件,但是它的來源應用程式已經不存在或被刪除了。 以下是一些修復方法: 1、重新安裝WPS軟體:嘗試重裝WPSOffice來修復該問題,確保您使用的是最新版本。 2、手動更改預設程式:試著將預設程式更改為WPS,可以按右鍵單擊需要打開的文件,選擇“打開方式”,然

在Linux上安裝安卓應用程式一直是許多用戶所關心的問題,尤其是對於喜歡使用安卓應用程式的Linux用戶來說,掌握如何在Linux系統上安裝安卓應用程式是非常重要的。雖然在Linux系統上直接運行安卓應用程式並不像在Android平台上那麼簡單,但是透過使用模擬器或第三方工具,我們依然可以在Linux上愉快地享受安卓應用程式的樂趣。以下將為大家介紹在Linux系統上安裝安卓應

顯示錯誤是在香香腐宅app中可能會出現的問題,有些用戶還不太清楚香香腐宅app為什麼顯示錯誤,可能是網絡連接問題、後台程序過多、註冊信息錯誤等問題,接下來就是小編為使用者帶來的app顯示錯誤解決方法的介紹,有興趣的使用者快來一起看看吧!香香腐宅app為何顯示錯誤答案:網路連線問題、後台程式過多、註冊資訊錯誤等詳情介紹:1、【網路問題】解決方法:檢視裝置連線網路狀態,重新連線或選擇其他網路連線使用即可。 2.【後台程式過多】解決方法:關閉正在運作的其他程序,釋放系統,可以加快軟體的運作。 3、【註冊資訊錯

wallpaperengine啟動時,有4種不同的選項,有許多使用者不知道wallpaperengine啟動選哪一個,一般wallpaperengine啟動時選擇第一個:啟動32位元即可。 wallpaperengine啟動選哪一個答:啟動32位元。 1.一般wallpaperengine啟動時選擇第一個:啟動32位元即可。 2.wallpaperengine啟動時,有4種不同的選項:啟動32位元;啟動64位元。 3.啟動32位元:這是一般建議的選項,適用於大多數使用者。 4.啟動64位:如果系統支援64位,可以選擇此選

如果您使用過Docker,則必須了解守護程式、容器及其功能。守護程序是在容器已在任何系統中使用時在背景執行的服務。 Podman是一個免費的管理工具,用於管理和建立容器,而不依賴任何守護程序,例如Docker。因此,它在管理貨櫃方面具有優勢,而不需要長期的後台服務。此外,Podman不需要使用根級別的權限。本指南詳細討論如何在Ubuntu24上安裝Podman。更新系統我們先進行系統更新,開啟Ubuntu24的Terminalshell。在安裝和升級過程中,我們都需要使用命令列。一種簡單的
