Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎10-28-2016

HBase restore_snapshot failed with "hbase.coprocessor.enabled=false"

[ Edited ]

Hi. I want to restore snapshot regardless of configuration about using coprocessor in source table.

So, I disable loading coprocessor (described in https://www.cloudera.com/documentation/enterprise/5-13-x/topics/cm_mc_hbase_service.html#concept_fx5...) but still fail snapshot restoring. I think, checking 'hbase.coprocessor.enabled' configuration logic is omitted during restoring snapshot.

I use hbase1.2.0-cdh5.13.0.

 

Confirm configuration.

스크린샷 2017-12-18 오전 11.51.37.png

 

 

but, error is occured when I try to restore snapshot 'users' table. (hostname masked)

hbase-master.png

 

Regionserver log

2017-12-15 16:18:50,280 ERROR org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler: Failed open of region=users,,1513317154960.047cb611299faac38d70705d3e01bd14., starting to roll back the global memstore size.
java.lang.IllegalArgumentException: java.net.UnknownHostException: <hostname-masking>
        at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:406)
        at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:310)
        at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
        at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:735)
        at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:678)
        at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:158)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2816)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:98)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2853)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2835)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:387)
        at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)
        at org.apache.hadoop.hbase.util.CoprocessorClassLoader.init(CoprocessorClassLoader.java:176)
        at org.apache.hadoop.hbase.util.CoprocessorClassLoader.getClassLoader(CoprocessorClassLoader.java:263)
        at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.testTableCoprocessorAttrs(RegionCoprocessorHost.java:333)
        at org.apache.hadoop.hbase.regionserver.HRegion.checkClassLoading(HRegion.java:6628)
        at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6572)
        at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6534)
        at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6505)
        at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6461)
        at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6412)
        at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:362)
        at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:129)
        at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: <hostname-masking>
        ... 27 more