自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 健康检查HealthIndicator

健康检查。

2022-09-14 17:19:15 188 1

原创 无效的目标发行版

项目打包遇到以下报错,gradle和maven都不行Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project apollo-server: Fatal error compiling: 无效的目标发行版: 1.8 ->Help ...

2019-04-16 16:16:45 1364

原创 数据操作命令

wc -l *.csvsort -u *.csv |wc -lcut -d’,’ -f3 *.csv |sort -ucut -d’,’ -f4,9 zz.csv >result.csv //取文件中的第4和第九个字段 -d是分隔符,不加的话默认为tabcut -c2- result.csv >result01.csv //截取第二个字符之后的内容cat tal.csv...

2019-04-16 16:15:46 315

原创 命令行起服务

做压测,quotas服务起六个节点,命令行起服务gradle clean bulid进入target/distributions目录1.unzip quotas-0.0.1.zip2.cd quotas-0.0.13.nohup bin/quotas &tail -f 2018-07-11.0.log查看日志jobs查看起了几个服务ps -ef |grep quotas ...

2019-03-21 17:31:08 433

原创 存储过程初试

DROP procedure IF EXISTS `proc_carAndCashScore`;DELIMITER $$create Procedure proc_carAndCashScore(in accountName varchar(255),in pathCode varchar(255),in indecies text)beginCREATE TEMPORARY T...

2019-03-21 17:29:58 125

原创 创建es单例

用es查询时起的线程多或者是请求过多,报了如下错误:java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup...

2019-03-21 17:28:12 1013 1

原创 比较文件内容

比较两个两百万数据的文件,一开始使用diff ,受行号限制,正确用法:Comm命令  如果想对两个有序的文件进行比较,可以使用comm命令。  语法:comm [- 123 ] file1 file2  说明:该命令是对两个已经排好序的文件进行比较。其中file1和file2是已排序的文件。comm读取这两个文件,然后生成三列输出:仅在file1中出现的行;仅在file2中出现的行;在两...

2019-03-21 17:27:07 685

原创 包冲突

包冲突java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.hbase.zookeeper.MetaTableLocator可以看到有几个不同版本的stopwatch 会有冲突g...

2019-03-21 17:26:14 243

原创 UnicodeDecodeErro

# -*-coding:utf-8-*-# !/usr/bin/env pythonimport jsonimport datetimeimport time, sysfrom pymongo import MongoClientdb = MongoClient('mongodb://192.168.88.xx:27017').tal# start_date = sys.argv...

2019-03-21 17:25:33 681

原创 StringUtils.join

StringUtils.join通过以下方法将set中的内容转换成string --> S0005,S0002,S0001,S0004,S0003先将set中的值取出来,在每个值后加“,”拼接,之后还要去掉最后一个逗号,比较麻烦for(String card : cards) { allCard.append(card).append(","); }String allCar...

2019-03-21 17:24:47 279

原创 sql基础

查询语句中select from where group by having order by的执行顺序 查询中用到的关键词主要包含六个,并且他们的顺序依次为select–from–where–group by–having–order byfrom子句组装来自不同数据源的数据;where子句基于指定的条件对记录行进行筛选;group by子句将数据划分为多个分组;使用聚集函数进行计算;使...

2019-03-21 17:24:00 102

转载 springboot连接多个数据库

https://blog.csdn.net/baochanghong/article/details/54134018

2019-03-21 17:23:10 10925

原创 nginx配置

报错:nginx: [emerg] "server" directive is not allowed here in /etc/nginx/nginx.conf:10将server{}块放入http{}块中就可以解决这个问题了报错:nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored报这个错...

2019-03-21 14:02:37 702

原创 python文件读写

readlines# -*-coding:utf-8-*-# !/usr/bin/env pythonimport astfout = open('/home/upsmart/1log/warcraft/mid/report01out.csv', 'w')with open ('/home/upsmart/1log/warcraft/mid/report01.csv','r') as ...

2019-03-18 20:58:27 136

原创 mysql导入导出文件

mysql导入文件向mysql 导入csv文件时报错:Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 0.000 secmysql> SHOW VARIABLES LIKE "secure_file...

2019-03-18 20:57:32 133

原创 mysql and mongo 命令

mysql and mongo 导出数据语句将符合查询条件的数据导出到account_name的表中 mysql -uupsmart -p -dtal1229 -e "select account,account_name from account;" account_name-d 在我电脑上不能执行, 改为-D 代表数据库 mysql -uupsmart -p -Dtal1...

2019-03-18 20:56:52 127

原创 logstash集成mongo

解压tar -zxvf logstash-6.2.4.tar.gz进入bin目录下bin/logstash -e ‘input { stdin { } } output { stdout {} }’输入zjl回车了看到以下就可以了{“@version” => “1”,“host” => “arreat01”,“message” => “zjl”,“@times...

2019-03-18 20:55:55 974

原创 json字符串转换

有如下字符串,要取出_source内容```{“took”: 4,“timed_out”: false,“_shards”: {“total”: 6,“successful”: 6,“failed”: 0},“hits”: {“total”: 1,“max_score”: 3.014903,“hits”: [{“_index”: “nature”,“_type”...

2019-03-18 20:55:13 260

原创 hadoop入门

hadoop jar test.jar hadooppr.WordCount test output

2019-03-18 20:53:56 110

原创 es导入大批量数据

要把2.5亿数据导入es中一开始使用BulkRequestBuilder结果每次跑到60万,es节点就挂了,我也不知道为啥。。。之后使用BulkProcessor,可以导入出现问题:1)一开始将几个字段都默认为索引,没有设置refresh_interval,number_of_replicas参数 ,refresh_interval的默认值为1s,(即每秒更新索引),number_of_r...

2019-03-18 20:53:05 15389 6

原创 elasticsearch入门

IndexElastic 会索引所有字段,经过处理后写入一个反向索引(Inverted Index)。查找数据的时候,直接查找该索引。所以,Elastic 数据管理的顶层单位就叫做 Index(索引)。它是单个数据库的同义词。每个 Index (即数据库)的名字必须是小写。下面的命令可以查看当前节点的所有 Index。获取所有索引http://192.168.88.126:9200/_...

2019-03-18 20:52:11 161

转载 dubbo配置属性

https://blog.csdn.net/zcw4237256/article/details/78369213?locationNum=7&fps=1https://www.cnblogs.com/wshcn/p/7137809.htmlpayload 请求响应包大小

2019-03-18 20:50:38 113

原创 case when then else end

需求:提取数据库中的数据1-交易金额2-交易笔数,3-交易人数4-笔单价,5-客单价,6-上午笔数占比7-午间笔数占比,8-下午笔数占比,9-晚间笔数占比,10-深夜笔数占比(注:上午 00:00-9:59;午间 10:00-12:59;下午 13:00-16:59;晚间 17:00-20:59;深夜 21:00-23:59)以上都是基于mid,posId维度的±-------...

2019-03-18 20:49:11 210

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除