Skip to content

Instantly share code, notes, and snippets.

View yimaihortonworks's full-sized avatar

Yuta Imai yimaihortonworks

View GitHub Profile
@yimaihortonworks
yimaihortonworks / gist:f26ddcb38c7e7c315cc5e7832d49445b
Created April 5, 2016 12:35 — forked from sebsto/gist:19b99f1fa1f32cae5d00
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
<source>
@type stdin
#path /var/log/hive/hiveserver2.log
#pos_file /root/hiveserver2.log.pos
format /^(?<datetime>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}),\d{3} (?<level>[A-Z]+)[ ]+\[(?<message>.+)$/
tag test.input
</source>
<match test.input>
@type solr
#!/usr/bin/env python
import pyhs2
import sys
import threading
import time
user_name = sys.argv[1]
pw = sys.argv[2]
hs2 = sys.argv[3]