In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Kettle+MongoDB data synchronization to MySQL
1. Preface:
The date type in MongoDB is stored as UTC (Coordinated Universal Time), and the isodate type is equal to GMT (Greenwich mean time) time. Beijing is in the + 8 area, so mongo shell will subtract 8 from the current GMT+0800 time and store it as GMT time.
2. Overview of extraction operation
3. Component selection:
4. Incremental processing:
It is correct to query in MongoDB as follows:
> db.xamessages.find ({created_at: {$gte:ISODate ("2016-08-16 18:33:36")}, yy_id:48}) .sort ({created_at:1}) .limit (1)
But the query in kettle mongodb will report an error.
Solution:
{"$query": {"created_at": {"$gte": {"$date": "2016-11-03T00:00:00Z"}
Kettle Wikipedia: http://wiki.pentaho.com/display/BAD/Create+a+Parameterized+Report+with+MongoDB
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.