1.本地环境hbase1.2.1错用了hadoop-core.jar,应该使用hadoop2版本的jar
2.本地环境没有配置region Servers的host
要现在hbase安装主机上的ect\hosts文件里加上主机ip和主机名,如下第一行所示。192.168.187.209 ubuntu001
192.168.187.209 ubuntu001
#192.168.187.209 localhost
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.187.209 192-168-187-209
因为我用windows系统调hbasePAI,在C\Windows\System32\drivers\etc\hosts 下添加用样的内容
整体如下
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# 192.168.10.106 Administrator
127.0.0.1 syf
192.168.10.106 Administrator
192.168.187.209 ubuntu001