热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Hadoop2.2.0版本./startall.sh错误解决

为什么80%的码农都做不了架构师?转自001ThisscriptisDeprecated.Insteadu

为什么80%的码农都做不了架构师?>>>   hot3.png

转自

001This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
002 Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/hadoop/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
003 It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.]
004 HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
005 -c: Unknown cipher type 'cd'
006 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
007 you: ssh: Could not resolve hostname you: Name or service not known
008 Server: ssh: Could not resolve hostname Server: Name or service not known
009 You: ssh: Could not resolve hostname You: Name or service not known
010 The: ssh: Could not resolve hostname The: Name or service not known
011 Java: ssh: Could not resolve hostname Java: Name or service not known
012 will: ssh: Could not resolve hostname will: Name or service not known
013 guard.: ssh: Could not resolve hostname guard.: Name or service not known
014 stack: ssh: Could not resolve hostname stack: Name or service not known
015 disabled: ssh: Could not resolve hostname disabled: Name or service not known
016 with: ssh: Could not resolve hostname with: Name or service not known
017 highly: ssh: Could not resolve hostname highly: Name or service not known
018 guard: ssh: Could not resolve hostname guard: Name or service not known
019 recommended: ssh: Could not resolve hostname recommended: Name or service not known
020 whichssh: Could not resolve hostname which: Name or service not known
021 it: ssh: Could not resolve hostname it: Name or service not known
022 It's: ssh: Could not resolve hostname It's: Name or service not known
023 have: ssh: Could not resolve hostname have: Name or service not known
024 fix: ssh: Could not resolve hostname fix: Name or service not known
025 or: ssh: Could not resolve hostname or: Name or service not known
026 VM: ssh: Could not resolve hostname VM: Name or service not known
027 now.: ssh: Could not resolve hostname now.: Name or service not known
028 try: ssh: Could not resolve hostname try: Name or service not known
029 stack: ssh: Could not resolve hostname stack: Name or service not known
030 library: ssh: Could not resolve hostname library: Name or service not known
031 ',: ssh: Could not resolve hostname ',: Name or service not known
032 might: ssh: Could not resolve hostname might: Name or service not known
033 noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
034 have: ssh: Could not resolve hostname have: Name or service not known
035 'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
036 fix: ssh: Could not resolve hostname fix: Name or service not known
037 link: ssh: Could not resolve hostname link: Name or service not known
038 warning:: ssh: Could not resolve hostname warning:: Name or service not known
039 with: ssh: Could not resolve hostname with: Name or service not known
040 that: ssh: Could not resolve hostname that: Name or service not known
041 the: ssh: Could not resolve hostname the: Name or service not known
042 VM: ssh: Could not resolve hostname VM: Name or service not known
043 loaded: ssh: Could not resolve hostname loaded: Name or service not known
044 '-z: ssh: Could not resolve hostname '-z: Name or service not known
045 the: ssh: Could not resolve hostname the: Name or service not known
046 library: ssh: Could not resolve hostname library: Name or service not known
047 to: ssh: connect to host to port 22: Connection refused
048 localhost: Error: JAVA_HOME is not set and could not be found.
049 Starting secondary namenodes [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/hadoop/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
050 It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
0510.0.0.0]
052 Java: ssh: Could not resolve hostname Java: Name or service not known
053 HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
054 Server: ssh: Could not resolve hostname Server: Name or service not known
055 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
056 VM: ssh: Could not resolve hostname VM: Name or service not known
057 -c: Unknown cipher type 'cd'
058 You: ssh: Could not resolve hostname You: Name or service not known
059 have: ssh: Could not resolve hostname have: Name or service not known
060 that: ssh: Could not resolve hostname that: Name or service not known
061 warning:: ssh: Could not resolve hostname warning:: Name or service not known
062 loaded: ssh: Could not resolve hostname loaded: Name or service not known
063 stack: ssh: Could not resolve hostname stack: Name or service not known
064 the: ssh: Could not resolve hostname the: Name or service not known
065 fix: ssh: Could not resolve hostname fix: Name or service not known
066 library: ssh: Could not resolve hostname library: Name or service not known
067 with: ssh: Could not resolve hostname with: Name or service not known
068 stack: ssh: Could not resolve hostname stack: Name or service not known
069 have: ssh: Could not resolve hostname have: Name or service not known
070 try: ssh: Could not resolve hostname try: Name or service not known
071 recommended: ssh: Could not resolve hostname recommended: Name or service not known
072 It's: ssh: Could not resolve hostname It's: Name or service not known
073 might: ssh: Could not resolve hostname might: Name or service not known
074 the: ssh: Could not resolve hostname the: Name or service not known
075 now.: ssh: Could not resolve hostname now.: Name or service not known
076 disabled: ssh: Could not resolve hostname disabled: Name or service not known
077 highly: ssh: Could not resolve hostname highly: Name or service not known
078 VM: ssh: Could not resolve hostname VM: Name or service not known
079 fix: ssh: Could not resolve hostname fix: Name or service not known
080 'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
081 whichssh: Could not resolve hostname which: Name or service not known
082 you: ssh: Could not resolve hostname you: Name or service not known
083 will: ssh: Could not resolve hostname will: Name or service not known
084 guard: ssh: Could not resolve hostname guard: Name or service not known
085 noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
086 ',: ssh: Could not resolve hostname ',: Name or service not known
087 link: ssh: Could not resolve hostname link: Name or service not known
088 or: ssh: Could not resolve hostname or: Name or service not known
089 The: ssh: Could not resolve hostname The: Name or service not known
090 library: ssh: Could not resolve hostname library: Name or service not known
091 with: ssh: Could not resolve hostname with: Name or service not known
092 it: ssh: Could not resolve hostname it: Name or service not known
093 guard.: ssh: Could not resolve hostname guard.: Name or service not known
094 '-z: ssh: Could not resolve hostname '-z: Name or service not known
095 to: ssh: connect to host to port 22: Connection refused
096 0.0.0.0: Error: JAVA_HOME is not set and could not be found.
097starting yarn daemons
098starting resourcemanager, logging to /home/hadoop/hadoop/logs/yarn-hadoop-resourcemanager-master.out
099 Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/hadoop/hadoop/lib/native/libhadoop.so.1.0.0 whichmight have disabled stack guard. The VM will try to fix the stack guard now.
100 It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
101 localhost: Error: JAVA_HOME is not set and could not be found.

 

