I hereby claim:
- I am cwensel on github.
- I am cwensel (https://keybase.io/cwensel) on keybase.
- I have a public key ASBqoJBj_Oaqu3SaUaTWJxzehB-i1AtD1hGnd8HSKsu8hQo
To claim this, I am signing this object:
| # change the yarn bucket name | |
| OPTIONS="--bootstrap-action s3://elasticmapreduce/bootstrap-actions/configure-hadoop" | |
| OPTIONS="${OPTIONS} --args -y,yarn.log-aggregation-enable=true,-y,yarn.log-aggregation.retain-seconds=-1,-y,yarn.log-aggregation.retain-check-interval-seconds=3000,-y,yarn.nodemanager.remote-app-log-dir=s3://your-bucket/emr/yarn-logs" |
I hereby claim:
To claim this, I am signing this object:
| import java.io.IOException; | |
| import java.lang.reflect.Type; | |
| import java.util.List; | |
| import java.util.Map; | |
| import cascading.CascadingException; | |
| import cascading.tuple.coerce.Coercions; | |
| import cascading.tuple.type.CoercibleType; | |
| import cascading.util.Util; | |
| import com.fasterxml.jackson.core.JsonProcessingException; |
| long count = TupleEntryStream.entryStream( tap, flowProcess ).count(); | |
| assertEquals( 20, count ); | |
| int sum = TupleEntryStream.entryStream( tap, flowProcess ) | |
| .mapToInt( TupleEntryStream.fieldToInt( Fields.FIRST ) ) | |
| .sum(); | |
| assertEquals( 210, sum ); |
| public class S3LogsViaKafka | |
| { | |
| public static final String DD_MMM_YYYY = "dd-MMM-yyyy"; | |
| public static final TimeZone UTC = TimeZone.getTimeZone( "UTC" ); | |
| public static final DateType DMY = new DateType( DD_MMM_YYYY, UTC ); | |
| public static final Fields KEY = new Fields( "date", DMY ); | |
| public static final Fields LINE = new Fields( "line", String.class ); | |
| public static final Fields KEY_LINE = KEY.append( LINE ); | |
| public static void main( String[] args ) |
| /*{ | |
| "type": "action", | |
| "description": "Export images from current document.", | |
| "label": "Export Canvases", | |
| "paletteLabel": "Export Canvases" | |
| }*/ | |
| var _ = function () { | |
| var action = new PlugIn.Action(function (selection) { |
| #!/usr/bin/env sh | |
| APP_NAME="app" | |
| USER_OPT=$(id -u $(logname)):$(id -g $(logname)) | |
| if [ -n "${ENTRY_BASH}" ]; then | |
| ENTRY_OPT="--entrypoint /bin/bash" | |
| fi |
| { | |
| "app": "${PROJECT_HOME}/gradlew -q run ${GRADLE_OFFLINE_OPTION}", | |
| "output": "build/cdk.out" | |
| } |
| { | |
| "app": "${PROJECT_HOME}/gradlew -q run ${GRADLE_OFFLINE_OPTION}", | |
| "output": "build/cdk.out" | |
| } |
| import heretical.parser.temporal.DurationParser; | |
| import org.eclipse.microprofile.config.spi.Converter; | |
| import java.time.Duration; | |
| /** | |
| * Uses <a href="https://github.com/Heretical/mini-parsers">Mini-Parsers</a> to parse a duration string | |
| * in a config file. | |
| */ | |
| public class DurationConverter implements Converter<Duration> { |