我使用brew安装了hbase 1.3.5,并能够启动它。现在我下载了hbase 2.2.4并更新了hbase网站。xml格式如下:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/var/hbase2</value>
</property>
<!--<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>-->
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/var/zookeeper2</value>
</property>
<property>
<name>hbase.zookeeper.dns.interface</name>
<value>lo0</value>
</property>
<property>
<name>hbase.regionserver.dns.interface</name>
<value>lo0</value>
</property>
<property>
<name>hbase.master.dns.interface</name>
<value>lo0</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>127.0.0.1:2181</value>
</property>
</configuration>
还更改下面的属性在habse-env.sh:
export JAVA_HOME export HBASE_CLASSPATH export HBASE_LOG_DIR并export HBASE_MANAGES_ZK=false
我开始hbase as./bin/start-hbase.sh但在日志中得到以下错误:
ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
java.lang.RuntimeException: Failed to invoke DNS.getDefaultHost via reflection
at org.apache.hadoop.hbase.util.DNS.getDefaultHost(DNS.java:63)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.getHostname(RSRpcServices.java:1320)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:1224)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:1204)
at org.apache.hadoop.hbase.master.MasterRpcServices.<init>(MasterRpcServices.java:368)
at org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMaster.java:720)
at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:606)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:494)
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:308)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:132)
at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:227)
at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:174)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:229)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2955)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.hbase.util.DNS.getDefaultHost(DNS.java:60)
... 20 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
at org.apache.hadoop.net.DNS.reverseDns(DNS.java:82)
at org.apache.hadoop.net.DNS.getHosts(DNS.java:253)
at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:366)
... 25 more
2020-07-30 00:31:15,360 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasternull
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:137)
at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:227)
at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:174)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:229)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2955)
Caused by: java.lang.RuntimeException: Failed to invoke DNS.getDefaultHost via reflection
at org.apache.hadoop.hbase.util.DNS.getDefaultHost(DNS.java:63)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.getHostname(RSRpcServices.java:1320)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:1224)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:1204)
at org.apache.hadoop.hbase.master.MasterRpcServices.<init>(MasterRpcServices.java:368)
at org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMaster.java:720)
at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:606)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:494)
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:308)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:132)
... 7 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.hbase.util.DNS.getDefaultHost(DNS.java:60)
... 20 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
at org.apache.hadoop.net.DNS.reverseDns(DNS.java:82)
at org.apache.hadoop.net.DNS.getHosts(DNS.java:253)
at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:366)
... 25 more
我有什么遗漏吗?
可能对有同样问题的人有所帮助。而不是下载使用brew: brew更新hbase并更改目录路径hbase.rootdir和hbase.zookeeper.property.dataDir在hbase-site.xml
问题内容: 将我的macOS升级到Sierra之后,当我使用launchctl load启动Jenkins时,我无法连接到localhost:8080。如果再次调用launchctl load,则会看到响应“服务已加载”。默认位置/ var / log / jenkins /(在jenkins- ci.plist中设置)没有日志文件。我还尝试在那里创建jenkins.log并将其添加给jenkin
第一次使用JavaFX时,我试图使用窗口对其进行测试。 我正在Mojave 10.14.5的MacOS上使用Java 8(更新211)和Eclipse。 我正在从事这个项目: 我将我认为需要的所有JavaFX jar放入构建路径中(也许我错过了一些jar?)。 我正在尝试使用以下代码使用JavaFX打开一个窗口: 代码应该没问题,因为它适用于Windows和Linux。 当我运行它时,一个java
在 Windows 上执行命令将返回以下结果: 运行诊断程序会产生以下结果:
我已经用自制软件在新的macos10.11服务器上安装了MariaDB。当我手动启动时,服务器运行得很好,但我一直无法让它在引导时自动启动(而不是登录)。我使用在/library/launchdaemons中创建launchd脚本,但它不起作用。没有运行mariadb,没有mariadb错误日志。它似乎默默地失败了。一定有相关的日志,但我不知道在哪里。 当这不起作用时,我尝试创建自己的launch
之前首次安装httpd后就成功启动了,时隔几个月想打开本地的wordpress,发现localhost无法打开,甚至连localhost/index.html也是无法打开 我觉得apache坏了,于是用homebrew重装,但始终无法顺利启动,哪位大佬看看问题出在哪里? 在mac中用homebrew装了httpd来启动apache,安装结果如图,没问题 但启动失败,如图报错编号有6和256 pli
你好,我正在尝试在不同的机器上使用SolrCloud。为此,我审阅了这些文件:这里 但我面临一个问题:无法找到或加载主类org。阿帕奇。动物园管理员。服务器法定人数。windows中的QuorumPeerMain 你能帮助如何在Windows上启动动物园管理员服务器吗? 请注意,我也尝试过在没有start word的情况下使用命令zkServer运行。