Sivaprasanna, Yes I have that property set, the Unit test is failing IMHO it should not.
Jorge Machado Best Regards > On 4 Jun 2018, at 12:09, Sivaprasanna <[email protected]> wrote: > > Jorge, > > Both 'Kerberos Principal' abd 'Kerberos Keytab' support NiFi expression > language so ${principal} and ${keytab} is valid here. Can you check if the > property "nifi.kerberos.krb5.file" is set in nifi.properties file? Looks like > this has to be set according to the description of those properties. > > - > Sivaprasanna > > On Mon, Jun 4, 2018 at 1:27 PM, Jorge Machado <[email protected] > <mailto:[email protected]>> wrote: > Hi Guys, > > I’m facing the issue that I cannot start the DeleteHDFS with the error: > "Kerberos Principal must be provided when using a secure configuration” > > > I’m able to reproduce this with this test: > @Test > public void testKerberosOptionsWithCredentialServices() throws Exception { > SimpleHadoopProcessor processor = new > SimpleHadoopProcessor(kerberosProperties); > TestRunner runner = TestRunners.newTestRunner(processor); > > // initialize the runner with EL for the kerberos properties > > runner.setProperty(AbstractHadoopProcessor.HADOOP_CONFIGURATION_RESOURCES, > "${variableHadoopConfigResources}"); > runner.setProperty(kerberosProperties.getKerberosPrincipal(), > "${variablePrincipal}"); > runner.setProperty(kerberosProperties.getKerberosKeytab(), > "${variableKeytab}"); > > // add variables for all the kerberos properties except for the keytab > runner.setVariable("variableHadoopConfigResources", > "src/test/resources/core-site-security.xml"); > runner.assertValid(); > } > In our case the ${principal} and ${keytab} is coming as a attribute on the > incomming the Flowfile, the problem is that this validation of the attribute > is happening before. > Should this work like this? In all other places if we are using a variable it > can be evaluate at run time... > > Jorge Machado > > > > > >
