Member since
08-18-2019
56
Posts
11
Kudos Received
18
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1479 | 11-15-2023 05:38 AM | |
| 5580 | 07-12-2023 05:38 AM | |
| 1278 | 01-10-2023 01:50 AM | |
| 1756 | 12-06-2022 12:08 AM | |
| 6270 | 12-02-2022 12:55 AM |
11-09-2022
12:18 AM
1 Kudo
@Techie123 can you show the properties of the processor? Can you maybe check if the base64 string length is for real longer than the max integer value? With ExecuteStreamCommand you can resize your image. Attributes should actually be kept small, so it's not the optimal solution either. Maybe you can also define the workflow a bit, for which you need the string in an attribute - maybe you can work around that?!
... View more
11-08-2022
05:41 AM
1 Kudo
Ok, there are 2 cases. 1. You use Base64EncodeContent to encode your image and after that with ExtractText there you write the content of your flowfile to an attribute. There you have to set the property Maximum Capture Group Length to your desired length. I would prefer that you also set Maximum Buffer Size to ~10 MB that the process gets fully buffered. 2. Use Processor ExecuteStreamCommand Properties: Command Arguments: -w 0 Command Path: base64 Output Destination Attribute: attribute.base64 Max Attribute Length: your desired length If you dont work with one of those 2 cases, then please describe your flow 🙂
... View more
11-08-2022
02:48 AM
1 Kudo
Hello, the maximal value length of an attribute is 2147483647 (max Integer) Greetings
... View more
11-08-2022
02:00 AM
Hello, in your script body you dont manipulate the content. You add an Attribute to your flowfile (which works 😀) Maybe you can have a look at https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-2/ta-p/249018/page/2 But in case you don´t need to do it via ExecuteScript Processor, you could use JoltTransformJSON Processor. On conficuration you can set for the property Jolt Specification following value: [
{
"operation": "default",
"spec": {
"gender": "male"
}
}
] After that your JSON should be extended with your key-value-pair. Greetings
... View more
11-03-2022
07:40 AM
Try that: [
{
"operation": "shift",
"spec": {
"*": {
"Ean": "[&1].gtin",
"ean": "[&1].gtin",
"EAN": "[&1].gtin",
"EanCode": "[&1].gtin",
"EAN-Code": "[&1].gtin",
"EANCode": "[&1].gtin",
"Ausdr1": "[&1].gtin",
"Bestand": "[&1].qty",
"Menge": "[&1].qty",
"Stock": "[&1].qty",
"stock": "[&1].qty",
"Verfügbare Menge (Kennzahl)": "[&1].qty",
"Verfügbare Menge": "[&1].qty"
}
}
}, {
"operation": "modify-default-beta",
"spec": {
"*": {
"update_date": "2022-11-03",
"supplier_name": "demo",
"file_name": "test"
}
}
}
] Greetings
... View more
11-02-2022
02:51 AM
1 Kudo
Hello, this does not seem to be possible for me. You can use before JOLTTransformation the Processor EvaluateJsonPath to store the date to an attribute and afterwards you could do your convertation with expression language function in JOLT. Greetings
... View more
11-02-2022
12:59 AM
Hello, your CRON-Expression means that it gets exectued at 08:05am, every day starting on the 1st, every month. To execute the processor daily based on 08:05 am then you need to set 0 5 8 ? * * * Greetings
... View more
10-06-2022
07:28 AM
Hello, you are absolutely correct that the more elegant solution for this would be the JoltTransfromJSON Processor. Here you can add or replace with a specification, your modified value to the content, which is in the attribute. If you don't have any experience with JOLT yet, feel free to post your content here including your requirement where the new value should be added.
... View more
09-26-2022
07:08 AM
Hello, you can configure that just 1 Flowfile will be handled inside of a specific ProcessorGroup. There is the config option on PG which is called: Process Group FlowFile Concurrency for that you can set the value: Single FlowFile per Node After PutKudu you will destroy the FlowFile or route it out from ProcessorGroup, then the next FlowFile will be released to enter to ProcessorGroup In your case the Flow would look like: ListFile Processor -> ProcessorGroup (handels fetchFile, data Transformation and putKudu)
... View more
01-19-2021
03:00 PM
Just asking, what is the result if you change the Property 'Destination' at AttributesToJSON to flowfile-content? 😉😄😄
... View more