摘要:
错误提示:/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not avail... 阅读全文
摘要:
hosts文件,存储要部署的节点IP地址,其中以#开头表示注释掉192.168.101.52192.168.101.53192.168.101.54192.168.101.55192.168.101.56start.sh文件 在hosts文件中存储的所有节点上,生成默认的公钥和私钥,其中单个节点生成... 阅读全文
摘要:
start.sh#!/bin/bashpassword="111111"username="test"if [ $# == 1 ]then username=$1elif [ $# == 2 ]then username=$1 password=$2else echo "US... 阅读全文
摘要:
最近在学Gradle, 使用git clone 命令下载了一些资料,但是文件名含有空格,看上去不是很舒服,因此想到用shell脚本对其进行批处理,去掉文件名中的空格,注意这里是把所有的空格全去掉git clone https://github.com/waylau/Gradle-2-User-Gui... 阅读全文
摘要:
转:http://www.cnblogs.com/51linux/archive/2012/05/23/2515299.htmllinux sort 命令详解sort是在Linux里非常常用的一个命令,管排序的,集中精力,五分钟搞定sort,现在开始!1 sort的工作原理sort将文件的每一行作为... 阅读全文
摘要:
原文地址:http://www.zhixing123.cn/ubuntu/40649.htmlHDFSDataNode50010dfs.datanode.addressdatanode服务端口,用于数据传输HDFSDataNode50075dfs.datanode.http.addresshttp服... 阅读全文
摘要:
在服务器上运行Jar包 并且该Jar包依赖其他的Jar文件的时候,采用如下格式java -Djava.ext.dirs=你依赖的Jar文件路径 -jar 你要运行的Jar文件 包名+类名例如:java -Djava.ext.dirs=/home/liuwei/ServerNodeJarManage... 阅读全文
摘要:
1. Mac 使用ssh命令无法成功 ssh localhost,但是可以ssh其他的可能原因:ssh服务未启动解决方法:1.启动sshd服务:sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist2.查看服务的启动,筛选: ... 阅读全文
摘要:
常用的Lucene查询代码如下所示,该代码的作用是将path路径下的所有索引信息返回 1 public String matchAll(String path) { 2 try { 3 Directory directory = FSDirectory.ope... 阅读全文
摘要:
package com.lw.database;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import ja... 阅读全文