Skip to content

Instantly share code, notes, and snippets.

View trisberg's full-sized avatar

Thomas Risberg trisberg

View GitHub Profile
$ cf logs cf-demo
Connected, tailing logs for app cf-demo in org data / space sandbox as admin...
2014-06-24T17:11:32.95-0400 [API] OUT Updated app with guid fe61028f-0910-493f-8247-93561d862fb2 ({"state"=>"STARTED"})
2014-06-24T17:11:32.96-0400 [DEA] OUT Starting app instance (index 0) with guid fe61028f-0910-493f-8247-93561d862fb2
2014-06-24T17:11:39.89-0400 [App/0] OUT
2014-06-24T17:11:39.89-0400 [App/0] OUT . ____ _ __ _ _
2014-06-24T17:11:39.89-0400 [App/0] OUT /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2014-06-24T17:11:39.89-0400 [App/0] OUT ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2014-06-24T17:11:39.89-0400 [App/0] OUT \\/ ___)| |_)| | | | | || (_| | ) ) ) )
@Grab('org.springframework.data:spring-data-hadoop:2.1.0.BUILD-SNAPSHOT-hadoop24')
@Grab('org.springframework.data:spring-data-hadoop-boot:2.1.0.BUILD-SNAPSHOT-hadoop24')
import org.apache.hadoop.fs.FileStatus
import org.springframework.data.hadoop.fs.FsShell
import org.springframework.data.hadoop.config.annotation.EnableHadoop
import org.springframework.data.hadoop.config.annotation.SpringHadoopConfigurerAdapter
import org.springframework.data.hadoop.config.annotation.builders.HadoopConfigConfigurer
@EnableAutoConfiguration
@trisberg
trisberg / gist:e55ce9570c3dd0da68ce
Created December 19, 2014 14:53
payload.class.name
09:21:42,718 1.1.0.SNAP ERROR task-scheduler-2 handler.LoggingHandler - org.springframework.messaging.MessageHandlingException: Expression evaluation failed: payload.class.name; nested exception is org.springframework.expression.AccessException: Exception while trying to deserialize String
at org.springframework.integration.util.AbstractExpressionEvaluator.evaluateExpression(AbstractExpressionEvaluator.java:131)
at org.springframework.integration.handler.ExpressionEvaluatingMessageProcessor.processMessage(ExpressionEvaluatingMessageProcessor.java:72)
at org.springframework.integration.aggregator.ExpressionEvaluatingCorrelationStrategy.getCorrelationKey(ExpressionEvaluatingCorrelationStrategy.java:55)
at org.springframework.integration.aggregator.AbstractCorrelatingMessageHandler.handleMessageInternal(AbstractCorrelatingMessageHandler.java:368)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Na
@trisberg
trisberg / Container.stdout
Created October 1, 2015 16:55
XD on YARN stdout
_____ __ _______
/ ___| (-) \ \ / / _ \
\ `--. _ __ _ __ _ _ __ __ _ \ V /| | | |
`--. \ '_ \| '__| | '_ \ / _` | / ^ \| | | |
/\__/ / |_) | | | | | | | (_| | / / \ \ |/ /
\____/| .__/|_| |_|_| |_|\__, | \/ \/___/
| | __/ |
|_| |___/
1.3.0.BUILD-SNAPSHOT eXtreme Data
@trisberg
trisberg / irb.txt
Created June 4, 2012 19:43
RbConfig for 1.9.2-p290
Montserrat:ruby192 trisberg$ rbenv local 1.9.2-p290
Montserrat:ruby192 trisberg$ irb
irb(main):001:0> require "rbconfig"
=> false
irb(main):002:0> require "pp"
=> true
irb(main):003:0> pp RbConfig::CONFIG
{"DESTDIR"=>"",
"MAJOR"=>"1",
"MINOR"=>"9",
@trisberg
trisberg / gist:3077663
Created July 9, 2012 17:05
CF Standalone startup command
java $JAVA_OPTS -cp .:* com.springdeveloper.demo.HelloSpring
import java.util.logging.Logger
@RestController
class LoggerApp {
{
Logger logger = Logger.getLogger("TEST")
def count = 0
def thread = Thread.start {
while (true) {
{
"accountName": "prod",
"loadBalancers": [{
"account": "prod",
"name": "ticktock-redis-log",
"nativeRoute": {
"appsUsingRoute": 1,
"domain": {
"meta": {
"created": 1452802219000,
{
id: "c7b4d5d2-1a8c-4ef4-8cc3-78e02c3f9d76",
name: "Create New Server Group in cluster demo-test-app",
status: "TERMINAL",
variables: [{
key: "application",
value: "demo"
}, {
key: "credentials",
value: "prod"
**[UBUNTU]**
$ vagrant init ubuntu/trusty64
$ vi Vagrantfile
---
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"