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系统上安装安卓应

wallpaperengine启动时,有4种不同的选项,有很多用户不知道wallpaperengine启动选哪一个,一般wallpaperengine启动时选择第一个:启动32位即可。wallpaperengine启动选哪一个答:启动32位。1、一般wallpaperengine启动时选择第一个:启动32位即可。2、wallpaperengine启动时,有4种不同的选项:启动32位;启动64位。3、启动32位:这是一般推荐的选项,适用于大多数用户。4、启动64位:如果系统支持64位,可以选择此选

显示错误是在香香腐宅app中可能会出现的问题,有些用户还不太清楚香香腐宅app为什么显示错误,可能是网络连接问题、后台程序过多、注册信息错误等问题,接下来就是小编为用户带来的app显示错误解决方法的介绍,感兴趣的用户快来一起看看吧!香香腐宅app为什么显示错误答:网络连接问题、后台程序过多、注册信息错误等详情介绍:1、【网络问题】解决方法:检查设备连接网络状态,重新连接或选择其他网络连接使用即可。2、【后台程序过多】解决方法:关闭正在运行的其他程序,释放系统,可以加快软件的运行。3、【注册信息错

如果您使用过Docker,则必须了解守护进程、容器及其功能。守护进程是在容器已在任何系统中使用时在后台运行的服务。Podman是一个免费的管理工具,用于管理和创建容器,而不依赖于任何守护程序,如Docker。因此,它在管理集装箱方面具有优势,而不需要长期的后台服务。此外,Podman不需要使用根级别的权限。本指南详细讨论了如何在Ubuntu24上安装Podman。更新系统我们首先要进行系统更新,打开Ubuntu24的Terminalshell。在安装和升级过程中,我们都需要使用命令行。一种简单的
