Member since
07-19-2018
613
Posts
100
Kudos Received
117
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3867 | 01-11-2021 05:54 AM | |
2699 | 01-11-2021 05:52 AM | |
7454 | 01-08-2021 05:23 AM | |
6787 | 01-04-2021 04:08 AM | |
30815 | 12-18-2020 05:42 AM |
03-05-2024
12:14 PM
@lv_antel Welcome to the Cloudera Community! 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
08-29-2023
08:39 AM
Can you help me with a similar issue? My code: import json import collections import java.io import ast from org.apache.commons.io import IOUtils from java.nio.charset import StandardCharsets from org.apache.nifi.processor.io import StreamCallback class ModJSON(StreamCallback) : def __init__(self): pass def process(self, inputStream, outputStream): text = IOUtils.toString(inputStream, StandardCharsets.UTF_8) obj = ast.literal_eval(text) mail = obj['mail'] outputStream.write(bytearray(json.dumps(obj['mail'], indent=4).encode('utf-8'))) outputStream.write(bytearray(json.dumps(obj['id'], indent=4).encode('utf-8'))) flowFile = session.get() if (flowFile != None): flowFile = session.write(flowFile, ModJSON()) flowFile = session.putAttribute(flowFile, "filename", flowFile.getAttribute('filename').split('.')[0]+'_translated.json') flowFile = session.putAttribute(flowFile, "mail", mail) session.transfer(flowFile, REL_SUCCESS) session.commit() I want to get "mail" value and create a new attribute for it. However, mail variable is not accessible when I insert it into the putattribute command. Any feedback?
... View more
07-26-2023
01:58 PM
Hey @bjornmy I am looking to resolve the same kind of issue do you have the groovy-script to share? Thanks, Vasu
... View more
06-19-2023
09:21 AM
Hi, I am trying to implemented this blog and so far have successfully completed till version controlling. However, I get an error when I am trying to import the flow in the PG. The prompted error says that FlowID does not exists in Bucket ID whereas I can see that the specific flow is present in the nifi registry in the UI. Can anyone help explain why this is happening? Additional info: Nifi version: 1.20.0 Nifi registry: 1.22.0 (securely connected to Nifi and buckets are given access to the CNs) Log: Error retrieving flow snapshot: An unexpected error has occurred. Please check the logs for additional details. at org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117) Caused by: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error o.a.n.r.web.mapper.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException. Returning Internal Server Error response.
... View more
06-07-2023
01:58 AM
This worked. Thanks.
... View more
05-17-2023
01:12 AM
It's alright, thank you for replying. Do you remember if the changes were in nifi config file or nifi-registry config file ?
... View more
05-11-2023
01:13 PM
I have a similar issue. I wonder if you have found an answer already. Was that community helpful?
... View more
10-26-2022
06:37 PM
Hello~ Now I am in the same problem as you. Have you ever solved it? I've been struggling with this problem for several days.
... View more
09-08-2022
10:58 PM
Hello, If you not modified anything but still you can't access HDFS from hue which was working earlier then you should try this solution i.e Restart httpfs service
... View more