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
import sys | |
import re | |
import operator | |
import urllib.request | |
import json | |
def geolookup(ip, format): | |
# Create URL based on the IP address |
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
import abc | |
import time | |
import boto | |
from boto.emr.connection import EmrConnection | |
from boto.regioninfo import RegionInfo | |
from boto.emr.step import InstallPigStep | |
import luigi | |
from luigi.s3 import S3Target, S3PathTask |
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
log4j.rootLogger=INFO, LogFileAppender | |
log4j.logger.org.apache.hadoop.metrics.jvm.JvmMetrics=OFF | |
log4j.logger.org.apache.pig.scripting.BoundScript=INFO, PrettyConsoleAppender | |
log4j.logger.com.mortardata.hawk.HawkMain=INFO, PrettyConsoleAppender | |
log4j.logger.com.mortardata.hawk.HawkScriptError=INFO, PrettyConsoleAppender | |
log4j.logger.com.mortardata.hawk.progress.HawkProgressEventHandler=INFO, PrettyConsoleAppender | |
log4j.logger.org.apache.pig.tools.grunt.Grunt=INFO, PrettyConsoleAppender | |
log4j.appender.LogFileAppender=org.apache.log4j.FileAppender | |
log4j.appender.LogFileAppender.File=logs/local-pig.log |
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
# | |
# Copyright 2015 Mortar Data Inc. | |
# | |
# 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 |
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
#!/bin/bash | |
# Exit on Error | |
set -e | |
# Get the path of the script | |
pushd `dirname $0` > /dev/null | |
SCRIPT_PATH=`pwd` | |
popd > /dev/null |
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/java/default/bin/java -Xmx1000m -Dpig.events.logformat=humanreadable | |
-Dfs.s3.awsAccessKeyId=XXXXXXXXXXXX | |
-Dpig.logfile=/home/zach/test/logs/local-pig.log | |
-Dfs.s3.awsSecretAccessKey=XXXXXXXXXXXX | |
-Djava.security.krb5.realm= | |
-Dpython.cachedir=/home/zach/test/.mortar-local/jython/cachedir | |
-Dfs.s3n.awsSecretAccessKey=XXXXXXXXXXXX | |
-Dpython.home=/home/zach/test/.mortar-local/jython | |
-Dpython.path=/home/zach/test/.mortar-local/../controlscripts/lib:/home/zach/test/.mortar-local/../vendor/controlscripts/lib | |
-Djython.output=true |