Skip to content

Instantly share code, notes, and snippets.

View kimsterv's full-sized avatar

Kim Lewandowski kimsterv

View GitHub Profile
@Override
public void prepareToRead(@SuppressWarnings("rawtypes") RecordReader reader, PigSplit split)
throws IOException {
mSplit = split;
in = reader;
}
//add something like this to your getNext()
if (mSplit != null) {
FileSplit fs = (FileSplit) mSplit.getWrappedSplit();
Dude, you came to the exact right person. He want's Lucchese. I
wanted some cowboy boots for Christmas last year, and I went out of my
way to make sure they were Lucchese's. They are $300 and comfortable
as hell, and they also make some higher end ones if interested. Do
NOT fuck around with Justin or any of the other shitty brands you will
find at Western Warehouse. Just trust me on this one. Luchesse's are
the most classic mid-market (ie not $3,000) brand. They are all
hand-made in San Antonio or El Paso. Here's a video of them making
some: http://www.youtube.com/watch?v=OycogDJXIRc. This shit is real.
They are so comfortable.
import java.io.IOException;
import java.util.Map;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.lib.input.LineRecordReader;
import org.apache.pig.LoadFunc;
import org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigFileInputFormat;
http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#CreateKeystore
Make the keystore:
keytool -genkeypair -alias sg -keyalg RSA -validity 7 -keystore keystore
Take a look at it:
keytool -list -v -keystore keystore
Sign it (makes it into a .cer):