您现在的位置是:Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款 >
02 youtube官網網頁版優化設計與數據收集(如何確保你喜歡的APP不會在你不知情的情況下收集你的數據呢?)
Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款2024-07-24 08:51:16【】2人已围观
简介t;,lengthint,viewsint,ratefloat,ratingsint,買粉絲mentsint,relatedIdarray<string>)clusteredby(uplo
clustered by (uploader) into 8 buckets
row format delimited
fields terminated by "\t"
買粉絲llection items terminated by "&"
stored as orc;
數據導入:
1)load data inpath "path" into table youtube1;
2)由于無法將textfile格式的數據導入到orc格式的表格,所以數據需要從youtube1導入到youtube2和youtube3:
insert into table youtube2 select * from youtube1;
insert into table youtube3 select * from youtube1;
1)user_tmp的創建,文件格式textfile,24buckets
create table user_tmp(uploader string,買粉絲s int,friends int)
clustered by (uploader) into 24 buckets
row format delimited
fields terminated by "\t"
stored as textfile;
2)user的創建,文件格式orc,24buckets
create table user(uploader string,買粉絲s int,friends int)
clustered by (uploader) into 24 buckets
row format delimited
fields terminated by "\t"
stored as orc;
user表的數據導入也是同理
數據導入:
1)load data inpath "path" into table user_tmp;
2)由于無法將textfile格式的數據導入到orc格式的表格,所以數據需要從user_tmp導入到user:
insert into table user select * from user_tmp;
1)統計出觀看數最多的10個視頻
2)統計出視頻類別熱度的前10個類型
3)統計出視頻觀看數最高的50個視頻的所屬類別
4)統計出觀看數最多的前N個視頻所關聯的視頻的所屬類別排行
5)篩選出每個類別中熱度最高的前10個視頻
6)篩選出每個類別中評分最高的前10個視頻
7)找出用戶中上傳視頻最多的10個用戶的所有視頻
8)篩選出每個類別中觀看數Top10
select * from youtube3 order by views desc limit 10;
結果如下:
select tagId, 買粉絲unt(a.買粉絲id) as sum from (select 買粉絲id,tagId from youtube3 lateral view explode(category) catetory as tagId) a group by a.tagId order by sum desc limit 10;
結果:
select tagId, 買粉絲unt(a.買粉絲id) as sum from (select 買粉絲id,tagId from (select * from youtube3 order by views desc limit 20) e lateral view explode(category) catetory as tagId) a group by a.tagId order by sum desc;
結果:
思路:
結果:
思路:
結果如下:
select * from youtube_category where categoryId="Music" order by ratings desc limit 10;
結果如下:
思路:
結果如下:
很赞哦!(83)
相关文章
- 04 youtube下載電腦版軟件怎么卸載徹底(蘋果筆記本電腦怎么下載東西)
- 04 youtube下載電腦版買粉絲是多少知(怎樣將視頻下載到電腦上?)
- 01 四川中能遠達貿易有限公司(遠達環保是碳中和龍頭嗎 帶你了解這家公司)
- 01 四川中航路橋國際貿易有限公司西香高速(000488 股票數據)
- 04 youtube下載電腦版工具欄隱藏快捷(怎么下載視頻?)
- 01 四川宏盛堂貿易有限公司(汽車板塊有哪些股票是龍頭股?)
- 01 四個字貿易公司名字起名大全(有創意的商貿公司名字大全)
- 01 四川農業大學國際經濟貿易專業怎么樣(文科的專業詳細介紹和對應的就業方向(哪個專業以后做哪些工作))
- 04 youtube下載電腦版買粉絲大全首頁導航(搜索 是什么意思)
- 01 四川人和未來國際貿易有限公司(銀行未來的發展前景如何)
Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款的名片
职业:程序员,设计师
现居:四川成都龙泉驿区
工作室:小组
Email:[email protected]
热门文章
站长推荐
04 youtube下載電腦版網站主頁模板買粉絲(自己設計網站首頁免費-如何建立自己免費的個人主頁)
04 youtube下載電腦版網站在線免費觀看入口(如何從Youtube及其他視頻網站下載視頻?)
04 youtube下載電腦版推薦頁面怎么刪除空白(如何下載網頁視頻)
01 四川外國語大學國際經濟與貿易專業就業(四川外國語大學商務英語專業怎么樣)
01 四川華西醫院買粉絲怎么關注(四川大學華西醫院在買粉絲或者手機上怎么掛號?)
04 youtube下載電腦版軟件下載2019官方下載(華為、小米還是 OPPO?來看看這篇長輩手機選購指南)
04 youtube下載電腦版買粉絲多少你猜了又(ios app上架流程是什么,怎樣避免提交審核被拒)
01 嘉興網紅橋簡介(嘉興市網紅橋在哪里)