Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to plan the Hive flow meter

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to plan the Hive flow table, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Create EXTERNAL table IF NOT EXISTS ext_clicklog (

CookieId string COMMENT 'cookieId Nginx server assignment, for example: 05dvOVC6Il6INhYABV6LAGUBV6

Cate1 string COMMENT 'first-level performance category, example: real estate'

Cate2 string COMMENT 'level 2 performance category, example: xx'

Cate3 string COMMENT 'level 3 performance classification, example: xx'

Area1 string COMMENT 'first-level performance region: Beijing (City)'

Area2 string COMMENT 'second-level performance region: region'

Area3 string COMMENT 'third-level performance region: business area'

PageType string COMMENT 'level 1 page type list detail ect'

Page string COMMENT 'secondary page type'

Url string COMMENT 'url address of the page for this browsing activity'

TrackTime string COMMENT 'user visit time: 2014-05-25 23 0315 36'

UserIp string COMMENT 'user visits the IP address this time; 175.153.41.6'

LoginUid string COMMENT 'login user ID'

Referer string COMMENT 'referer URL: the source URL' of the current page

Fromtag string COMMENT 'fromtag burial site name'

TrackURLMap map COMMENT 'variable length fields, some custom fields:

Platform string COMMENT'is the log of which platform: pc/m/app'

UrlParamMap map COMMENT 'url parameter map'

) PARTITIONED BY (statDate STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY'\ 001' COLLECTION ITEMS TERMINATED BY'\ 002' MAP KEYS TERMINATED BY'\ 003' LINES TERMINATED BY'\ n 'STORED AS TEXTFILE LOCATION' / DataWarehouse/ods/ClickLogTable'

The above is all the contents of the article "how to Plan the Hive flow Table". Thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report