Bryan Bende created NIFI-4168:
---------------------------------

             Summary: Invalid HBase config file throws runtime exception
                 Key: NIFI-4168
                 URL: https://issues.apache.org/jira/browse/NIFI-4168
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.3.0, 1.1.1, 1.2.0, 1.0.0
            Reporter: Bryan Bende
            Priority: Minor


If you enter a file that is not a real XML site file into the 
HBase_1_1_2_ClientService as a config file, it throws the following exception 
and the service is invalid:

{code}
2017-07-07 16:56:04,817 ERROR [NiFi Web Server-17] 
o.a.n.c.AbstractConfiguredComponent Failed to perform validation of 
HBase_1_1_2_ClientService[id=1ed61bd5-015d-1000-b727-9257831db2c2]
java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: 
file:///somefile.txt; lineNumber: 1; columnNumber: 1; Content is not allowed in 
prolog.
        at 
org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2645)
        at 
org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502)
        at 
org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:981)
        at 
org.apache.nifi.hadoop.SecurityUtil.isSecurityEnabled(SecurityUtil.java:86)
        at 
org.apache.nifi.hadoop.KerberosProperties.validatePrincipalAndKeytab(KerberosProperties.java:121)
        at 
org.apache.nifi.hbase.HBase_1_1_2_ClientService.customValidate(HBase_1_1_2_ClientService.java:173)
        at 
org.apache.nifi.components.AbstractConfigurableComponent.validate(AbstractConfigurableComponent.java:126)
{code}

If you exit the controller services screen and come back in, the service is now 
valid.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to