This file contains 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
kafka: | |
image: state/kafka:0.8.2.0-0 | |
net: host | |
environment: | |
KAFKA_BROKER_ID: 0 | |
KAFKA_ADVERTISED_HOST: localhost | |
schemaregistry: | |
image: state/confluent-schema-registry:1.0-2 | |
net: host |
This file contains 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
grep -obUaP "\x1F\x8B\x08\x00\x00\x00\x00\x00" $FILENAME | cut -d ":" -f 1 > splits.txt | |
cat > split.py << EOF | |
import sys | |
input_file = sys.argv[1] | |
offset_file = sys.argv[2] | |
output_file = input_file.replace('.gz','') | |
offsets = map(long, open(offset_file).read().rstrip().split("\n")) | |
with open(input_file,"rb") as f: |
This file contains 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
--- src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormat.java 2011-02-09 00:23:13.000000000 +0000 | |
+++ src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormat.java 2011-02-23 13:01:25.126278999 +0000 | |
@@ -88,7 +88,7 @@ | |
this.conf = configuration; | |
String tableName = conf.get(INPUT_TABLE); | |
try { | |
- setHTable(new HTable(new Configuration(conf), tableName)); | |
+ setHTable(new HTable(tableName)); | |
} catch (Exception e) { | |
LOG.error(StringUtils.stringifyException(e)); |
This file contains 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
package uk.co.danharvey.pig.storage; | |
import java.io.IOException; | |
public class JsonStorage extends StoreFunc { | |
private RecordWriter<Text, NullWritable> writer; | |
private ResourceSchema schema; | |
@Override | |
public OutputFormat getOutputFormat() throws IOException { |
This file contains 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 java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; | |
import com.google.common.base.CharMatcher; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DB; |
This file contains 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 java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; | |
import com.google.common.base.CharMatcher; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DB; |