Skip to main content
Gtec
Gold ⭐️
May 5, 2022
Solved

Remove Duplicate Record values without cache services

Hi All, Good Morning!

 

Please help me in removing Duplicate Records without using cache services (Apache NIFI)Error LogError Log

Gtec
GtecAnswer
Gold ⭐️
May 9, 2022

No, Not yet and I am waiting from the client end for confirmation since my clients are abroad and they have access for the same, Would check and let you know the results by tomorrow 10th May 2022. Thanks for the help SAMSAL.

11 replies

SAMSAL
Platinum ⭐️⭐️⭐️
May 5, 2022

Not sure if this is the best way but try using QueryRecord and create one dynamic property to funnel the data into where your query will look like this:

Select distinct * from FLOWFILE

Translate
Gtec
GtecAuthor
Gold ⭐️
May 6, 2022

Thanks for the valuable information and I got the results , but the Date and Error Message are not sorted/ordered properly.

Do We have any particular Function on Sql Query or any processor to sort in Order for the same

Translate
SAMSAL
Platinum ⭐️⭐️⭐️
May 6, 2022

have you tried Selected distinct * order by Date, ERROR_MSG

Translate
Gtec
GtecAuthorAnswer
Gold ⭐️
May 9, 2022

No, Not yet and I am waiting from the client end for confirmation since my clients are abroad and they have access for the same, Would check and let you know the results by tomorrow 10th May 2022. Thanks for the help SAMSAL.

Translate
Gtec
GtecAuthor
Gold ⭐️
May 10, 2022

Thanks for the help SAMSAL and my next task is to insert these values into the table. Please let me know which processor would help me. 

Translate
SAMSAL
Platinum ⭐️⭐️⭐️
May 10, 2022

there are a lot of processors that can help you with that for example : PUTSQL, PutDatabaseRecord, ExecuteSQL

Translate
Gtec
GtecAuthor
Gold ⭐️
May 11, 2022

Sure SAMSAL, Once the table is created I would test the same with above mentioned. Which is HiveDB Table.

Translate
Gtec
GtecAuthor
Gold ⭐️
May 11, 2022

The table has been created, I have to perform Insert Statement on PutHiveStreaming Processor, Insert those Extracted Error Log Data. I am viewing results on Google and If I need any Help will get back here for sure, Thanks

Translate
Gtec
GtecAuthor
Gold ⭐️
May 12, 2022

Please help me in Inserting these data into Hive DB. (Process flow). Hive doesn't accept CSV and it has to convert to Avro. I am stuck on how to Put Insert Statement and direct to PutHiveStreaming.

Translate
SAMSAL
Platinum ⭐️⭐️⭐️
May 12, 2022

I never worked with Hive DB, but if it only takes avro format and you have csv you can use processor ConvertRecrod to convert a record from one format to another. In this processor you create CSV Reader service and the writer is Avro

Translate