[root@vboxnode3ccccccttttttchenyang ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory ‘/root/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again:
[root@vboxnode3ccccccttttttchenyang ~]# ls anaconda-ks.cfg before-calico.yaml bigdata calico.yaml logs recommended.yaml [root@vboxnode3ccccccttttttchenyang ~]# cd /root [root@vboxnode3ccccccttttttchenyang ~]# ls anaconda-ks.cfg before-calico.yaml bigdata calico.yaml logs recommended.yaml
[root@vboxnode3ccccccttttttchenyang ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:iDJChgXvhOSh9xBSNORW8fW8UeeHgTxwEYpbu3MPGUc root@vboxnode3ccccccttttttchenyang The key’s randomart image is: ±–[RSA 2048]----+ |oBB o. . .o=+o | |=*.+ . . + ++o o | |++B . . * .E .| |o= o . . o + . . | |. + o . S o . . | | . o . + | | o + | | o o | | . | ±—[SHA256]-----+ [root@vboxnode3ccccccttttttchenyang ~]# cd /root/.ssh [root@vboxnode3ccccccttttttchenyang .ssh]# ls id_rsa id_rsa.pub
二:机器102设置密钥对免密登录
[root@vboxnode3ccccccttttttchenyang.ssh]# ssh-copy-id chenyang-mine-vbox02/usr/bin/ssh-copy-id: INFO: Source ofkey(s)to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host 'chenyang-mine-vbox02 (192.168.56.102)' can't be established.
ECDSA key fingerprint is SHA256:SGpvRTxwvfuiJB6N+Gl0IRJZ0Bh4ggdISEqytykpPN8.
ECDSA key fingerprint is MD5:2e:91:01:39:bd:6f:b9:a8:3b:3d:9c:07:3c:81:bc:c7.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@chenyang-mine-vbox02's password:
Permission denied, please try again.
root@chenyang-mine-vbox02's password:
Permission denied, please try again.
root@chenyang-mine-vbox02's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[root@vboxnode3ccccccttttttchenyang.ssh]# ssh chenyang-mine-vbox02
root@chenyang-mine-vbox02's password:
Last failed login: Sun Aug 2722:58:22 CST 2023from vboxnode3ccccccttttttchenyang on ssh:notty
There were 3 failed login attempts since the last successful login.Last login: Sun Aug 2722:52:262023from192.168.56.1-bash: “export: 未找到命令
-bash: /etc/kubernetes/admin.conf: 没有那个文件或目录
-bash: /etc/kubernetes/kubelet.conf: 权限不够
-bash: “export: 未找到命令
[root@chenyang-mine-vbox02 ~]# ssh vboxnode3ccccccttttttchenyang
The authenticity of host 'vboxnode3ccccccttttttchenyang (192.168.56.103)' can't be established.
ECDSA key fingerprint is SHA256:SGpvRTxwvfuiJB6N+Gl0IRJZ0Bh4ggdISEqytykpPN8.
ECDSA key fingerprint is MD5:2e:91:01:39:bd:6f:b9:a8:3b:3d:9c:07:3c:81:bc:c7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'vboxnode3ccccccttttttchenyang,192.168.56.103' (ECDSA) to the list of known hosts.
root@vboxnode3ccccccttttttchenyang's password:
Last login: Sun Aug 2722:48:562023from192.168.56.1[root@vboxnode3ccccccttttttchenyang~]# ls
anaconda-ks.cfg before-calico.yaml bigdata calico.yaml logs recommended.yaml
[root@vboxnode3ccccccttttttchenyang ~]# hadoop version
Hadoop 2.10.1
Subversion https://github.com/apache/hadoop -r 1827467c9a56f133025f28557bfc2c562d78e816
Compiled by centos on 2020-09-14T13:17Z
Compiled with protoc 2.5.0
From source with checksum 3114edef868f1f3824e7d0f68be03650
This command was run using /usr/local/home/bigdata/hadoop-2.10.1/share/hadoop/common/hadoop-common-2.10.1.jar
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
// for循环的进化
// 菜鸟
for (var i = 0; i < Things.length ; i++) {
// Things[i]
}
// 老鸟
for (var i = 0, len = Things.length; i < len; i++) {
// Things[i]
}
// 大师
for (var i = Things.le
the idea is from:
http://blog.csdn.net/zhanxinhang/article/details/6731134
public class MaxSubMatrix {
/**see http://blog.csdn.net/zhanxinhang/article/details/6731134
* Q35
求一个矩阵中最大的二维
使用cordova可以很方便的在手机sdcard中读写文件。
首先需要安装cordova插件:file
命令为:
cordova plugin add org.apache.cordova.file
然后就可以读写文件了,这里我先是写入一个文件,具体的JS代码为:
var datas=null;//datas need write
var directory=&
SELECT cust_id,
SUM(price) as total
FROM orders
WHERE status = 'A'
GROUP BY cust_id
HAVING total > 250
db.orders.aggregate( [
{ $match: { status: 'A' } },
{
$group: {