{"id":30745352,"url":"https://github.com/coderayzhang/mapreduce_itemcf","last_synced_at":"2025-09-04T03:41:04.518Z","repository":{"id":105601059,"uuid":"133792355","full_name":"CodeRayZhang/MapReduce_ItemCF","owner":"CodeRayZhang","description":"基于MapReduce实现物品协同过滤算法（ItemCF）","archived":false,"fork":false,"pushed_at":"2018-05-17T10:53:43.000Z","size":82,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T04:53:15.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeRayZhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-17T09:41:33.000Z","updated_at":"2024-09-30T07:52:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"77933d04-d3a3-483b-a7f1-4233e7e16638","html_url":"https://github.com/CodeRayZhang/MapReduce_ItemCF","commit_stats":null,"previous_names":["coderayzhang/mapreduce_itemcf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeRayZhang/MapReduce_ItemCF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FMapReduce_ItemCF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FMapReduce_ItemCF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FMapReduce_ItemCF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FMapReduce_ItemCF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeRayZhang","download_url":"https://codeload.github.com/CodeRayZhang/MapReduce_ItemCF/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FMapReduce_ItemCF/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273548647,"owners_count":25125255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-04T03:41:03.110Z","updated_at":"2025-09-04T03:41:04.500Z","avatar_url":"https://github.com/CodeRayZhang.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于MapReduce实现物品协同过滤算法（ItemCF）\n\n## 具体参考[博客](https://blog.csdn.net/u011254180/article/details/80353543)\n\n\n#### 补充：hadoop三种执行方式\n\nMR执行环境有两种：本地测试环境，服务器环境\n\t\n本地测试环境(windows)：\n\t在windows的hadoop目录bin目录有一个winutils.exe\n  \n\t1、在windows下配置hadoop的环境变量\n\t2、拷贝debug工具(winutils.ext)到HADOOP_HOME/bin\n\t3、修改hadoop的源码 ，注意：确保项目的lib需要真实安装的jdk的lib\n\t4、MR调用的代码需要改变：\n\t\ta、src不能有服务器的hadoop配置文件\n\t\tb、在调用是使用：\n\t\t  Configuration config = new  Configuration();\n\t\t  config.set(\"fs.defaultFS\", \"hdfs://node7:8020\");\n\t\t  config.set(\"yarn.resourcemanager.hostname\", \"node7\");\n\n服务器环境：\n首先需要在src下放置服务器上的hadoop配置文件\n\n1、在本地直接调用，执行过程在服务器上（真正企业运行环境）\n\n\ta、把MR程序打包（jar），直接放到本地\n\tb、修改hadoop的源码 ，注意：确保项目的lib需要真实安装的jdk的lib\n\tc、增加一个属性：config.set(\"mapred.jar\", \"C:\\\\Users\\\\Administrator\\\\Desktop\\\\wc.jar\");\n\td、本地执行main方法，servlet调用MR。\n\t\n\t\n2、直接在服务器上，使用命令的方式调用，执行过程也在服务器上\n\n\ta、把MR程序打包（jar），传送到服务器上\n\tb、通过： hadoop jar jar路径  类的全限定名\n\t       如：hadoop jar wc.jar com.zxl.mr.wc.RunJob\n注：一些jar包可以通过 java jar xxx.jar 运行,使用hadoop则默认会把hadoop所依赖包添加\n\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderayzhang%2Fmapreduce_itemcf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderayzhang%2Fmapreduce_itemcf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderayzhang%2Fmapreduce_itemcf/lists"}