[ 
https://issues.apache.org/jira/browse/HBASE-29768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044105#comment-18044105
 ] 

Dávid Paksy commented on HBASE-29768:
-------------------------------------

Hi [~guluo],

I tried to reproduce the error you mention but I was not able to.

My config was according to [https://hbase.apache.org/book.html#bc.example]:
{noformat}
diff --git a/conf/hbase-env.sh b/conf/hbase-env.sh
index 73b7b72ea2f..9e0f611c904 100644
--- a/conf/hbase-env.sh
+++ b/conf/hbase-env.sh
@@ -31,7 +31,7 @@
 # export HBASE_CLASSPATH=
 
 # The maximum amount of heap to use. Default is left to JVM default.
-# export HBASE_HEAPSIZE=1G
+export HBASE_HEAPSIZE=5G
 
 # Uncomment below if you intend to use off heap cache. For example, to 
allocate 8G of
 # offheap, set the value to "8G". See 
http://hbase.apache.org/book.html#direct.memory
diff --git a/conf/hbase-site.xml b/conf/hbase-site.xml
index 48b78ec72d0..d0a43825b27 100644
--- a/conf/hbase-site.xml
+++ b/conf/hbase-site.xml
@@ -51,4 +51,16 @@
     <name>hbase.unsafe.stream.capability.enforce</name>
     <value>false</value>
   </property>
+  <property>
+    <name>hbase.bucketcache.ioengine</name>
+    <value>offheap</value>
+  </property>
+  <property>
+    <name>hfile.block.cache.size</name>
+    <value>0.2</value>
+  </property>
+  <property>
+    <name>hbase.bucketcache.size</name>
+    <value>4196</value>
+  </property>
 </configuration>
{noformat}
I used Java 17.0.12 Temurin version:
{noformat}
java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, 
sharing){noformat}
Complied HBase  and then started HBase in standalone mode:
{noformat}
mvn clean install -DskipTests && bin/start-hbase.sh{noformat}
Opened the RegionServer web UI and in the Block Cache section clicked on L2 
tab, then clicked on `View block cache as JSON` and it was successful for me - 
no error:

!image-2025-12-10-12-59-22-533.png|width=957,height=653!

 

Can you please share on which branch did you experienced this? What is your 
Java version and what is your configuration?

> Error occurs when clicking View L2 block cache as json in UI
> ------------------------------------------------------------
>
>                 Key: HBASE-29768
>                 URL: https://issues.apache.org/jira/browse/HBASE-29768
>             Project: HBase
>          Issue Type: Bug
>          Components: BlockCache, UI
>            Reporter: guluo
>            Priority: Major
>         Attachments: image-2025-12-10-12-59-22-533.png
>
>
> When L2 BlockCache is enabled, opening the RegionServer’s L2 BlockCache UI 
> and clicking `View block cache as JSON` will cause the following errors.
> Caused by:
> org.apache.hbase.thirdparty.com.google.gson.JsonIOException: Failed making 
> field 'java.security.AccessControlContext#context' accessible; either 
> increase its visibility or write a custom TypeAdapter for its declaring type.
> See 
> https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:76)
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:388)
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:161)
> at org.apache.hbase.thirdparty.com.google.gson.Gson.getAdapter(Gson.java:628)
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:201)
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:395)
> at 
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:161)
> at org.apache.hbase.thirdparty.com.google.gson.Gson.getAdapter(Gson.java:628)
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to