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

hayden_Han commented on AMBARI-22422:
-------------------------------------

 Thanks for the method provided by the landlord.  I also encountered the same 
problem, I chose to upgrade the hbase version to solve this problem.

DateTieredStoreEngine has an optimized for date sequence.

> Ambari Metrics does not work with DateTieredStoreEngine
> -------------------------------------------------------
>
>                 Key: AMBARI-22422
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22422
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-metrics
>    Affects Versions: 2.6.0
>         Environment: centos7
>            Reporter: Zhanwei Wang
>            Priority: Major
>         Attachments: ambari-metrics-collector-etc.tar.gz, 
> ambari-metrics-collector-log.tar.gz
>
>
> I build Ambari from source code with tag release-2.6.0 and setup a three node 
> centos7 cluster for test.
> With all default configurations, Ambari Metrics did not work and I found the 
> following from HBase logs.
> {noformat}
> 2017-11-11 15:07:56,478 INFO  
> [B.defaultRpcServer.handler=24,queue=0,port=40128] zookeeper.ZooKeeper: 
> Initiating client connection, connectString=test3:61181 sessionTimeout=120000 
> watcher=hconnection-0x23f7d8350x0, quorum=test3:61181, 
> baseZNode=/ams-hbase-unsecure
> @                                                                             
>                        @                                                    
> at 
> org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:129)
>         at 
> org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: Unable to load configured store engine 
> 'org.apache.hadoop.hbase.regionserver.DateTieredStoreEngine'
>         at 
> org.apache.hadoop.hbase.regionserver.StoreEngine.create(StoreEngine.java:128)
>         at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:271)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:4958)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:905)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:902)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         ... 3 more
> Caused by: java.lang.UnsupportedOperationException: Unable to find 
> org.apache.hadoop.hbase.regionserver.DateTieredStoreEngine
>         at 
> org.apache.hadoop.hbase.util.ReflectionUtils.instantiateWithCustomCtor(ReflectionUtils.java:36)
>         at 
> org.apache.hadoop.hbase.regionserver.StoreEngine.create(StoreEngine.java:123)
>         ... 10 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.hadoop.hbase.regionserver.DateTieredStoreEngine
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at 
> org.apache.hadoop.hbase.util.ReflectionUtils.instantiateWithCustomCtor(ReflectionUtils.java:32)
>         ... 11 more
> {noformat}
> After adding the following to ams-site.xml. Ambari Metrics work normally. And 
> no more Exception found in both collector and hbase logs.
> {noformat}
>     <property>
>       
> <name>timeline.metrics.hbase.aggregate.table.compaction.policy.class</name>
>       <value>org.apache.hadoop.hbase.regionserver.DefaultStoreEngine</value>
>     </property>
> {noformat}
> From HBASE-19223, Date Tiered Compaction is only available starting in the 
> 1.3 release.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to