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

Bryan Bende commented on NIFI-4868:
-----------------------------------

If you have added a Phoenix Client JAR to the controller service configuration, 
you may need to downgrade the version of the JAR to one that is compatible with 
the HBase 1.1.2 client.

> Unable to initialise  `HBase_1_1_2_ClientService `
> --------------------------------------------------
>
>                 Key: NIFI-4868
>                 URL: https://issues.apache.org/jira/browse/NIFI-4868
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration, Tools and Build
>    Affects Versions: 1.1.1, 1.3.0, 1.4.0
>            Reporter: Naveen Nain
>            Priority: Major
>              Labels: security
>
> I'm creating a HBASE connection controller service to connect to secured 
> HBASE. I have defined the kerbrose priclpal and keytab. But I'm enabling the 
> controller service, It's giving me this error:
> {quote}2018-02-12 14:16:04,791 INFO [StandardProcessScheduler Thread-4] 
> o.a.nifi.hbase.HBase_1_1_2_ClientService 
> HBase_1_1_2_ClientService[id=88ee1856-0161-1000-019f-35d668a0300e] HBase 
> Security Enabled, logging in as principal hbase/m111.server.e...@embs.com 
> with keytab /Users/naveen/Downloads/nifi-1.0.0/conf/hbase.keytab
> 2018-02-12 14:16:05,388 INFO [StandardProcessScheduler Thread-4] 
> o.a.nifi.hbase.HBase_1_1_2_ClientService 
> HBase_1_1_2_ClientService[id=88ee1856-0161-1000-019f-35d668a0300e] 
> Successfully logged in as principal hbase/************* with keytab 
> /Users/naveen/Downloads/nifi-1.0.0/conf/hbase.keytab
> 2018-02-12 14:16:05,389 INFO [StandardProcessScheduler Thread-4] 
> o.a.h.h.zookeeper.RecoverableZooKeeper Process 
> identifier=hconnection-0x6d8fedd8 connecting to ZooKeeper 
> ensemble=*********:2181,**********:2181,*******:2181
> 2018-02-12 14:16:08,073 ERROR [StandardProcessScheduler Thread-4] 
> o.a.n.c.s.StandardControllerServiceNode 
> HBase_1_1_2_ClientService[id=88ee1856-0161-1000-019f-35d668a0300e] Failed to 
> invoke @OnEnabled method due to java.io.IOException: 
> java.lang.reflect.InvocationTargetException
> 2018-02-12 14:16:08,075 ERROR [StandardProcessScheduler Thread-4] 
> o.a.n.c.s.StandardControllerServiceNode 
> java.io.IOException: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:240)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.nifi.hbase.HBase_1_1_2_ClientService$1.run(HBase_1_1_2_ClientService.java:232)
>  ~[nifi-hbase_1_1_2-client-service-1.0.0.jar:1.0.0]
>       at 
> org.apache.nifi.hbase.HBase_1_1_2_ClientService$1.run(HBase_1_1_2_ClientService.java:229)
>  ~[nifi-hbase_1_1_2-client-service-1.0.0.jar:1.0.0]
>       at java.security.AccessController.doPrivileged(Native Method) 
> ~[na:1.8.0_141]
>       at javax.security.auth.Subject.doAs(Subject.java:422) ~[na:1.8.0_141]
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1656)
>  ~[hadoop-common-2.6.2.jar:na]
>       at 
> org.apache.nifi.hbase.HBase_1_1_2_ClientService.createConnection(HBase_1_1_2_ClientService.java:229)
>  ~[nifi-hbase_1_1_2-client-service-1.0.0.jar:1.0.0]
>       at 
> org.apache.nifi.hbase.HBase_1_1_2_ClientService.onEnabled(HBase_1_1_2_ClientService.java:178)
>  ~[nifi-hbase_1_1_2-client-service-1.0.0.jar:1.0.0]
>       at sun.reflect.GeneratedMethodAccessor322.invoke(Unknown Source) 
> ~[na:na]
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[na:1.8.0_141]
>       at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_141]
>       at 
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137)
>  ~[na:na]
>       at 
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125)
>  ~[na:na]
>       at 
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70)
>  ~[na:na]
>       at 
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47)
>  ~[na:na]
>       at 
> org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:348)
>  ~[na:na]
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_141]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> [na:1.8.0_141]
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_141]
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  [na:1.8.0_141]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_141]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_141]
>       at java.lang.Thread.run(Thread.java:748) [na:1.8.0_141]
> Caused by: java.lang.reflect.InvocationTargetException: null
>       at sun.reflect.GeneratedConstructorAccessor229.newInstance(Unknown 
> Source) ~[na:na]
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  ~[na:1.8.0_141]
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
> ~[na:1.8.0_141]
>       at 
> org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       ... 24 common frames omitted
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.hbase.protobuf.ProtobufUtil
>       at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64) 
> ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:75)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:879)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       at 
> org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)
>  ~[hbase-client-1.1.2.jar:1.1.2]
>       ... 28 common frames omitted
> 2018-02-12 14:16:08,075 ERROR [StandardProcessScheduler Thread-4] 
> o.a.n.c.s.StandardControllerServiceNode Failed to invoke @OnEnabled method of 
> HBase_1_1_2_ClientService[id=88ee1856-0161-1000-019f-35d668a0300e] due to 
> java.io.IOException: java.lang.reflect.InvocationTargetException{quote}
> I have tried different versions but the error is still same. 



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

Reply via email to