解决办法一:

hadoop@master~: sudo gedit ~/.bash_profile    然后输入如下内容并保存:

 

1 export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
2 export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"

解决办法二:

 

打开$HADOOP_HOME/etc/hadoop/hadoop-env.sh文件,输入如下内容并保存

 

1 export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
2 export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"

解决办法三:

 

打开$HADOOP_HOME/etc/hadoop/yarn-env.sh,在任意位置输入如下内容

 

1 export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
2 export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"

最后在运行$HADOOP_HOME/sbin/start-all.sh


转:https://my.oschina.net/mskk/blog/892659



推荐阅读
  • 服务器部署中的安全策略实践与优化
    服务器部署中的安全策略实践与优化 ... [详细]
  • 本文介绍了如何利用Shell脚本高效地部署MHA(MySQL High Availability)高可用集群。通过详细的脚本编写和配置示例,展示了自动化部署过程中的关键步骤和注意事项。该方法不仅简化了集群的部署流程,还提高了系统的稳定性和可用性。 ... [详细]
  • 如何在任意浏览器中轻松安装并使用VSCode——Codeserver简易指南
    code-server 是一款强大的工具,允许用户在任何服务器上部署 VSCode,并通过浏览器进行访问和使用。这一解决方案不仅简化了开发环境的搭建过程,还提供了高度灵活的工作方式。用户只需访问 GitHub 上的官方仓库(GitHub-coder/code-server),即可获取详细的安装和配置指南,快速启动并运行 code-server。无论是个人开发者还是团队协作,code-server 都能提供高效、便捷的代码编辑体验。 ... [详细]
  • 本文探讨了 Kafka 集群的高效部署与优化策略。首先介绍了 Kafka 的下载与安装步骤,包括从官方网站获取最新版本的压缩包并进行解压。随后详细讨论了集群配置的最佳实践,涵盖节点选择、网络优化和性能调优等方面,旨在提升系统的稳定性和处理能力。此外,还提供了常见的故障排查方法和监控方案,帮助运维人员更好地管理和维护 Kafka 集群。 ... [详细]
  • 在JavaWeb项目架构中,NFS(网络文件系统)的实现与优化是关键环节。NFS允许不同主机系统通过局域网共享文件和目录,提高资源利用率和数据访问效率。本文详细探讨了NFS在JavaWeb项目中的应用,包括配置、性能优化及常见问题的解决方案,旨在为开发者提供实用的技术参考。 ... [详细]
  • 在Linux系统中避免安装MySQL的简易指南
    在Linux系统中避免安装MySQL的简易指南 ... [详细]
  • SecureCRT是一款功能强大的终端仿真软件,支持SSH1和SSH2协议,适用于在Windows环境下高效连接和管理Linux服务器。该工具不仅提供了稳定的连接性能,还具备丰富的配置选项,能够满足不同用户的需求。通过SecureCRT,用户可以轻松实现对远程Linux系统的安全访问和操作。 ... [详细]
  • 在Linux系统中,网络配置是至关重要的任务之一。本文详细解析了Firewalld和Netfilter机制,并探讨了iptables的应用。通过使用`ip addr show`命令来查看网卡IP地址(需要安装`iproute`包),当网卡未分配IP地址或处于关闭状态时,可以通过`ip link set`命令进行配置和激活。此外,文章还介绍了如何利用Firewalld和iptables实现网络流量控制和安全策略管理,为系统管理员提供了实用的操作指南。 ... [详细]
  • Amoeba 通过优化 MySQL 的读写分离功能显著提升了数据库性能。作为一款基于 MySQL 协议的代理工具,Amoeba 能够高效地处理应用程序的请求,并根据预设的规则将 SQL 请求智能地分配到不同的数据库实例,从而实现负载均衡和高可用性。该方案不仅提高了系统的并发处理能力,还有效减少了主数据库的负担,确保了数据的一致性和可靠性。 ... [详细]
  • 本文详细介绍了在Linux系统上编译安装MySQL 5.5源码的步骤。首先,通过Yum安装必要的依赖软件包,如GCC、GCC-C++等,确保编译环境的完备。接着,下载并解压MySQL 5.5的源码包,配置编译选项,进行编译和安装。最后,完成安装后,进行基本的配置和启动测试,确保MySQL服务正常运行。 ... [详细]
  • 阿里云MySQL与Oracle数据库的主从复制技术详解 ... [详细]
  • 在《Linux高性能服务器编程》一书中,第3.2节深入探讨了TCP报头的结构与功能。TCP报头是每个TCP数据段中不可或缺的部分,它不仅包含了源端口和目的端口的信息,还负责管理TCP连接的状态和控制。本节内容详尽地解析了TCP报头的各项字段及其作用,为读者提供了深入理解TCP协议的基础。 ... [详细]
  • 在对WordPress Duplicator插件0.4.4版本的安全评估中,发现其存在跨站脚本(XSS)攻击漏洞。此漏洞可能被利用进行恶意操作,建议用户及时更新至最新版本以确保系统安全。测试方法仅限于安全研究和教学目的,使用时需自行承担风险。漏洞编号:HTB23162。 ... [详细]
  • 本指南介绍了如何在ASP.NET Web应用程序中利用C#和JavaScript实现基于指纹识别的登录系统。通过集成指纹识别技术,用户无需输入传统的登录ID即可完成身份验证,从而提升用户体验和安全性。我们将详细探讨如何配置和部署这一功能,确保系统的稳定性和可靠性。 ... [详细]
  • Keepalived 提供了多种强大且灵活的后端健康检查机制,包括 HTTP_GET、SSL_GET、TCP_CHECK、SMTP_CHECK 和 MISC_CHECK 等多种检测方法。这些健康检查功能确保了高可用性环境中的服务稳定性和可靠性。通过合理配置这些检查方式,可以有效监测后端服务器的状态,及时发现并处理故障,从而提高系统的整体性能和可用性。 ... [详细]
author-avatar
一个不起眼的小人物
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有