CountDownLatch 每次当线程调用countDownLatch.countDown()方法时,会对计数器减1,减到0,countDownLatch.await()放行 public class CountDownLatchTest { public static void main(Str ...
分类:
其他好文 时间:
2021-04-20 15:06:35
阅读次数:
0
Docker Hadoop 配置常见错误及解决办法 问题1:wordcount运行卡住,hadoop 任务运行到running job就卡住了 INFO mapreduce.Job: Running job: job_.... 解决如下: 1. 修改mapred-site.xml配置,配置文件在Ha ...
分类:
其他好文 时间:
2021-04-20 14:54:20
阅读次数:
0
unittest框架测试集合 1、将相关测试用例组合在一起,称之为测试用例集合,unittest框架中,通过TestSuite类来组装所有的测试用例 集。使用测试集合可以同时执行一个py文件中的多个测试用例类。 2、加载测试集合步骤如下: (1)TestLoader(用例加载器)根据传入的参数获取相 ...
分类:
其他好文 时间:
2021-04-20 14:40:11
阅读次数:
0
unittest框架测试执行方式 1、默认执行方式:各测试方法的执行顺序是按照方法名的ASCII码排序的 2、忽略某个测试方法; 3、如何让测试用例或测试方法按照自己期望的顺序执行呢? 通过修改测试方法或用例名实现,e.g. 将test_dear和test_abc变为test_001_dear、te ...
分类:
其他好文 时间:
2021-04-20 14:39:00
阅读次数:
0
public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
分类:
其他好文 时间:
2021-04-20 14:06:09
阅读次数:
0
解决问题-》有的放矢 1.spark 报错 Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient reso ...
分类:
其他好文 时间:
2021-04-19 15:56:23
阅读次数:
0
1 1.MSSQLSERVER 2 3 "ConnectionStrings": { 4 5 "DefaultConnection": "Server=127.0.0.1;Database=HXCDataPermission_test;user id=sa;password=sasa;Multipl ...
分类:
数据库 时间:
2021-04-19 15:53:01
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:
系统相关 时间:
2021-04-19 15:38:16
阅读次数:
0
1.用Requests发送百度请求 新建一个requests_test.py文件,输入如下内容。 import requests #请求百度网页response = requests.get("https://www.baidu.com", data=None,timeout=10)print(re ...
分类:
其他好文 时间:
2021-04-19 15:38:03
阅读次数:
0