这里介绍两个常用的管理hadoop集群的脚本 hadoop集群启停脚本myhadoop.sh #!/bin/bash if [ $# -lt 1 ] then echo "No Args Input..." exit ; fi case $1 in "start") echo " 启动 hadoop ...
分类:
其他好文 时间:
2021-05-04 15:28:54
阅读次数:
0
以下情况会在js中出现一些莫名的bug,每个情况用分割线分开。 PS:有新发现时更新。 在条件语句中出现赋值语句(而不是应该出现的判断语句),js会认为是true: if (condition = 'A') { // 这里面的代码必定会执行 } 在逻辑判断时,使用==有时候会出现我们不想出现的结果, ...
分类:
编程语言 时间:
2021-05-04 15:13:35
阅读次数:
0
import java.io.File; import java.io.IOException; public class FileDemo2 { public static void main(String[] args) throws IOException { //1.创建文件 File fi ...
分类:
编程语言 时间:
2021-05-03 12:20:19
阅读次数:
0
昨天群里有个盗贼发了个宏 乍一看这个条件判断语句写的好像没有问题,语句的判断条件是: 1.当存在焦点,且按键模式为alt时,选取该焦点单位为目标释放致盲。 2.对鼠标指向的单位释放致盲。 3.否则释放致盲,目标应为默认的当前目标。 但当我上线去试的时候发现,玛德居然真的对当前按不出致盲,而前两种情况 ...
分类:
其他好文 时间:
2021-04-27 15:07:24
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
1,基本数据类型 定义 :4类8种: 数值型: 整数型Byte,short ,int ,long 浮点数类型:float,double 布尔类型:boolean 引用数据类型:string 获取取值范围 注意点 2,数据之间的转换 ctrl+1提示错误 分类 1.自动转换(隐式类型转换) 小-》大 ...
分类:
编程语言 时间:
2021-04-21 12:25:03
阅读次数:
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
#include<stdio.h> int main() { int a=1; int b=1; if(a==b) { printf("相等"); } else { printf("不相等"); } return 0; } ...
分类:
编程语言 时间:
2021-04-13 12:15:37
阅读次数:
0
OpenHarmony 1.1.0 LTS 版本已发布。相比OpenHarmony 1.0版本,1.1.0 LTS版本新增AI子系统、电源管理子系统、泛Sensor子系统、升级子系统,及统一AI引擎框架。 LiteOS-M 内核完成三方可移植性重构。驱动子系统完善了Wi-Fi、Sensor、Inpu ...
分类:
其他好文 时间:
2021-04-13 11:56:34
阅读次数:
0
这里有板子 最大流 view code namespace Flow { int tot=1,fi[N],ne[M],to[M],w[M],S,T,d[N],nn; inline void add(int x,int y,int c) { ne[++tot]=fi[x],fi[x]=tot,to[t ...
分类:
其他好文 时间:
2021-04-13 11:45:28
阅读次数:
0