接Flink用户画像
创建用户画像偏爱品牌标签
创建一个商品品牌标签类
@Data
public class Brand {
private Long userId;
private...brand;
}
}
当我们新增一个商品
INSERT INTO `product` VALUES (1, 1, '大牛洗发水', '洗发水', 23.2000000000, 23, '2021-11...-01 19:13:44', '2021-11-01 19:13:51', '内蒙古包头市', '大牛', 10.0000000000, 'RF-666')
可以在HBase中查看到该商品的品牌
scan...userReduce.addSink(new UserBrandSink());
env.execute("portrait brand type");
}
}
推荐部分