我在java中使用Hbase。我的java应用程序和HBase都在dockers上运行。下面是我从中获得HBase配置的一个类:
public class HBaseConf {
private static HBaseConf instance = new HBaseConf();
private Configuration configuration;
public Configuration getConfiguration() {
return configuration;
}
public HBaseConf() {
当我尝试使用java hbase客户端在我的aws hbase上创建一个表时,它给出了异常:
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Sun Dec 13 08:26:29 EST 2015, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=69130: row 'wujintao,,00000000000000' on table
我试图通过运行HBase类来启动HMaster,但是我得到了以下错误:
java.lang.RuntimeException: Failed suppression of fs shutdown hook: Thread[Thread-8,5,main]
at org.apache.hadoop.hbase.regionserver.ShutdownHook.suppressHdfsShutdownHook(ShutdownHook.java:196)
at org.apache.hadoop.hbase.regionserver.ShutdownHook.install(Sh
我有一个使用内部网络的Hadoop集群(ip范围为192.168.0.0/24),我希望使用java库(org.apache.hadoop.hbase.client)从使用不同网络的开发计算机(ip是外部网络203.252.x.x)连接hbase,但我无法连接hbase。
我有个问题。
我的代码错了吗?
是否可以使用Java (org.apache.hadoop.hbase.client),我应该使用节约协议吗?(我不想用这个词)
你有什么想法吗?或者评论?
谢谢
这是我连接Hbase的代码。
public class TestBase {
public stat
我是 hbase 的新手,并尝试使用以下命令在hortonworks沙箱hbase shell中创建一个表:
create 'testtable', 'colfam1'
在这样做时,我一直收到以下错误:
hbase(main):002:0> create 'testtable', 'colfam1'
ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
Creat
我刚刚通过brew install hbase安装了Hbase。编辑hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/Cellar/hbase/databases/hbase-${user.name}/hbase</value>
<description>The directory shared by region servers and into
我正在使用HDP2平台。在使用HBase.I试图在hbase中创建表。下面是我正在使用的命令。
:002:0>创建'test','cf1','cf2‘
但它给了我以下的错误
ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again later
at org.apache.hadoop.hbase.master.HMaster.getNamespaceDescriptor(HMaster.java:3328)
at org.
我已经成功地配置了Hadoop2.6.0。接下来,我试图安装Hbase 0.98.9,但启动Hbase时遇到了问题。
我收到以下错误消息:
Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to /usr/local/hbase/logs/hbase-
我创建了风暴拓扑,让hbase螺栓将元组写入hbase。但是当我运行拓扑时,它总是显示下面的错误。有人知道如何解决这个问题吗?
java.lang.IllegalArgumentException: HBase configuration not found using key 'null'
at org.apache.storm.hbase.bolt.AbstractHBaseBolt.prepare(AbstractHBaseBolt.java:60)
我已经序列化了pom.xml文件中的hbase-site.xml,如下所示:
<plugin>
我将在本地尝试hbase,当我尝试创建这样的表时,我启动了一个zk服务器:
create 'table', 'col'
错误:
ERROR [main] client.ConnectionManager$HConnectionImplementation: The node /hbase-unsecure is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. Th