一 linux服务器性能查看1.1 cpu性能查看1、查看物理cpu个数:cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l2、查看每个物理cpu中的core个数:cat /proc/cpuinfo |grep "cpu cores"|wc - ...
分类:
系统相关 时间:
2018-10-09 11:41:37
阅读次数:
264
spark-submit --class WordCount \> --master yarn-cluster \> --num-executors 10 \> --executor-memory 6G \> --executor-cores 4 \> --driver-memory 1G \> / ...
分类:
其他好文 时间:
2018-10-09 00:50:17
阅读次数:
226
spark 创建分区 val scores = Array(("Fred", 88), ("Fred", 95), ("Fred", 91), ("Wilma", 93), ("Wilma", 95), ("Wilma", 98)) val input = sc.parallelize(scores ...
分类:
其他好文 时间:
2018-09-29 13:02:21
阅读次数:
1741
vessel n.船 emerge vi.出现,形成 outline vt.概述 deliberate adj.小心翼翼的 comparably adv.比得上的,与...相匹配的 objective n.目标 scores of 大量的 demand vt.需要 obsession with 痴迷 ...
分类:
其他好文 时间:
2018-09-05 15:01:34
阅读次数:
130
String newFile = StringConstant.LINUX_JOB_DIRSUFFIX + emptyFileStr; Path newpath = Paths.get(newFile);//新的空的文件 就是打算写入到jar文件里的 File emptyFile = newpath... ...
分类:
编程语言 时间:
2018-09-05 00:59:26
阅读次数:
673
https://www.cnblogs.com/mingaixin/p/5085708.html ...
分类:
其他好文 时间:
2018-09-04 10:36:20
阅读次数:
181
double[] scores = new double[3];//定义3个元素的空数组 double sum = 0; for(int i = 0; i < scores.Length; i++) { Console.Write("请输入第" + (i + 1) +... ...
分类:
其他好文 时间:
2018-08-31 14:08:48
阅读次数:
188
0、基础命令 1、检查硬件信息 2、进程管理 3、压缩&解压 先找到指定路径下 4、彻底删除某文件 5、依赖包相关 6、复制 7、端口连通测试 ...
分类:
系统相关 时间:
2018-08-23 22:12:09
阅读次数:
225
redis yum安装redis 1.yum安装 2.检测redis是否工作 源码安装redis,编译安装 大家用过yum,是相当省事好用吧,为什么还要学习源码安装? 有人说编译安装性能好?错 编译安装的优势是: 编译安装时可以指定扩展的module(模块),php、apache、nginx都是一样 ...
分类:
其他好文 时间:
2018-08-13 13:54:59
阅读次数:
184
# -*- coding: utf-8 -*- import numpy as np def IOU1(A,B): #左上右下坐标(x1,y1,x2,y2) w=max(0,min(A[2],B[2])-max(A[0],B[0])) h=max(0,min(A[3],B[3])-max(A[1],... ...
分类:
其他好文 时间:
2018-07-30 19:05:26
阅读次数:
191