Member since
11-17-2021
1123
Posts
254
Kudos Received
29
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 450 | 11-05-2025 10:13 AM | |
| 321 | 10-16-2025 02:45 PM | |
| 648 | 10-06-2025 01:01 PM | |
| 569 | 09-24-2025 01:51 PM | |
| 473 | 08-04-2025 04:17 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-06-2025
04:05 AM
Hi @scala_ Could you please share the full error message along with the stack trace? That will help us analyze the issue more accurately and guide you better.
... 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-27-2025
05:15 PM
@fuchun As this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.
... 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-16-2025
02:45 PM
1 Kudo
Hello @SouthMood, welcome to the Cloudera Community!
I have reached out via DM with further steps, thank you!
... View more