Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7832

HortonworksSchemaRegistry service fails when switching from password to keytab

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0, 1.12.1
    • None
    • None

    Description

      If you create a HWX Schema Registry service using kerberos principal + password, and then stop the service and reconfigure it to use a keytab service, it still thinks it is using a password...

      2020-09-22 15:11:52,549 ERROR org.apache.nifi.processors.standard.ConvertRecord: ConvertRecord[id=b657ce40-0174-1000-0000-0000476e60a9] Failed to process StandardFlowFileRecord[uuid=478279cf-2ff2-4d19-9153-dd5748e9d319,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1600787222707-1, container=default, section=1], offset=55, length=11],offset=0,name=478279cf-2ff2-4d19-9153-dd5748e9d319,size=11]; will route to failure: org.apache.nifi.processor.exception.ProcessException: Could not retrieve schema with name 'person' from the configured Schema Registry
      org.apache.nifi.processor.exception.ProcessException: Could not retrieve schema with name 'person' from the configured Schema Registry
      	at org.apache.nifi.processors.standard.AbstractRecordProcessor$1.process(AbstractRecordProcessor.java:169)
      	at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:3006)
      	at org.apache.nifi.processors.standard.AbstractRecordProcessor.onTrigger(AbstractRecordProcessor.java:122)
      	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
      	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
      	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
      	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
      	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.nifi.schema.access.SchemaNotFoundException: Could not retrieve schema with name 'person' from the configured Schema Registry
      	at org.apache.nifi.schema.access.SchemaNamePropertyStrategy.getSchema(SchemaNamePropertyStrategy.java:90)
      	at org.apache.nifi.serialization.SchemaRegistryService.getSchema(SchemaRegistryService.java:126)
      	at org.apache.nifi.csv.CSVReader.createRecordReader(CSVReader.java:145)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:87)
      	at com.sun.proxy.$Proxy192.createRecordReader(Unknown Source)
      	at org.apache.nifi.processors.standard.AbstractRecordProcessor$1.process(AbstractRecordProcessor.java:126)
      	... 14 common frames omitted
      Caused by: java.lang.NullPointerException: null
      	at com.hortonworks.registries.schemaregistry.client.SchemaRegistryClient$Configuration.getValue(SchemaRegistryClient.java:1454)
      	at org.apache.nifi.schemaregistry.hortonworks.SchemaRegistryClientWithKerberosPassword.initializeSecurityContext(SchemaRegistryClientWithKerberosPassword.java:49)
      	at com.hortonworks.registries.schemaregistry.client.SchemaRegistryClient.<init>(SchemaRegistryClient.java:206)
      	at org.apache.nifi.schemaregistry.hortonworks.SchemaRegistryClientWithKerberosPassword.<init>(SchemaRegistryClientWithKerberosPassword.java:44)
      	at org.apache.nifi.schemaregistry.hortonworks.HortonworksSchemaRegistry.getClient(HortonworksSchemaRegistry.java:291)
      	at org.apache.nifi.schemaregistry.hortonworks.HortonworksSchemaRegistry.retrieveSchemaByName(HortonworksSchemaRegistry.java:379)
      	at org.apache.nifi.schemaregistry.hortonworks.HortonworksSchemaRegistry.retrieveSchema(HortonworksSchemaRegistry.java:497)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:87)
      	at com.sun.proxy.$Proxy190.retrieveSchema(Unknown Source)
      	at org.apache.nifi.schema.access.SchemaNamePropertyStrategy.getSchema(SchemaNamePropertyStrategy.java:81)
      	... 23 common frames omitted 

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h