<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.yepn.net/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>记事本</title>
        <description></description>
        <link>http://wiki.yepn.net/</link>
        <lastBuildDate>Sun, 20 May 2012 11:59:48 -0600</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://wiki.yepn.net/lib/tpl/dokubook/images/favicon.ico</url>
            <title>记事本</title>
            <link>http://wiki.yepn.net/</link>
        </image>
        <item>
            <title>Haproxy - [haproxy log parse] </title>
            <link>http://wiki.yepn.net/haproxy?rev=1333706183&amp;do=diff</link>
            <description>HAProxy logs to a syslog facility local0, via a socket connection. By default, your syslog configuration probably doesn’t accept socket connections, and doesn’t have a local0 facility, so you have no HAProxy log. If you want it, configure syslog to accept TCP connections by adding -r to syslogd parameters.</description>
            <author>admin</author>
            <pubDate>Fri, 06 Apr 2012 03:56:23 -0600</pubDate>
        </item>
        <item>
            <title>Ganglia - [快速配置多结点] </title>
            <link>http://wiki.yepn.net/ganglia?rev=1331085115&amp;do=diff</link>
            <description>自定义模块加载

ambientTemp.conf

modules {
  module {
    name = “ambientTemp”     #此处名称要与自定义模块名相同
    language = &quot;python&quot;
  }
}

collection_group {
  collect_every = 10
  time_threshold = 50
  metric {
    name = &quot;ambientTemp&quot;
    title = &quot;Ambient Temperature&quot;
    value_threshold = 70
  }
}</description>
            <author>admin</author>
            <pubDate>Tue, 06 Mar 2012 18:51:55 -0600</pubDate>
        </item>
        <item>
            <title>Terracotta - 创建</title>
            <link>http://wiki.yepn.net/terracotta?rev=1330086375&amp;do=diff</link>
            <description>terracotta spec文件

%define installdir /usr/local/terracotta
%define debug_package %{nil}
%define __os_install_post %{nil}

Summary: Terracotta
Name: terracotta
Version: 3.6.1
Release: 1
URL: http://terracotta.org/
Vendor: Terracotta
#Source0: http://archive.apache.org/dist/terracotta/terracotta-6/v%{version}/bin/apache-terracotta-%{version}.tar.gz
Source0: http://d2zwv9pap9ylyd.cloudfront.net/terracotta-%{version}.tar.gz
License: Terracotta Public License (version 1.0)
Group: Networking/Daemons
…</description>
            <author>admin</author>
            <pubDate>Fri, 24 Feb 2012 05:26:15 -0600</pubDate>
        </item>
        <item>
            <title>Cobbler - [常用命令] </title>
            <link>http://wiki.yepn.net/cobbler?rev=1325657029&amp;do=diff</link>
            <description>Install

yum -y install cobbler tftp-server dhcp httpd xinetd

Setting

#vi /etc/cobbler/settings
161: manage_dhcp: 1
362: server: your_server_ip

cobbler check

dhcp.template

# more dhcp.template
# ******************************************************************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten.
#…</description>
            <author>admin</author>
            <pubDate>Tue, 03 Jan 2012 23:03:49 -0600</pubDate>
        </item>
        <item>
            <title>Hadoop - [config文件] </title>
            <link>http://wiki.yepn.net/hadoop?rev=1321426085&amp;do=diff</link>
            <description>cloudera hadoop

Install

rpm -ivh cdh3-repository-1.0-1.noarch.rpm

yum install hadoop-0.20-conf-pseudo hadoop-0.20-native

config文件

core-site.xml

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;configuration.xsl&quot;?&gt;

&lt;configuration&gt;
  &lt;property&gt;
    &lt;name&gt;fs.default.name&lt;/name&gt;
    &lt;value&gt;hdfs://namenode.mobcon.inside:8020&lt;/value&gt;
  &lt;/property&gt;

  &lt;property&gt;
     &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
     &lt;value&gt;/var/lib/hadoop-0.20/cache/${user.name}&lt;/value&gt;
  &lt;/property&gt;

  &lt;!-- OOZIE pr…</description>
            <author>admin</author>
            <pubDate>Tue, 15 Nov 2011 23:48:05 -0600</pubDate>
        </item>
        <item>
            <title>Flume - 创建</title>
            <link>http://wiki.yepn.net/flume?rev=1321352640&amp;do=diff</link>
            <description>确认路径[/tmp/]</description>
            <author>admin</author>
            <pubDate>Tue, 15 Nov 2011 03:24:00 -0600</pubDate>
        </item>
        <item>
            <title>Linux Tips - [Linux Tips] </title>
            <link>http://wiki.yepn.net/linux?rev=1320195449&amp;do=diff</link>
            <description>动态切换 Linux 使用的 CPU 数量

singlecore

#!/bin/bash

cpus_dir=&quot;/sys/devices/system/cpu&quot;

for cpu in $(ls &quot;$cpus_dir&quot; | grep 'cpu[0-9]\+')do
        cpu_online=&quot;$cpus_dir/$cpu/online&quot;
        if [[ -e &quot;$cpu_online&quot; &amp;&amp; $(cat $cpu_online) = 1 ]]
        then
                echo 0 &gt; &quot;$cpu_online&quot;
        fi
done</description>
            <author>admin</author>
            <pubDate>Tue, 01 Nov 2011 18:57:29 -0600</pubDate>
        </item>
        <item>
            <title>Puppet - [Puppet] </title>
            <link>http://wiki.yepn.net/puppet?rev=1319524999&amp;do=diff</link>
            <description>notify和require要成对使用

如何检查puppet的class文件语法：
This is how to do a a syntax check on a file.

puppet parser validate &lt;filename&gt; #e.g. ruby-server.pp
err: Could not parse for environment development: Syntax error at ';'; expected ']'
at /etc/puppet/manifests/classes/ruby-server.pp:2</description>
            <author>admin</author>
            <pubDate>Tue, 25 Oct 2011 00:43:19 -0600</pubDate>
        </item>
    </channel>
</rss>

