Please note that we're no longer doing releases for HBase 1.2 due to lack of interest. If this is important for you, I suggest you volunteer to be RM for this branch (4.x-HBase-1.2) and make sure to catch up the branch with the latest bug fixes from our upcoming 4.13 release (in particular PHOENIX-4335).
On Thu, Nov 9, 2017 at 8:46 AM, Josh Elser <els...@apache.org> wrote: > Phoenix-4.12.0-HBase-1.2 should be compatible with HBase 1.2.x. Similarly, > HBase 1.2.5 should be compatible with Hadoop 2.7.2. > > I'll leave you to dig into the code to understand exactly why you're > seeing the error. You should be able to find the interface/abstract-class > that you see the error about and come up with a reason as to your error. > > On 11/9/17 4:57 AM, Mallieswari Dineshbabu wrote: > >> Hi Elser, >> >> Thanks for the update. I have tried with log4j.PROPERTIES as additional >> option only. Let me remove the changes from log4j.PROPERTIES; >> >> Regarding version compatibility, I hope I am using compatible version of >> Phoenix and HBase. Please find the details below, >> Hadoop - 2.7.2 >> HBase - 1.2.5 >> Phoenix - apache-phoenix-4.12.0-HBase-1.2/ >> >> Query: >> Could you please suggest the compatible version of Phoenix for Hadoop >> 2.7.2 and HBase 1.2.5? >> >> Regarding classpath, I have ensured that required classpath are updated >> properly by running phoenix_utils.py; Except phoenix_classpath all other >> variables has proper values. >> >> Query: >> Could you please tell what else I miss here regarding classpath? >> >> Regards, >> Mallieswari D >> >> On Thu, Nov 9, 2017 at 12:00 AM, Josh Elser <els...@apache.org <mailto: >> els...@apache.org>> wrote: >> >> Please note that there is a difference between Phoenix Tracing and >> the TRACE log4j level. >> >> It appears that you're using a version of Phoenix which is >> incompatible with the version of HBase/Hadoop that you're running. >> The implementation of PhoenixMetricsSink is incompatible with the >> interface/abstract-class that HBase/Hadoop is expecting. >> >> This may be a classpath or Phoenix version issue, or you may have >> stumbled onto a bug. >> >> On 11/8/17 6:33 AM, Mallieswari Dineshbabu wrote: >> >> Hi All, >> >> I am working with HBase-Phoenix, /everything works fine/. In >> addition trying to enable Tracing >> <https://phoenix.apache.org/tracing.html >> <https://phoenix.apache.org/tracing.html>> in Phoenix with the >> following steps, >> >> 1. Copy ‘hadoop-metrics2-hbase.PROPERTIES’ from Phoenix >> package to >> HBase conf folder. >> 2. ‘hadoop-metrics2-phoenix.PROPERTIES’ file will be in >> ‘Phoenix/bin’ >> location by default. So I left it as it is. >> 3. Add the following property to phoenix configuration, >> >> <property> >> >> <name>phoenix.trace.frequency</name> >> >> <value>always</value> >> >> </property> >> >> After doing the above, HBase’s HMaster fails to start with the >> following exception; Please tell if you have any suggestion on >> this, >> >> 2017-11-08 16:46:56,118 INFO [main] regionserver.RSRpcServices: >> master/Selfuser-VirtualBox/172.16.203.117:60000 >> <http://172.16.203.117:60000> <http://172.16.203.117:60000> >> server-side HConnection retries=140 >> >> 2017-11-08 16:46:56,520 INFO [main] ipc.SimpleRpcScheduler: >> Using deadline as user call queue, count=3 >> >> 2017-11-08 16:46:56,554 INFO [main] ipc.RpcServer: >> master/Selfuser-VirtualBox/192.16.203.117:60000 >> <http://192.16.203.117:60000> <http://192.16.203.117:60000>: >> >> started 10 reader(s) listening on port=60000 >> >> *2017-11-08 16:46:56,839 INFO [main] impl.MetricsConfig: loaded >> properties from hadoop-metrics2-hbase.properties* >> >> *2017-11-08 16:46:56,926 INFO [main] trace.PhoenixMetricsSink: >> Writing tracing metrics to phoenix table* >> >> *2017-11-08 16:46:56,933 ERROR [main] master.HMasterCommandLine: >> Master exiting* >> >> *java.lang.RuntimeException: Failed construction of Master: >> class org.apache.hadoop.hbase.master.HMaster. * >> >> *at >> org.apache.hadoop.hbase.master.HMaster.constructMaster(HMast >> er.java:2512)* >> >> >> at >> org.apache.hadoop.hbase.master.HMasterCommandLine.startMaste >> r(HMasterCommandLine.java:231) >> >> at >> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMaste >> rCommandLine.java:137) >> >> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) >> >> at >> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(Server >> CommandLine.java:126) >> >> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2522) >> >> Caused by: java.lang.AbstractMethodError: >> org.apache.phoenix.trace.PhoenixMetricsSink.init(Lorg/apache >> /commons/configuration/SubsetConfiguration;)V >> >> at >> org.apache.hadoop.metrics2.impl.MetricsConfig.getPlugin(Metr >> icsConfig.java:199) >> >> at >> org.apache.hadoop.metrics2.impl.MetricsSystemImpl.newSink(Me >> tricsSystemImpl.java:530) >> >> at >> org.apache.hadoop.metrics2.impl.MetricsSdrddystemImpl.config >> ureSinks(MetricsSystemImpl.java:502) >> >> at >> org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configure( >> MetricsSystemImpl.java:481) >> >> at >> org.apache.hadoop.metrics2.impl.MetricsSystemImpl.start(Metr >> icsSystemImpl.java:189) >> >> at >> org.apache.hadoop.metrics2.impl.MetricsSystemImpl.init(Metri >> csSystemImpl.java:164) >> >> at >> org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.init(Def >> aultMetricsSystem.java:54) >> >> at >> org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.initiali >> ze(DefaultMetricsSystem.java:50) >> >> at >> org.apache.hadoop.hbase.metrics.BaseSourceImpl$DefaultMetric >> sSystemInitializer.init(BaseSourceImpl.java:49) >> >> at >> org.apache.hadoop.hbase.metrics.BaseSourceImpl.<init>(BaseSo >> urceImpl.java:72) >> >> at org.apache.hadoop.hbase.ipc.Me >> <http://org.apache.hadoop.hbase.ipc.Me>tricsHBaseServerSourc >> eImpl.<init>(MetricsHBaseServerSourceImpl.java:66) >> >> at org.apache.hadoop.hbase.ipc.Me >> <http://org.apache.hadoop.hbase.ipc.Me>tricsHBaseServerSourc >> eFactoryImpl.getSource(MetricsHBaseServerSourceFactoryImpl.java:48) >> >> at org.apache.hadoop.hbase.ipc.Me >> <http://org.apache.hadoop.hbase.ipc.Me>tricsHBaseServerSourc >> eFactoryImpl.create(MetricsHBaseServerSourceFactoryImpl.java:38) >> >> at org.apache.hadoop.hbase.ipc.Me >> <http://org.apache.hadoop.hbase.ipc.Me>tricsHBaseServer.<ini >> t>(MetricsHBaseServer.java:40) >> >> >> at org.apache.hadoop.hbase.ipc.RpcServer.<init>(RpcServer.java: >> 2040) >> >> at >> org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RS >> RpcServices.java:930) >> >> at >> org.apache.hadoop.hbase.master.MasterRpcServices.<init>(Mast >> erRpcServices.java:231) >> >> at >> org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMa >> ster.java:572) >> >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HR >> egionServer.java:531) >> >> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:4 >> 12) >> >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native >> ConstructorAccessorImpl.java:57) >> >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De >> legatingConstructorAccessorImpl.java:45) >> >> at java.lang.reflect.Constructor.newInstance(Constructor.java:5 >> 26) >> >> at >> org.apache.hadoop.hbase.master.HMaster.constructMaster(HMast >> er.java:2505) >> >> ... 5 more >> >> Note: Additionally based on this Hortonworks reference >> <https://community.hortonworks.com/articles/92371/trace-logg >> ing-for-phoenix.html >> <https://community.hortonworks.com/articles/92371/trace-logg >> ing-for-phoenix.html>>, >> did the following changes in log4j.PROPERTIES of Phoenix. Still >> facing same issue; >> >> log4j.threshold=TRACE >> >> log4j.logger.org.apache.phoenix=TRACE >> log4j.logger.org.apache.hadoop.hbase.ipc=TRACE >> >> log4j.logger.org.apache.hadoop.hbase.ipc.RegionCoprocessorRp >> cChannel=DEBUG >> >> -- Thanks and regards >> D.Mallieswari >> >> >> >> >> -- >> Thanks and regards >> D.Mallieswari >> >