Naveen Nain created NIFI-4868:
---------------------------------

             Summary: 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.4.0, 1.3.0, 1.1.1
            Reporter: Naveen Nain


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: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 [StandardPr{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