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(7879)
Learning SQL by Alan Beaulieu(5446)
Weapons of Math Destruction by Cathy O'Neil(5070)
Big Data Analysis with Python by Ivan Marin(3176)
Blockchain Basics by Daniel Drescher(2907)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(2806)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(2768)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(2695)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2568)
Pandas Cookbook by Theodore Petrou(2518)
Mastering Python for Finance by Unknown(2503)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(2478)
Driving Data Quality with Data Contracts by Andrew Jones(2358)
Data Engineering with dbt by Roberto Zagni(2247)
How The Mind Works by Steven Pinker(2239)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(2150)
Building Machine Learning Systems with Python by Richert Willi Coelho Luis Pedro(2066)
Network Science with Python and NetworkX Quick Start Guide by Edward L. Platt(2041)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(1960)