This file contains hidden or 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
| chris-mbp-en1:epicfail chris$ rake -T --trace | |
| (in /Users/chris/Projects/venda/epicfail) | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| rake aborted! | |
| can't convert Module into String | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2449:in `load_imports' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in `raw_load_rakefile' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' |
This file contains hidden or 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 com.venda.jruby; | |
| import java.util.ArrayList; | |
| import org.jruby.Ruby; | |
| import org.jruby.RubyObjectAdapter; | |
| import org.jruby.RubyRuntimeAdapter; | |
| import org.jruby.javasupport.JavaEmbedUtils; | |
| import org.jruby.runtime.builtin.IRubyObject; | |
| import org.jruby.RubyInstanceConfig; |
This file contains hidden or 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
| # setup for CPAN, not CPANPLUS: | |
| $ENV{PERL_AUTOINSTALL_PREFER_CPAN} = 1; | |
| # unattended mode | |
| $ENV{PERL_MM_USE_DEFAULT} = '1'; | |
| # Only use core and site modules | |
| use FindBin; | |
| use local::lib '--self-contained', "$FindBin::Bin/siteperl"; | |
| use lib "$FindBin::Bin/siteperl"; |
This file contains hidden or 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
| public class MovingAverage { | |
| public static void main(String[] args) throws Exception { | |
| Fields keyFields = new Fields( "date" ); | |
| String[] familyNames = {"basic"}; | |
| Fields[] valueFields = new Fields[]{new Fields("duration", "datemillis")}; | |
| Tap source = new HBaseTap("candrewsdev", new HBaseScheme( keyFields, familyNames, valueFields ) ); | |
| Tap sink = new Lfs(new Fields("daterange", "average"), "/tmp/average.out", SinkMode.REPLACE); |
This file contains hidden or 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
| public class FirehoseFn extends BaseOperation implements Function { | |
| public FirehoseFn() { | |
| super(2, new Fields("daterange", "duration")); | |
| } | |
| public void operate( FlowProcess flowProcess, FunctionCall functionCall ) { | |
| TupleEntry arguments = functionCall.getArguments(); | |
| Tuple result = new Tuple(); |
This file contains hidden or 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
| [#|2010-03-08T14:44:12.157+0000|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=1647;_ThreadName=ActiveMQ Session Task;_RequestID=4134e88a-356b-4bb9-aae8-50adfe009c5e;|java.lang.VerifyError: class JRuby$$Rack$$Queues$$LocalRackApplication_1044390618 overrides final method getRuntime.()Lorg/jruby/Ruby; | |
| at java.lang.ClassLoader.defineClass1(Native Method) | |
| at java.lang.ClassLoader.defineClass(ClassLoader.java:621) | |
| at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:39) | |
| at org.jruby.java.codegen.RealClassGenerator.defineRealImplClass(RealClassGenerator.java:459) | |
| at org.jruby.java.codegen.RealClassGenerator.createRealImplClass(RealClassGenerator.java:70) | |
| at org.jruby.javasupport.Java.generateRealClass(Java.java:1139) | |
| at org.jruby.java.proxies.JavaInterfaceTemplate$9.call(JavaInterfaceTemplate.java:262) | |
| at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:182) | |
| at org.jruby.internal.r |
This file contains hidden or 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
| sub call { | |
| my ($self, $env) = @_; | |
| my $response = [...]; # regular PSGI response | |
| return sub { | |
| my $write = shift; | |
| $write->($response); | |
| post_hit_stuff(); | |
| }; |
This file contains hidden or 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
| Not an ARRAY reference at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Middleware/StackTrace.pm line 27. |
This file contains hidden or 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
| [chris@dev ~]$ curl http://10.100.65.0:9090/stuff | |
| Trace begun at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Middleware/StackTrace.pm line 21 | |
| Plack::Middleware::StackTrace::__ANON__('Undefined subroutine &DB::enable_profile called at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 17.^J^I...propagated at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 19.^J') called at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 19 | |
| Venda::App::REST::call('Venda::App::REST=HASH(0x10089b70)', 'HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Component.pm line 39 | |
| Plack::Component::__ANON__('HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/App/URLMap.pm line 64 | |
| Plack::App::URLMap::call('Plack::App::URLMap=HASH(0x10089bd0)', 'HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Component.pm line 39 | |
| Plack::Component:: |
This file contains hidden or 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
| sub call { | |
| my ($self, $env) = @_; | |
| eval {DB::enable_profile(sprintf('nytprof_hit_%s', $profile)) }; | |
| die; | |
| ... | |
| } |