# userprofile-demo **Repository Path**: edmbill/userprofile-demo ## Basic Information - **Project Name**: userprofile-demo - **Description**: 《用户画像:平台构建与业务实践》配套代码示例 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 17 - **Created**: 2025-08-29 - **Last Updated**: 2025-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **本工程中的代码示例针对图书《用户画像:平台构建与业务实践》,可以结合该书第7章内容使用。_目前图书在各大网站有售。_** **本工程属于多模块项目,各模块功能与职责如下:** - userprofile-api: 画像平台API服务模块,可以通过HTTP接口提供服务 - userprofile-component: 画像平台功能组件模块,其中包含了各类核心功能的代码示例 - userprofile-runner: 画像平台微服务启动代码,可以启动平台对外的微服务 - userprofile-sdk: 画像平台对外服务SDK,封装平台可对外提供的服务接口 - userprofile-registry: 画像平台服务注册中心 **书中配套安装包下载路径:**
链接: https://pan.baidu.com/s/1lJQIu5uW_5EXFUkccUvw9A 提取码: 6688 **关键代码介绍:** - MySQL代码示例:com.demo.userprofile.component.service.MySQLTestService - OSS代码示例:com.demo.userprofile.component.service.OssService - Hive代码示例:com.demo.userprofile.component.service.HiveService - ClickHouse代码示例:com.demo.userprofile.component.service.ClickHouseService - DolphinScheduler API调用代码:com.demo.userprofile.component.service.DolphinSchedulerHttpApi - BitMap代码示例:com.demo.userprofile.component.utils.BitMapUtil - Mvel代码示例:com.demo.userprofile.component.utils.MvelUtils - 实时预测代码示例:com.demo.userprofile.component.service.democode.XGBoostPredict - 挖掘类标签代码示例:com.demo.userprofile.component.service.democode.SparkMlDemoCode - 读取Hive写入Redis代码示例: - com.demo.userprofile.component.service.democode.HiveToReidsBySpark - com.demo.userprofile.component.service.democode.HiveToRedisByFlink - com.demo.userprofile.component.service.democode.HiveToRedisByHDFS - Flink消费Kafka代码示例:com.demo.userprofile.component.service.democode.FlinkConsumeKafkaData **项目启动步骤** - 第一步:按照书中第7章内容配置画像平台运行环境 - 第二步:下载工程代码到本地 - 第三步:执行工程代码中的SQL脚本,创建测试用MySQL数据表,其中包含书中各功能模块介绍使用的示例表。 - 第四步:依次启动如下服务:userprofile-registry、userprofile-runner、userprofile-api。 - 第五步:通过接口 http://localhost:8080/hello 测试服务是否启动正常 **勘误与支持** 画像平台工程建设涉及到的技术面较广,其中涉及工程研发、数据研发和算法研发,每一个角色在其中都贡献了非常专业的技术知识。但是个人能力有限,在本工程中只是给出了一些零碎的核心代码,其中可能存在一些疏漏和错误,希望大家批评指正(**_书中错误及特殊解释说明.md_**)!如果对用户画像感兴趣,也欢迎随时找我沟通交流。 三人行必有我师焉,期待和大家交流学习。邮箱:zhangxinglong1990@163.com **本书概要** ![ 图书介绍/图书介绍 ]( AboutTheBook.jpg )