Repository: hbase Updated Branches: refs/heads/master 7a064f96b -> e97b43a16
HBASE-10607 [JDK8] NoSuchMethodError involving ConcurrentHashMap.keySet if running on JRE 7 Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e97b43a1 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e97b43a1 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e97b43a1 Branch: refs/heads/master Commit: e97b43a16b9aaa01fdae32c109aa3dc7f823d5ab Parents: 7a064f9 Author: stack <[email protected]> Authored: Tue Sep 30 20:58:41 2014 -0700 Committer: stack <[email protected]> Committed: Tue Sep 30 20:58:41 2014 -0700 ---------------------------------------------------------------------- src/main/docbkx/troubleshooting.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e97b43a1/src/main/docbkx/troubleshooting.xml ---------------------------------------------------------------------- diff --git a/src/main/docbkx/troubleshooting.xml b/src/main/docbkx/troubleshooting.xml index f48e26f..8195cba 100644 --- a/src/main/docbkx/troubleshooting.xml +++ b/src/main/docbkx/troubleshooting.xml @@ -1644,5 +1644,24 @@ security.provider.1=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss. <screen language="bourne">[user@host]# <userinput>echo <value> > /proc/sys/vm/min_free_kbytes</userinput></screen> </section> </section> + <section> + <title>JDK Issues</title> + <section> + <title>NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet</title> +<para> +If you see this in your logs: + <programlisting>Caused by: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView; + at org.apache.hadoop.hbase.master.ServerManager.findServerWithSameHostnamePortWithLock(ServerManager.java:393) + at org.apache.hadoop.hbase.master.ServerManager.checkAndRecordNewServer(ServerManager.java:307) + at org.apache.hadoop.hbase.master.ServerManager.regionServerStartup(ServerManager.java:244) + at org.apache.hadoop.hbase.master.MasterRpcServices.regionServerStartup(MasterRpcServices.java:304) + at org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos$RegionServerStatusService$2.callBlockingMethod(RegionServerStatusProtos.java:7910) + at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2020) + ... 4 more</programlisting> +then check if you compiled with jdk8 and tried to run it on jdk7. If so, this won't work. +Run on jdk8 or recompile with jdk7. See <link xlink:href="https://issues.apache.org/jira/browse/HBASE-10607">HBASE-10607 [JDK8] NoSuchMethodError involving ConcurrentHashMap.keySet if running on JRE 7</link>. +</para> + </section> + </section> </chapter>
