Get this error when trying to connect to HBase service. I am just trying to implement increment HBase script but can not seem to figure out how to get already functioning HBase connection.
Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy83.getConnection() is applicable for argument types: () values: [] on this code
import org.apache.nifi.controller.ControllerService
flowFile = session.get()
if(!flowFile) return
def lookup = context.controllerServiceLookup
def HbaseServiceName = HBaseConnectionName.value
def HBaseServiceId = lookup.getControllerServiceIdentifiers(ControllerService).find {
cs -> lookup.getControllerServiceName(cs) == HbaseServiceName
}
def conn = lookup.getControllerService(HBaseServiceId)?.getConnection()