摘要:
原文:https://www.howtoing.com/install-s3cmd-manage-amazon-s3-buckets 摘要: 安装s3cmd包 s3cmd是默认的RPM库针对CentOS,RHEL和Ubuntu系统上可用,您可以简单的在系统上执行以下命令进行安装。 在CentOS /
阅读全文
posted @ 2020-08-31 12:19
lshan
阅读(4358)
推荐(0)
摘要:
kafkaProducer.py # encoding=utf-8 import json from kafka import KafkaProducer import time from backports.configparser.helpers import str def sendMsg(t
阅读全文
posted @ 2020-08-25 11:13
lshan
阅读(812)
推荐(0)
摘要:
hashMap 夺命14问 : https://mp.weixin.qq.com/s/al-wCChYjyQ_BSfET_lW7g hashmap 的小结:https://baijiahao.baidu.com/s?id=1719030639741078030&wfr=spider&for=pc 0
阅读全文
posted @ 2020-08-12 19:35
lshan
阅读(154)
推荐(0)
摘要:
原文:https://blog.csdn.net/f45056231p/article/details/88692444 System.getProperty("user.dir") 输出目录: G:\outshine\wangsoso //获取classes目录绝对路径 String path =
阅读全文
posted @ 2020-07-30 17:39
lshan
阅读(8818)
推荐(2)
摘要:
依赖: <!-- add by john com.alibaba/druid --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.19</version> </depe
阅读全文
posted @ 2020-07-30 12:37
lshan
阅读(710)
推荐(0)
posted @ 2020-07-27 16:26
lshan
阅读(0)
推荐(0)
摘要:
1.以流的方式下载. -- public HttpServletResponse download(String path, HttpServletResponse response) { try { // path是指欲下载的文件的路径。 File file = new File(path); /
阅读全文
posted @ 2020-07-22 19:12
lshan
阅读(176)
推荐(0)
摘要:
待整理: 测试代码: ''' Created on 2020年7月21日 @author: sea ''' from concurrent.futures.thread import ThreadPoolExecutor from concurrent.futures._base import as
阅读全文
posted @ 2020-07-21 18:43
lshan
阅读(1002)
推荐(0)
摘要:
方式1: 1. 明确 Spark中Job 与 Streaming中 Job 的区别1.1 Spark Core一个 RDD DAG Graph 可以生成一个或多个 Job(Action操作)一个Job可以认为就是会最终输出一个结果RDD的一条由RDD组织而成的计算Job在spark里应用里是一个被调
阅读全文
posted @ 2020-07-21 16:57
lshan
阅读(3829)
推荐(0)
摘要:
@Test public void testRegex() throws Exception { String str="das:! $%#*(*("; String regEx = "[`~!@#$%^&*()+=|{}':;'\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”
阅读全文
posted @ 2020-07-21 12:06
lshan
阅读(1974)
推荐(0)