Skip to content

Instantly share code, notes, and snippets.

@pjstein
pjstein / hadoop-yarn-grep-failure
Last active August 29, 2015 13:58
failed states
failed: [silo-03] => {"changed": true, "cmd": "su - hdfs -c \"export HADOOP_MAPRED_HOME=/usr/lib/hadoop-mapreduce && hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar grep /source-for-mapreduce-test /outputfile 'hello'\" ", "delta": "0:00:11.452524", "end": "2014-04-10 20:01:31.965314", "rc": 255, "start": "2014-04-10 20:01:20.512790"}
stderr: 14/04/10 20:01:22 INFO client.RMProxy: Connecting to ResourceManager at silo-03/33.12.34.53:8032
14/04/10 20:01:23 WARN mapreduce.JobSubmitter: No job jar file set. User classes may not be found. See Job or Job#setJar(String).
14/04/10 20:01:23 INFO input.FileInputFormat: Total input paths to process : 1
14/04/10 20:01:23 INFO mapreduce.JobSubmitter: number of splits:1
14/04/10 20:01:23 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1397160042836_0001
14/04/10 20:01:23 INFO mapred.YARNRunner: Job jar is not present. Not adding any jar to the list of resources.
14/04/10 20:01:24 INFO impl.YarnClientImpl: Submitted application application_13
@pjstein
pjstein / you-take-my-breath-away.js
Created February 16, 2014 06:40
@SassyHash, you take my breath away
/*
* you-take-my-breath-away.js
*
* The MIT License (MIT)
*
* Copyright (c) 2014 PJ$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@pjstein
pjstein / throwItOnALayer.js
Last active August 29, 2015 13:56
layers-in-react
/*
Instagram is 100% React. They pop modals. I didn't know how you could
do that in React, so I guessed based on what was going on the in
Chrome inspector. The following code assumes a commonJS module system.
Classes that I pass into this use the this.props.teardown to take themselves
down.
*/
var _ = require('lodash'),
React = require('react');