hbase 0.90.5 未在 hadoop 1.0 的分布式模式下启动

发布于 2024-12-28 02:32:30 字数 1032 浏览 4 评论 0原文

我无法启动 HMaster :(
请帮我。第二天就出现这个错误

Exception in thread "main" java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer

Unable to start master

hadoop集群安装已经运行良好。启动 hbase 之前等待 30 秒。

我遵循了本教程 http://hbase.apache.org/book/example_config.html#d0e2432
更改所需部分中的系统配置 ulimit 和 nproc

有:1 个主站,4 个从站

这里是所有诊断信息

Java java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Debian 6.03 Linux slave1 2.6.32-5-amd64

Copy hadoop-core to hbase/lib on each machine
hduser@slave1:/usr/local/hbase$ ls lib/hadoo*
lib/hadoop-core-1.0.0.jar

Hbase: hbase-0.90.5

详细配置在这里 http:// Pastie.org/private/hnhpw2jeq7p2njegnuha (无法放在这里 - 导致 2 个链接限制)

I can't start HMaster :(
Please help me. Second day about this error

Exception in thread "main" java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer

Unable to start master

Has already worked well hadoop cluster installation. Wait 30 sec before start hbase.

I followed this tutorial http://hbase.apache.org/book/example_config.html#d0e2432
Change system configuration in required section ulimit and nproc

Have: 1 master, 4 slaves

Here all diagnostic information

Java java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Debian 6.03 Linux slave1 2.6.32-5-amd64

Copy hadoop-core to hbase/lib on each machine
hduser@slave1:/usr/local/hbase$ ls lib/hadoo*
lib/hadoop-core-1.0.0.jar

Hbase: hbase-0.90.5

DETAILED CONFIGURATION HERE http://pastie.org/private/hnhpw2jeq7p2njegnuha
(unable to put here - cause 2 links limit)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

疯到世界奔溃 2025-01-04 02:32:30

也可以将hadoop lib目录下的commons-configuration-1.6.jar复制到hbase lib目录下再试

you can also copy commons-configuration-1.6.jar in the hadoop lib directory to the hbase lib directory and try agai

晌融 2025-01-04 02:32:30

在这个错误之前一定还有更多的错误或警告。
清除 /hbase/logs 目录,然后 start_hbase.sh 并在此处提供完整日志

There must be more errors or warning before this error.
Clear the /hbase/logs dir, then start_hbase.sh and provide full log here

错爱 2025-01-04 02:32:30

创建您的主机文件如下:

127.0.0.1 localhost

For Hadoop
192.168.56.1 master

192.168.56.101 Slave

并在 hbase conf 中添加以下条目:

hbase.rootdir
hdfs://master:9000/hbase

hbase.master
主控:60000
HBase master 运行的主机和端口。

hbase.regionserver.port
60020
HBase master 运行的主机和端口。

hbase.集群.分布式
真的

hbase.tmp.dir
/home/cluster/Hadoop/hbase-0.90.4/temp

hbase.zookeeper.quorum
掌握

dfs.复制
2

hbase.zookeeper.property.clientPort
2181
来自 ZooKeeper 的配置zoo.cfg 的属性。
客户端将连接的端口。

如果您在任何地方使用 localhost,请删除它并将其替换为“master”,这是主机文件中 namenode 的名称....

您还可以做一件事

sudo gedit /etc/hostname

这将默认打开主机名文件 ubuntu 将在那里让它成为主人。并重新启动您的系统。

对于 hbase,请在 conf dir 内的“regionserver”文件中指定这些条目:

master、

slave

和 restart.everything。

make your hosts file as following:

127.0.0.1 localhost

For Hadoop
192.168.56.1 master

192.168.56.101 slave

and in hbase conf put following entries :

hbase.rootdir
hdfs://master:9000/hbase

hbase.master
master:60000
The host and port that the HBase master runs at.

hbase.regionserver.port
60020
The host and port that the HBase master runs at.

hbase.cluster.distributed
true

hbase.tmp.dir
/home/cluster/Hadoop/hbase-0.90.4/temp

hbase.zookeeper.quorum
master

dfs.replication
2

hbase.zookeeper.property.clientPort
2181
Property from ZooKeeper's config zoo.cfg.
The port at which the clients will connect.

If you are using localhost anywhere remove that and replace it with "master" which is name for namenode in your hostfile....

one morething you can do

sudo gedit /etc/hostname

this will open the hostname file bydefault ubuntu will be there so make it master. and restart your system.

For hbase specify in "regionserver" file inside conf dir put these entries

master

slave

and restart.everything.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文