This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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] |