You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/09/22 16:13:00 UTC

[jira] [Commented] (NIFI-7832) HortonworksSchemaRegistry service fails when switching from password to keytab

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

ASF subversion and git services commented on NIFI-7832:
-------------------------------------------------------

Commit caf79601ac54249cd61cf7b69112257764d4cb3f in nifi's branch refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=caf7960 ]

NIFI-7832 Resetting boolean that indicates password is being used when service is disabled (#4543)

Signed-off-by: Andy LoPresto <al...@apache.org>

> HortonworksSchemaRegistry service fails when switching from password to keytab
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-7832
>                 URL: https://issues.apache.org/jira/browse/NIFI-7832
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.12.0
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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...
> {code:java}
> 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 {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)