介绍之前我有篇博文是介绍如何用ansible的playbook来自动化HadoopDecommission的,本文介绍用shell脚本来实现。脚本都放在跳板机上,远端服务器调用本地脚本完成所有操作,不需要拷贝文件到远端服务器。正文主脚本:decom.sh#!/bin/bash
iplist=/home/hadoop/shell_scripts/ipl..
分类:
系统相关 时间:
2015-02-13 01:47:56
阅读次数:
266
https://github.com/dotnet/coreclr/wiki/Building-and-Running-CoreCLR-on-Linuxubuntu-14.10clang --versionUbuntu clang version 3.5.0-4ubuntu2 (tags/RELEA...
分类:
系统相关 时间:
2015-02-11 21:52:56
阅读次数:
742
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
Example
Tags Expand
Recursion Linked
List
解题思路:
思路一:平衡树调整。第一步建立一个单向树...
分类:
其他好文 时间:
2015-02-11 14:47:17
阅读次数:
139
介绍如何用ansible的playbook实现自动decommissionhadoop的node?正文对于如何部署安装ansible,请看http://haohaozhang.blog.51cto.com/9176600/1610499hadoop部署,请看http://haohaozhang.blog.51cto.com/9176600/1607089使用hadoop用户创建目录ansible_decom,里面的目录结构..
分类:
其他好文 时间:
2015-02-10 02:03:57
阅读次数:
480
一、发布文章在source/_posts目录下存放文章,后缀为md或markdown都可打开一篇文章,开头需要配置一下。title: "hexo"
date: 2015-02-02 00:00:00 -0700
tags: hexo
category: hexo
---上面是一些最基本的配置,依次为 标题、日期、标签、分类如果需要其他属性也可以添加。二、修改日期显示格式默认显示的是如下英文格式,我...
分类:
其他好文 时间:
2015-02-04 23:31:41
阅读次数:
753
php一共有四种编码风格分别为 :XML风格,脚本分铬,简短风格,ASP风格如果要配置asp标记风格与简短风格,需要在php.ini文件中配置。打开文件的位置C:\ window\php.ini找到short_open_tag 与 asp_tags 的 设置为 On设置后重启服务器,就能使用 asp...
分类:
移动开发 时间:
2015-02-04 12:33:21
阅读次数:
185
后台开发者必须用这样一个系统:能够一键部署、灰度、升级、回滚。之前在YY和QQ都有专门的运维团队做的又鲁棒又fancy的运维系统,现在没有这样的系统了怎么办...
分类:
其他好文 时间:
2015-02-04 00:38:40
阅读次数:
471
运行ansible前,会出现一下Warning。[WARNING]:Theversionofgmpyouhaveinstalledhasaknownissueregardingtimingvulnerabilitieswhenusedwithpycrypto.Ifpossible,youshouldupdateit(i.e.yumupdategmp).解决方法:忽略下输出cp/usr/lib64/python2.6/site-packages/pycrypto-2.6...
分类:
其他好文 时间:
2015-02-02 20:07:53
阅读次数:
971
介绍Ansible是一种批量部署工具,现在运维人员用的最多的三种开源集中化管理工具有:puppet,saltstack,ansible,各有各的优缺点,其中saltstack和ansible都是用python开发的。ansible其实准确的说只提供了一个框架,它要基于很多其他的python模块才能工作的,所以在安装ansible..
分类:
系统相关 时间:
2015-02-02 07:13:20
阅读次数:
420
开始使用git,还有一些命令没有用到,比如创建分支,创建tags等
持续学习,持续更新
1. git init --bare //创建git工程
2. git clone git@192.168.0.106:/home/prj_git/xxx //导出一个git工程
3. git add xxx //添加文件或目录
4. git commit -m "xxx" //添加更改信息
5...
分类:
其他好文 时间:
2015-02-01 13:32:45
阅读次数:
124