Member since
08-15-2016
189
Posts
63
Kudos Received
22
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
5672 | 01-02-2018 09:11 AM | |
3013 | 12-04-2017 11:37 AM | |
2152 | 10-03-2017 11:52 AM | |
21583 | 09-20-2017 09:35 PM | |
1606 | 09-12-2017 06:50 PM |
05-01-2018
09:56 PM
Great article!
... View more
03-13-2018
07:32 PM
@Matt Burgess I don't get the syntax, but it works like a charm! Thank you
... View more
03-13-2018
06:13 PM
1 Kudo
@Rahul Soni Thanks for your answer but I really don't want to hardcode all of my 50+ JSON fields
... View more
03-13-2018
01:24 PM
@Shu Maybe, one more thing: -I would preferably don't want to do any hardcoding, since the JSON has many keys I am specifically looking for a dynamic way I came across JOLT functions like =toLower / =join and was kind of hoping for =replace but that one seems missing.
... View more
03-13-2018
12:17 PM
Hi, I have a requirement for transforming JSON on Nifi which seems simple but I haven't been able to solve: Input json: {
"agent-submit-time" : -1,
"agent-end-time" : 123445,
"agent-name" : "Marie Bayer-Smith"
} Desired: {
"agent_submit_time" : -1,
"agent_end_time" : 123445,
"agent_name" : "Marie Bayer-Smith"
} -I don't want to use the ReplaceText processor since replacing "-" for "_" might impact values too -I need this to be able to infer AVRO schema on incoming JSON records (AVRO does not like the dashes at all) -since I already use a Jolt processor for another transformation in the JSON it makes sense to include it in the same processor to prevent unnecessary Nifi overhead. I think I would need the JoltTransformJSON processor as it is very powerful (but the syntax evades me) for this but open for other options too.
... View more
Labels:
- Labels:
-
Apache NiFi
01-04-2018
09:25 AM
Updated. Maybe you need a github account
... View more
01-04-2018
08:53 AM
Please have a look at the documentation. For instance here : https://github.com/apache/metron/tree/master/metron-platform/metron-parsers and here: https://github.com/apache/metron/tree/master/metron-platform/metron-enrichment https://github.com/apache/metron/tree/master/metron-platform/metron-indexing Indexing to ES is supported in all Metron versions. If you want the latest and greatest go for HCP-1.4 / Metron-0.4.1 ( https://docs.hortonworks.com/HDPDocuments/HCP1/HCP-1.4.0/index.html )
... View more
01-03-2018
10:06 AM
@Gaurav Bapat Your Nifi setup looks weird. Why do you have 2 PutKafka processors? Look for error messages on the PutKafka processor. Those will tell why the syslog event are not making it into the Kafka topic. (you created a target topic, right?) I think that at the time of writing that tutorial, the parsing topology was directly writing/indexing into ES. That is not the case anymore in newer versions of Metron. You will have to spin up the indexing topology as well for the same effect, and have indexing source from the Kafka topic that you have as a destination Kafka topic for the parsing topology. You can set that up via Ambari.
... View more
01-02-2018
12:08 PM
1 Kudo
@Gaurav Bapat On single node just spin up HDFS, Zookeeper, Kafka, Storm, ES and Kibana (and Metron). HBase is only necessary when you do lookups during the enrichment topology. Shut down all other services. Ambari will be helpful in settings the memory allocations based on what is available to the node. Sometimes you can set them even lower then the recommended settings. When the VM has less than 8 GB available you will have a real hard time to run Metron at all. Although it is fairly dated by now, this tutorial would still take you through the required steps to see events pop up in Kibana: https://cwiki.apache.org/confluence/display/METRON/2016/04/25/Metron+Tutorial+-+Fundamentals+Part+1%3A+Creating+a+New+Telemetry
... View more
01-02-2018
09:11 AM
Hi Gaurav, When you are running all on a single node it is very common that multiple services are fighting for (scarce) available memory. Services like Hbase tend to fail when this happens. You could try to be selective on what services you run concurrently. For instance if you just want to run Metron services, shut down Ambari Metrics, Oozie, Spark, Zeppelin and maybe Yarn and Hive cause you don't need it. You have to compromise when running single node. For Metron make sure HDFS, Zookeeper, HBase, Kafka, Storm, ES and Kibana are up and OK.
... View more