Member since
11-17-2021
1148
Posts
258
Kudos Received
30
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 170 | 04-23-2026 02:02 PM | |
| 554 | 03-17-2026 05:26 PM | |
| 5228 | 11-05-2025 10:13 AM | |
| 875 | 10-16-2025 02:45 PM | |
| 1454 | 10-06-2025 01:01 PM |
11-19-2025
02:45 PM
@Mykola01077 Welcome to the Cloudera Community! To help you get the best possible solution, I have tagged our HBase experts @smdas @rblough @Anandh_S @pajoshi who may be able to assist you further. Please keep us updated on your post, and we hope you find a satisfactory solution to your query.
... View more
11-05-2025
10:41 AM
@Sanga What is the specific Apache NiFi version being used? Any disk space issues on Node-0? Any other exceptions in the NiFi logs? Logs shared cover the reconnection attempt. What was the reason given for the node disconnection? Thank you, Matt
... View more
10-28-2025
09:52 AM
I have a okta server and application / scope information, and I need guidance on how to implement the okta provider in the knox setup. The current documentation talks more about ldap, and not helpful on okta setup.
... View more
10-24-2025
02:04 PM
@lukaspirohanic Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.
... View more
10-24-2025
02:02 PM
@adamn4 Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @upadhyayk04 has requested? Thanks.
... View more
10-24-2025
04:45 AM
I found the solution. While the code did validate the XML to the schema, I needed to add a conditional statement to transfer to failure: import groovy.xml.XmlSlurper import groovy.xml.XmlUtil import javax.xml.transform.stream.StreamSource import javax.xml.validation.SchemaFactory import javax.xml.XMLConstants import org.xml.sax.ErrorHandler import org.xml.sax.SAXParseException def flowFile = session.get() if (!flowFile) return def fileXML = flowFile.read().getText("UTF-8") def xmlContent = new XmlSlurper().parseText(fileXML.trim().replaceFirst("^([\\W]+)<","<").replaceAll('\'','\'\'')) def schemaFile = flowFile.getAttribute('XMLSchema') def schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI) def schema = schemaFactory.newSchema(new File(schemaFile)) def validator = schema.newValidator() def validationErrors = new StringBuilder() validator.setErrorHandler(new ErrorHandler() { @Override void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Warning: ${e.message}</p>") } @Override void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Error: ${e.message}</p>") } @Override void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Fatal Error: ${e.message}</p>") } }) try { validator.validate(new StreamSource(new StringReader(XmlUtil.serialize(xmlContent)))) if (validationErrors.length() > 0) { flowFile = session.putAttribute(flowFile, "xml.validation.errors", validationErrors.toString()) session.transfer(flowFile, REL_FAILURE) } else { session.transfer(flowFile, REL_SUCCESS) } } catch (org.xml.sax.SAXParseException e) { validationErrors.append("Validation failed: ${e.message}\n") flowFile = session.putAttribute(flowFile, "xml.validation.errors", validationErrors.toString()) session.transfer(flowFile, REL_FAILURE) }
... View more
10-13-2025
10:41 AM
Hi @ishashrestha , Yes, the user needs to have permission to write to that directory. You can test to execute with another user that already have that permissions. Let me know if works. Best Regards
... View more
10-10-2025
10:42 AM
hi @Zainers , you must specify the class name according to the JDBC driver (.jar) version you are using. remember that the jar must be accessible by all hosts in the NiFi cluster.
... View more
10-09-2025
01:21 PM
1 Kudo
Hola Diana Sí, muchísimas gracias y disculpa las molestias por no haber contestado anteriormente. Saludos cordiales, Leidy
... View more