猴子笔记

Monkey's Blog


  • 首页

  • 标签

  • 归档

  • 关于

  • 搜索

hadoop常用命令

发表于 2019-04-22 | 更新于: 2019-06-14 | 分类于 hadoop | 阅读次数:
hadoop fs -ls / 显示hdfs目录结构hadoop fs -du / 显示该目录中每个文件或目录的大小hadoop fs -du -s / 显示该目录总大小hadoop fs -mkdir /home 在hdfs指定目录内创建新目录hadoop fs -touchz /wahaha 创建一个空文件hadoop fs -rm /wahaha 删除一个文件hadoop fs -rmr /home 删除一个目录hadoop dfs -mv /hello /hello2 重命名hadoop dfs -cp /testdir/slaves /test 复制文件到指定目录hadoop dfs ...
阅读全文 »

Oracle删除重复数据

发表于 2019-01-22 | 更新于: 2019-04-22 | 分类于 Oracle | 阅读次数:

1.查找表中多余的重复记录,重复记录是根据单个字段(id)来判断

select * from 表 
where id in (select id from 表
group by id
having count(id) > 1)

阅读全文 »

Oracle行列转换

发表于 2018-12-08 | 更新于: 2019-04-22 | 分类于 Oracle | 阅读次数:

pivot 列转行

select * 
from (select name, nums from demo)
pivot(sum(nums) for name
in ('苹果' 苹果, '橘子', '葡萄', '芒果'));
阅读全文 »

Oracle树操作、递归查询

发表于 2018-12-04 | 更新于: 2019-04-22 | 分类于 Oracle | 阅读次数:
select … from tablename
start with 条件1
connect by 条件2
where 条件3;

例:

select * from table
start with org_id = ‘HBHqfWGWPy’
connect by prior org_id = parent_id;

阅读全文 »

Linux常用操作

发表于 2018-08-23 | 更新于: 2018-12-04 | 分类于 Linux | 阅读次数:

文件的操作

cp

cp -a file1 file2 # 连同file1的所有特性把文件复制为file2
cp file1 file2 dir1 # 将文件file1、file2复制到目录dir下
阅读全文 »

Hexo搭建博客常用操作

发表于 2018-08-22 | 更新于: 2019-01-22 | 分类于 Hexo | 阅读次数:

写一篇文章

输入创建文章命令,生成一个md文件(/blog/source/_posts/)

hexo n "hello" == hexo new "hello" # 新建文章

用编辑器打开hello.md文件,编写完后保存

阅读全文 »
123
猴子哥

猴子哥

接受变化,拥抱新世界

26 日志
14 分类
27 标签
GitHub 知乎
友情链接
  • IIssNan
  • 美团技术团队
  • 有赞技术团队
  • IT草根推荐博客
© 2018 — 2020 猴子哥
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.4