Using Flume by Shreedharan Hari
Author:Shreedharan, Hari
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2014-09-16T00:00:00+00:00
hdfs.roundValue
1
The timestamp will be rounded to the largest multiple of this parameter in the units specified by the hdfs.roundUnit parameter.
hdfs.roundUnit
second
The unit of the hdfs.roundValue configuration parameter (can be second, minute, or hour).
If the hdfs.round parameter is true, the HDFS Sink reads the timestamp from the event headers and rounds it down to the highest multiple of the value specified by hdfs.roundValue in the unit specified by hdfs.roundUnit. Rounded-down values are not used when the %t escape sequence is used. Let’s consider a sink with the configuration parameters shown here:
agent.sinks.hdfsSink.hdfs.path = /Data/Flume/%{topic}/%Y/%m/%d/%H/%M agent.sinks.hdfsSink.hdfs.round = true agent.sinks.hdfsSink.hdfs.roundUnit = minute agent.sinks.hdfsSink.hdfs.roundValue = 10
If an event with the timestamp equivalent of 2:35 PM on September 1, 2014 comes in, the HDFS Sink rounds the timestamp down to 2:30 PM on September 1, 2014 and writes the event out to the /Data/Flume/UsingFlume/2014/09/01/14/30 directory. In fact, every event between 2:30:00:00:000 PM and 2:39:59:59:999 will get written out to the same directory. Using a similar configuration mechanism (as shown next), the user can have buckets of two hours each:
agent.sinks.hdfsSink.hdfs.path = /Data/Flume/%{topic}/%Y/%m/%d/%H/%M agent.sinks.hdfsSink.hdfs.round = true agent.sinks.hdfsSink.hdfs.roundUnit = hour agent.sinks.hdfsSink.hdfs.roundValue = 2
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Access | Data Mining |
Data Modeling & Design | Data Processing |
Data Warehousing | MySQL |
Oracle | Other Databases |
Relational Databases | SQL |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6753)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6730)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6609)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6393)
Driving Data Quality with Data Contracts by Andrew Jones(6340)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6104)
Learning SQL by Alan Beaulieu(5997)
Weapons of Math Destruction by Cathy O'Neil(5781)
Big Data Analysis with Python by Ivan Marin(5371)
Data Engineering with dbt by Roberto Zagni(4370)
Solidity Programming Essentials by Ritesh Modi(4019)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3878)
Pandas Cookbook by Theodore Petrou(3585)
Blockchain Basics by Daniel Drescher(3298)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2909)
Feature Store for Machine Learning by Jayanth Kumar M J(2816)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2798)
Mastering Python for Finance by Unknown(2745)
