摘要:
安装前准备: 首先,要有一个HDFS集群,并正常运行; regionserver应该跟hdfs中的datanode在一起 其次,还需要一个zookeeper集群,并正常运行 然后,安装HBASE 开始安装hbase集群 1.解压安装包 tar -zvxf hbase-1.2.1-bin.tar.gz 阅读全文
摘要:
安装前准备 1.安装Mysql tar -xvf MySQL-5.6.26-1.linux_glibc2.5.x86_64.rpm-bundle.tar MySQL-server-5.6.26-1.linux_glibc2.5.x86_64.rpm MySQL-shared-5.6.26-1.lin 阅读全文
摘要:
1.上传安装包,并解压 tar -zvxf zookeeper-3.4.6.tar.gz 2.修改配置文件 cp zoo_sample.cfg zoo.cfg 修改conf/zoo.cfg #修改路径 dataDir=/root/zkdata #追加 server.1=hdp-01:2888:388 阅读全文
摘要:
/** * 三角数字之和 ...5+4+3+2+1 * @param n * @return */ public int triangle(int n){ if(n==1){ return 1; } return n+triangle(n-1); } /** * 阶乘 5! * @param n * 阅读全文
摘要:
import redis.clients.jedis.BinaryClient; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolC 阅读全文
摘要:
1.通过面向切面基于注解方式进行处理 @RequestMapping("/test") @Sensitive(name={"userName"},phoneNo={"mobile"},email={"email"}) public Rsp_1 test(){ //对返回结果进行脱敏处理 } 切面类 阅读全文
摘要:
查看当前目录下所有文件的大小 du --max-depth=1 -h 阅读全文
摘要:
今天碰到这个错,真的头痛,让人哭笑不得 springboot启动报错: Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationCon 阅读全文
摘要:
JSON技术的简介和优劣 JSON技术的简介 1.json-lib json-lib最开始的也是应用最广泛的json解析工具,json-lib 不好的地方确实是依赖于很多第三方包,包括commons-beanutils.jar,commons-collections-3.2.jar,commons- 阅读全文
摘要:
HttpMessageConverter流程简图: FastJsonHttpMessageConverter类对Json报文的转换 @Configuration public class JsonConfig { public JsonConfig(){} @Bean public HttpMess 阅读全文