Distributed ItemCF Recommendation Algorithm Based on the Combination of MapReduce and Hive

计算机科学 瓶颈 大数据 算法 推荐系统 分布式数据库 数据挖掘 数据库 分布式计算 情报检索 嵌入式系统
作者
Yakai Feng,Lei Wang
出处
期刊:Electronics [Multidisciplinary Digital Publishing Institute]
卷期号:12 (16): 3398-3398 被引量:1
标识
DOI:10.3390/electronics12163398
摘要

The ItemCF algorithm is currently the most widely used recommendation algorithm in commercial applications. In the early days of recommender systems, most recommendation algorithms were run on a single machine rather than in parallel. This approach, coupled with the rapid growth of massive user behavior data in the current big data era, has led to a bottleneck in improving the execution efficiency of recommender systems. With the vigorous development of distributed technology, distributed ItemCF algorithms have become a research hotspot. Hadoop is a very popular distributed system infrastructure. MapReduce, which provides massive data computing, and Hive, a data warehousing tool, are the two core components of Hadoop, each with its own advantages and applicable scenarios. Scholars have already utilized MapReduce and Hive for the parallelization of the ItemCF algorithm. However, these pieces of literature make use of either MapReduce or Hive alone without fully leveraging the strengths of both. As a result, it has been difficult for parallel ItemCF recommendation algorithms to feature both simple and efficient implementation and high running efficiency. To address this issue, we proposed a distributed ItemCF recommendation algorithm based on the combination of MapReduce and Hive and named it HiMRItemCF. This algorithm divided ItemCF into six steps: deduplication, obtaining the preference matrixes of all users, obtaining the co-occurrence matrixes of all items, multiplying the two matrices to generate a three-dimensional matrix, aggregating the data of the three-dimensional matrix to obtain the recommendation scores of all users for all items, and sorting the scores in descending order, with Hive being used to carry out steps 1 and 6, and MapReduce for the other four steps involving more complex calculations and operations. The Hive jobs and MapReduce jobs are linked through Hive’s external tables. After implementing the proposed algorithm using Java and running the program on three publicly available user shopping behavior datasets, we found that compared to algorithms that only use MapReduce jobs, the program implementing the proposed algorithm has fewer lines of source code, lower cyclomatic complexity and Halstead complexity, and can achieve a higher speedup ratio and parallel computing efficiency when processing all datasets. These experimental results indicate that the parallel and distributed ItemCF algorithm proposed in this paper, which combines MapReduce and Hive, has both the advantages of concise and easy-to-understand code as well as high time efficiency.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
不再方里发布了新的文献求助10
1秒前
Issue完成签到,获得积分10
1秒前
科研通AI6.1应助alkaidt采纳,获得20
2秒前
666完成签到,获得积分10
2秒前
2秒前
Lucas应助风中的绣连采纳,获得10
2秒前
正直敏完成签到,获得积分10
3秒前
dakeai233333完成签到,获得积分10
3秒前
小熊西发布了新的文献求助10
3秒前
3秒前
4秒前
科研通AI6.1应助陈科采纳,获得10
6秒前
可爱的函函应助哦哦哦采纳,获得10
7秒前
Jasper应助张贵虎采纳,获得10
9秒前
认真映真完成签到,获得积分10
9秒前
9秒前
11秒前
余乐驹完成签到,获得积分10
12秒前
12秒前
凡仔发布了新的文献求助10
15秒前
汉堡包应助甜美的笑珊采纳,获得10
15秒前
fxf发布了新的文献求助10
16秒前
小二郎应助yu采纳,获得10
17秒前
科研通AI6.2应助xjq137666采纳,获得10
18秒前
2025zmx完成签到,获得积分10
18秒前
oh完成签到,获得积分10
19秒前
科研通AI6.3应助张贵虎采纳,获得10
20秒前
论文中中中完成签到,获得积分10
21秒前
22秒前
今后应助wj采纳,获得10
23秒前
24秒前
干净天磊完成签到,获得积分10
25秒前
alkaidt发布了新的文献求助20
25秒前
25秒前
手套发布了新的文献求助10
25秒前
26秒前
Sicily发布了新的文献求助10
26秒前
fxf完成签到,获得积分10
26秒前
上官若男应助kk采纳,获得10
27秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
晶种分解过程与铝酸钠溶液混合强度关系的探讨 8888
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
Signals, Systems, and Signal Processing 610
The Sage Handbook of Digital Labour 600
The formation of Australian attitudes towards China, 1918-1941 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6417995
求助须知:如何正确求助?哪些是违规求助? 8237465
关于积分的说明 17499617
捐赠科研通 5470759
什么是DOI,文献DOI怎么找? 2890315
邀请新用户注册赠送积分活动 1867172
关于科研通互助平台的介绍 1704229