摘要: JAVA 输出指定日期的前一个月的每一天 201505232015052420150525201505262015052720150528201505292015053020150531201506012015060220150603201506042015060520150606201506072 阅读全文
posted @ 2016-06-23 17:27 日月玉朱猪 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: 很多情况下,我们希望限制ftp用户只能在其主目录下(root dir)下活动,不允许他们跳出主目录之外浏览服务器上的其他目录,这时候我就需要使用到chroot_local_user,chroot_list_enable,chroot_list_file这三个选项了。以下是对三个配置项的解释: 本文原 阅读全文
posted @ 2016-06-17 18:15 日月玉朱猪 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 特殊变量 变量 含义 $0 当前脚本的文件名 $# 传递给脚本或函数的参数个数。 $* 传递给脚本或函数的所有参数。 $? 上个命令的退出状态,或函数的返回值。 $$ 当前Shell进程ID。对于 Shell 脚本,就是这些脚本所在的进程ID。 $@ 传递给脚本或函数的所有参数。被双引号(" ")包 阅读全文
posted @ 2016-06-17 17:58 日月玉朱猪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: sed 's/pattern/replace_string/' file sed.txt中对每行的第一个lifeng用lf替换 sed 's/lifeng/lf/' sed.txt (源文件内容不会变的) 要替换所有内容,命令尾部加参数g sed 's/lifeng/lf/g' sed.txt 要从 阅读全文
posted @ 2016-06-17 17:55 日月玉朱猪 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 查看服务 service --status-all service iptables status service iptables start service iptables stop 软链接 ln -s a b a是源文件 b是链接名 一些文件操作 scp /usr/1.txt root@17 阅读全文
posted @ 2016-06-17 17:53 日月玉朱猪 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Hive 命令行常用命令 加载数据 load data local inpath '/home/IVR_CSR_MENU_MAP.txt' into table ivr_csr_menu_map; 分区的: load data local inpath '/home/lftest/lf1.txt' 阅读全文
posted @ 2016-06-17 17:40 日月玉朱猪 阅读(2167) 评论(0) 推荐(0) 编辑
摘要: Hbase Shell 常用命令 1.hbase shell 进入hbase 2.list 查看表 3.创建一个表member(f1为列族) create 'member', 'f1' 4.查看表描述 describe 'member' 5.scan浏览表中数据 scan 'member' 6.删除 阅读全文
posted @ 2016-06-17 17:32 日月玉朱猪 阅读(246) 评论(0) 推荐(0) 编辑
摘要: hbase生成分区种子 1 package com.spdbccc.edm.storm.common; 2 3 import java.util.List; 4 5 import org.apache.commons.lang3.StringUtils; 6 import org.apache.hadoop.hbase.util.Bytes; 7 8 ... 阅读全文
posted @ 2016-06-15 11:18 日月玉朱猪 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 根据rowkey进行get1 Configuration conf = HBaseConfiguration.create(); //创建配置实例 2 HTable table = new HTable(conf,"EVENT_LOG_YZ"); //初始化一个新的表引用 3 Get get = new Get(Bytes.toBytes("nz-NE02967280231-1")); /... 阅读全文
posted @ 2016-06-15 10:03 日月玉朱猪 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1、 关闭主机添加内存 登录指定主机系统(按表二依次操作),切换至root用户,输入poweroff命令关闭系统,待系统关闭后,由IT负责人进行内存扩容。 2、 开机检查内存信息 由IT负责人检查扩容主机的内存信息,确定内存扩容完成后再进入系统。 3、 登录系统启动服务 登录系统,切换至root用户 阅读全文
posted @ 2016-06-14 17:35 日月玉朱猪 阅读(2049) 评论(0) 推荐(0) 编辑