Member since
04-29-2016
192
Posts
20
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1633 | 07-14-2017 05:01 PM | |
2773 | 06-28-2017 05:20 PM |
11-22-2016
05:07 PM
Hello, Wanted to find out what's the NiFi best practice for a use case I am working on; The incoming data has codes and the codes should be replaced with the corresponding code descriptions, from a manually maintained static (almost static, rarely changes) list of codes and their corresponding descriptions in a file. Is ReplaceTextWithMapping the right processor to implement this. Thanks.
... View more
Labels:
- Labels:
-
Apache NiFi
11-21-2016
09:12 PM
thanks @cduby, I see what you're saying. Let me check what I need to use for source type in my case.
... View more
11-21-2016
08:35 PM
@cduby I was following the example in the NiFi documentation; looking at the example it didn't seem there were a set of standard source types; @Timothy Spann's article didn't say anything about the source types being preset few either; do you know what source type to use if my incoming data is in HL7 format.
... View more
11-21-2016
06:14 PM
Hi guys, We have Flume setup on the Hadoop cluster and it is working. I am trying to use the Flume data as source in NiFi, I set up the required properties in NiFi's ExecuteFlumeSource processor, but it gives "unable to load source type" error. Any thoughts on what's causing the error? Thank you.
... View more
Labels:
- Labels:
-
Apache Flume
-
Apache NiFi
11-11-2016
05:20 PM
Thanks @Matt for the explanation
... View more
11-11-2016
05:14 PM
The HiveQL statements for the PutHiveQL processor are like this: INSERT INTO TABLE hive_obx_etl_test( abc_datetimeofmessage , .... ) VALUES ( '${Abc.DateTimeOfMessage:format("yyyy-MM-dd HH:mm:ss")}', ....)
I'm not using any parameters, what I'm using is a combination of UpdateAttributes and ReplaceText processors (among others) to build the exact Hive INSERT statements.
... View more
11-11-2016
05:10 PM
Thanks @Arun A K That worked, also I found ${dateNum:format("yyyy-MM-dd HH:mm:ss")} (without toDate) working as well in my case, may be because I already have the string in the yyyyMMddHHmmss format.
... View more
11-11-2016
03:58 PM
Hello, I'm trying to create Hive insert statements for NiFi's PutHiveQL processor; I've a timestamp column in the Hive table and the incoming value for this column is in string format, like 20161011075959 (no milliseconds). I tried using toDate, Format, toNumber in various combinations to convert the string to DateTime format in the Hive insert statement, but the data in Hive table shows NULL value for this column regardless; can anyone tell me what's the correct way to convert string to datetime for Hive. None of the below seem to work: ${Abc.DateTimeOfMessage:toDate("yyyyMMddHHmmss")} ${Abc.DateTimeOfMessage:format("yyyy/MM/dd HH:mm:ss")} ${Abc.DateTimeOfMessage:toDate("yyyyMMddHHmmss"):toNumber()} Thanks in advance for your time.
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache NiFi
11-08-2016
03:29 PM
Thanks, that worked. in InferAvroSchema's Avro Record Name property, I had avro-schema, which I changed to AvroSchema and that did it.
... View more
11-08-2016
02:53 PM
Hi All, I'm trying to convert data in JSON to Avro using ConvertJSONToAvro; and for the Avro schema ConvertJSONToAvro processor requires, I'm using InferAvroSchema processor; but I'm getting an error at InferAvroSchema; it throws "org.apache.avro.schemaparseexception
illegal character in: avro-schema" error. I looked at the flowfile contents and replaced all attributes names that have a .(dot) with _(underscore), but still no help. Rest of the flowfile data looks ok, so I'm not sure what's causing the exception. Any thoughts on how to resolve this would be greatly appreciated. Thanks.
... View more
Labels:
- Labels:
-
Apache NiFi