Fetch the repository succeeded.
This action will force synchronization from Sorin/springboot_hbase_kafka, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
1、配置文件说明:
0)、application.yml:系统默认读取配置文件入口
1)、application-dev.yml:开发环境配置文件
2)、application-test.yml:测试环境配置文件
3)、application-pro.yml:生成环境配置文件
2、本地启动:
0)、修改application-dev.yml中的配置项
1)、运行NoticeStartApp.java
3、部署与发布:
0)、部署: cd 项目根目录(和pom.xml同级)
mvn clean package -Dmaven.test.skip=true
1)、启动: java -jar muheda-notice-1.0-SNAPSHOT.jar --spring.profiles.active=test
*: --spring.profiles.active=test为指定加载配置文件、
后台启动运行:nohup java -jar muheda-notice-1.0-SNAPSHOT.jar --spring.profiles.active=test &
4、Hbase地址配置需先设置hosts映射:
hbase:
master: hadoop-11:60000
zookeeper:
quorum: hadoop-11,hadoop-12,hadoop-13,hadoop-14
5、HBaseDaoUtil中封装了Hbase基础操作,在dao中注入使用即可
6、通过实体Bean关联Hbase操作,需要在实体Bean类上加@HbaseTable(tableName="")注解,字段名上加@HbaseColumn(family="sorin2", qualifier="conn")注解
7、Listener中@KafkaListener(topics = {"notice"})注解的方法为一个接口数据来源
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。