摘要: 如果采用scp会将符号链接转为目录,所以我们采用rsync实现远程同步启动所有slave节点的Hadoop进程的脚本[xiaoqiu@s150 bin]$ cat xcall.sh#!/usr/bin/env bashi=150params=$@for((i=150;... 阅读全文
posted @ 2017-12-22 18:03 crr121 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 如果采用scp会将符号链接转为目录,所以我们采用rsync实现远程同步启动所有slave节点的Hadoop进程的脚本[xiaoqiu@s150 bin]$ cat xcall.sh#!/usr/bin/env bashi=150params=$@for((i=150;... 阅读全文
posted @ 2017-12-22 18:03 crr121 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 编写一个脚本一次性查看所有主机的主机名在/usr/local/bin目录下新建一个脚本[root@s130:/usr/local/bin]cat xcall.sh#!/bin/shi=130#传递所有的参数params=$@for((i=130;i<=133;i=$i... 阅读全文
posted @ 2017-12-22 17:41 crr121 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 编写一个脚本一次性查看所有主机的主机名在/usr/local/bin目录下新建一个脚本[root@s130:/usr/local/bin]cat xcall.sh#!/bin/shi=130#传递所有的参数params=$@for((i=130;i<=133;i=$i... 阅读全文
posted @ 2017-12-22 17:41 crr121 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 矩阵转列表from numpy import *a = mat([[1,34,3],[2,3,41],[2,34,41],[2,53,41]])print(a.flatten())print(a.flatten().A)#矩阵转为列表print(a.flatten(... 阅读全文
posted @ 2017-12-22 11:42 crr121 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 矩阵转列表from numpy import *a = mat([[1,34,3],[2,3,41],[2,34,41],[2,53,41]])print(a.flatten())print(a.flatten().A)#矩阵转为列表print(a.flatten(... 阅读全文
posted @ 2017-12-22 11:42 crr121 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 将三维矩阵转为二维矩阵矩阵降维-将矩阵按照某列进行排序from numpy import *a = mat([[1,34,3],[2,3,41],[2,34,41],[2,53,41]])print(a)srtInd=a[:,1].argsort(0)print(s... 阅读全文
posted @ 2017-12-22 11:23 crr121 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 将三维矩阵转为二维矩阵矩阵降维-将矩阵按照某列进行排序from numpy import *a = mat([[1,34,3],[2,3,41],[2,34,41],[2,53,41]])print(a)srtInd=a[:,1].argsort(0)print(s... 阅读全文
posted @ 2017-12-22 11:23 crr121 阅读(252) 评论(0) 推荐(0) 编辑