Skip to content

Instantly share code, notes, and snippets.

View ruo91's full-sized avatar

Yongbok Kim ruo91

View GitHub Profile
@ruo91
ruo91 / flume.1.5.0.txt
Created October 24, 2013 13:09
Flume 1.5.0 : java.net.ConnectException: Call From dev.yongbok.net/127.0.0.1 to localhost:9000 failed on connection exception
2013-10-24 21:56:51,681 (agent-shutdown-hook) [WARN - org.apache.flume.sink.hdfs.HDFSEventSink.stop(HDFSEventSink.java:442)] Exception while closing /logs/FlumeData. Exception follows.
java.net.ConnectException: Call From dev.yongbok.net/127.0.0.1 to localhost:9000 failed on connection exception: java.net.ConnectException: 연결이 거부됨; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
at org.apache.hadoop.ipc.Client.call(Client.java:1351)
at org.apache.hadoop.ipc
@ruo91
ruo91 / hadoop-2.2.0.txt
Created October 25, 2013 13:29
Hadoop 2.2.0 - warning: You have loaded library /home/hadoop/2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard.
[hadoop@dev ~]$ start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
13/10/25 22:21:07 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/hadoop/2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
localhost]
sed: -e expression #1, char 6: unknown option to `s'
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
Java: ssh: Could not resolve hostname Java: Name or service not known
@ruo91
ruo91 / nginx_conf_generator.example
Last active December 27, 2015 05:39
example - nginx.conf generator
- gem
[root@dev ~]# gem install nginx_config_generator
example yml 생성
[root@dev ~]# generate_nginx_config --example > nginx.yml
nginx.conf 생성
[root@dev ~]# generate_nginx_config nginx.yml nginx.conf
=> Wrote nginx.conf successfully.
@ruo91
ruo91 / ubuntu-12.04-openresty.sh
Last active December 31, 2015 22:19
Ubuntu 12.04 - OpenResty Install Shell Script
#!/bin/sh
# Openresty Prefix
prefix=/usr/local/openresty
# Ubuntu 12.04
# Need Packege
sudo apt-get install -y \
build-essential libreadline6-dev ncurses-dev libpcre++-dev \
libssl-dev libgeoip-dev libxml2-dev libxslt-dev libgd2-xpm-dev \
@ruo91
ruo91 / core-site.xml
Created January 31, 2014 02:20
Hadoop HDFS over HTTP (HttpFS) Part1
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@ruo91
ruo91 / hdfs-site.xml
Created January 31, 2014 02:23
Hadoop HDFS over HTTP (HttpFS) Part2
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@ruo91
ruo91 / httpfs-site.xml
Created January 31, 2014 02:24
Hadoop HDFS over HTTP (HttpFS) Part3
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@ruo91
ruo91 / HttpFS.sh
Created January 31, 2014 02:48
Hadoop HDFS over HTTP (HttpFS) Part4
- Start Hadoop (pseudo distributed mode)
hadoop@ruo91:~$ start-all.sh
- Start HttpFS
hadoop@ruo91:~$ httpfs.sh start
Setting HTTPFS_HOME: /home/hadoop/2.2.0
Setting HTTPFS_CONFIG: /home/hadoop/2.2.0/etc/hadoop
Sourcing: /home/hadoop/2.2.0/etc/hadoop/httpfs-env.sh
setting HTTPFS_HTTP_HOSTNAME=your-cluster-hostname
Setting HTTPFS_LOG: /home/hadoop/2.2.0/logs
@ruo91
ruo91 / nginx-ex1.conf
Last active August 29, 2015 13:56
nginx.conf example1
worker_processes 4;
events {
worker_connections 1024;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
@ruo91
ruo91 / opsview-base-4.5.0.397.Makefile.patch
Created February 25, 2014 13:52
opsview-base-4.5.0.397 utf-8 patch (Makefile)
# By.ruo91 (Yongbok Kim)
--- Makefile.orig 2014-02-25 22:46:49.000000000 +0900
+++ Makefile 2014-02-25 22:43:35.000000000 +0900
@@ -611,6 +611,9 @@
cd ${NAGIOS} && patch -p1 < ../patches/nagios_host_hard_state_changes.patch
cd ${NAGIOS} && patch -p1 < ../patches/nagios_centos5_rhel5_no_output_fix.patch
cd ${NAGIOS} && patch -p1 < ../patches/nagios_avoid_swamping_log_when_killing_plugin.patch
+ # Nagios utf-8 patch
+ cd ${NAGIOS} && patch -p1 < ../patches/nagios-4.0.20130912.utf8.patch
+