hadoop安装报错

安装hadoop HA的时候,格式化ZK,执行hdfs zkfc –formatZK命令 报错如下:

16/09/08 20:41:53 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=>hddata1:2181,hddata2:2181,hddata3:2181 sessionTimeout=5000 watcher[email protected]5dd308e3

16/09/08 20:41:53 FATAL tools.DFSZKFailoverController: Got a fatal error, exiting now

java.net.UnknownHostException: >hddata1

at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)

at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295)

at java.net.InetAddress.getAllByName0(InetAddress.java:1248)

at java.net.InetAddress.getAllByName(InetAddress.java:1164)

at java.net.InetAddress.getAllByName(InetAddress.java:1098)

at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)

at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)

at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380)

at org.apache.hadoop.ha.ActiveStandbyElector.getNewZooKeeper(ActiveStandbyElector.java:631)

at org.apache.hadoop.ha.ActiveStandbyElector.createConnection(ActiveStandbyElector.java:775)

at org.apache.hadoop.ha.ActiveStandbyElector.<init>(ActiveStandbyElector.java:229)

at org.apache.hadoop.ha.ZKFailoverController.initZK(ZKFailoverController.java:350)

at org.apache.hadoop.ha.ZKFailoverController.doRun(ZKFailoverController.java:191)

at org.apache.hadoop.ha.ZKFailoverController.access$000(ZKFailoverController.java:61)

at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:172)

at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:168)

at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:415)

at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:168)

at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:181)

谁碰到过这个问题,麻烦帮忙解决下

时间: 2024-11-01 10:05:04

hadoop安装报错的相关文章

hadoop安装报错记录

启动datanode失败 启动命令: /data/hadoop/sbin/hadoop-daemon.sh start datanode 查看日志有条FATAL日志: vi /data/hadoop/logs/hadoop-root-datanode-slave2.log ...... 2016-01-06 20:27:17,702 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for B

MSSQL 2012安装报错之0x858C001B

之前安装 Microsoft Sql Server 2012 R2 的时候总是报这样的错误: SQL Server Setup has encountered the following error: The SQL Server license agreement cannot be located for the selected edition, enterprise. This could be a result of corrupted media or the edition bei

用java运行Hadoop程序报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.

用java运行Hadoop例程报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.所写代码如下: package com.pcitc.hadoop; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.h

mysql安装报错

如果编译时出现了以下错误:checking for tgetent in -ltermcap- nochecking for termcap functions library- configure: error: No curses/termcap library found说明 curses/termcap 库没有安装去下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gztar zx

rlwrap安装报错You need the GNU readline 解决方法

首先大家肯定知道rlwrap是干什么的? 在linux以及unix中,sqlplus的上下左右.回退无法使用,会出现乱码情况.而rlwrap这个软件就是用来解决这个的. 这个错误曾经困扰我很久很久!下载readline 安装,安装好readline 还是无法运行rlwrap的安装程序 在网上搜寻很久才找到一个靠谱的解决方法 原来rlwrap这个程序的安装,需要依赖两个包, 一个是readline,这个readline在RHEL中已经集成了.不需要去专门下载 另外一个包 libtermcap-de

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt.

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt. 转载2016-04-25 12:40:44 标签:linuxitphp 解决方法: 1.为系统安装perl-Geo-IP,默认yum源中没有这个包,特意安装epel第三方yum源[[email protected] ~] rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rp

jira安装报错 Unknown system variable &#39;default_storage_engine&#39;

公司要使用BUG管理系统,所以对比了一下,最后决定安装jira. 安装后要在网页端,配置数据库,本地数据库是5.1的版本,一直有报错Unknown system variable 'default_storage_engine',在往上查询无果,my.ini设置也没用.把数据库远程连接到一个linux下的5.6版本就正常,最后决定安装5.6版本数据库. 问题解决.有些也是没办法的事情. jira安装报错 Unknown system variable 'default_storage_engin

DirectX 安装报错: 不能信任一个安装所需的压缩文件,请检查加密服务是否启用并且cabinet文件证书是否有效

DirectX 安装报错 不能信任一个安装所需的压缩文件,请检查加密服务是否启用并且cabinet文件证书是否有效 是直播软件open broadcaster software,这个软件安装的时候提示"your system is missing DirectX components that Open Broadcaster Software requires.Would you like to download them?"然后点是,就跳转微软的官方下载页面了. 下载dxwebse

Oracle 安装报错 [INS-06101] IP address of localhost could not be determined 解决方法

出现这种错误是因为主机名和/etc/hosts 文件不一致,只需要把主机名和其IP 写入/etc/hosts 文件,就ok了. 注意名字不能有下划线 修改network 文件之外,再使用hostname 命令指定一下主机名,就不用重启OS了. 1.     修改/etc/sysconfig/network 文件 [[email protected]~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=s