07 2019 档案

摘要:mysql内存设置,首先要知道当前的设置 MySQL [(none)]> show variables like '%buffer%'; + + + | Variable_name | Value | + + + | bulk_insert_buffer_size | 8388608 | | inn 阅读全文
posted @ 2019-07-31 22:31 匠人先生 阅读(330) 评论(0) 推荐(0) 编辑
摘要:Hive或spark中执行sql字符常量包含;时会报错,比如 select instr('abc;abc', ';'); 报错 NoViableAltException(-1@[147:1: selectExpression : ( expression | tableAllColumns );]) 阅读全文
posted @ 2019-07-30 20:10 匠人先生 阅读(6255) 评论(0) 推荐(0) 编辑
摘要:openresty(nginx+lua)发http请求 利用location+proxy_pass间接实现 location ^~ /test/http { internal; proxy_pass http://test.com/path; } lua代码 local res, err = ngx 阅读全文
posted @ 2019-07-29 20:36 匠人先生 阅读(1411) 评论(0) 推荐(0) 编辑
摘要:openresty(nginx+lua)中获取不到post数据,ngx.req.get_body_data返回nil This function returns nil if the request body has not been read, the request body has been 阅读全文
posted @ 2019-07-27 00:26 匠人先生 阅读(3404) 评论(1) 推荐(0) 编辑
摘要:一 下载 confluence https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.15.6-x64.bin jira https://product-downloa 阅读全文
posted @ 2019-07-10 14:40 匠人先生 阅读(1414) 评论(0) 推荐(0) 编辑
摘要:spring项目中将sessionid对应的cookie过期时间设置很长,但是实际session还是在半个小时后失效,跟了一下代码,spring中session实现接口为 org.springframework.session.SessionRepository public interface S 阅读全文
posted @ 2019-07-10 14:29 匠人先生 阅读(3466) 评论(0) 推荐(0) 编辑
摘要:先看代码 org.springframework.web.client.RestTemplate public RestTemplate() { this.messageConverters = new ArrayList(); this.errorHandler = new DefaultResp 阅读全文
posted @ 2019-07-05 22:58 匠人先生 阅读(905) 评论(0) 推荐(0) 编辑
摘要:oozie提交workflow后执行task报错: 2019-07-04 17:19:00,559 ERROR [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: ERROR I 阅读全文
posted @ 2019-07-05 22:31 匠人先生 阅读(996) 评论(0) 推荐(0) 编辑
摘要:oozie默认使用的spark是1.6,一直没有升级,如果想用最新的2.4,需要自己手工升级 首先看当前使用的spark版本的jar # oozie admin -oozie http://$oozie_server:11000/oozie -shareliblist # oozie admin - 阅读全文
posted @ 2019-07-04 15:01 匠人先生 阅读(768) 评论(0) 推荐(0) 编辑
摘要:包括cloudera-manager、hdfs、impala、kudu、oozie以及系统日志等; #cloudera-service-monitor log /bin/rm /var/lib/cloudera-service-monitor/ts/*/partition*/* -rf /bin/r 阅读全文
posted @ 2019-07-03 16:39 匠人先生 阅读(611) 评论(0) 推荐(0) 编辑
摘要:通过location配置 location ~ \.html$ { add_header 'Cache-Control' 'no-cache'; } location ~ \.(js|css|gif|jpg|jpeg|png|bmp|swf)$) { access_log off; expires 阅读全文
posted @ 2019-07-03 15:41 匠人先生 阅读(681) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示