This file contains 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
22:14:53,549 DEBUG [org.apache.zookeeper.ClientCnxn] (http-/192.168.220.198:8080-1-SendThread(ZKHOST:2181)) Reading reply sessionid:0x1498bc00431010f, packet:: clientPath:null serverPath:null finished:false header:: 414,3 replyHeader:: 414,107374188046,0 request:: '/accumulo/4663a372-d7f0-4956-a110-ff063c781ead/tservers/TSERVER_HOST:10011/zlock-0000000036,T response:: s{107374187891,107374187891,1415398174207,1415398174207,0,0,0,92758924158107923,33,0,107374187891} | |
22:14:53,922 DEBUG [org.apache.zookeeper.ClientCnxn] (http-/192.168.220.198:8080-1-SendThread(ZKHOST:2181)) Reading reply sessionid:0x1498bc00431010f, packet:: clientPath:null serverPath:null finished:false header:: 415,4 replyHeader:: 415,107374188046,0 request:: '/accumulo/4663a372-d7f0-4956-a110-ff063c781ead/tservers/TSERVER_HOST:10011/zlock-0000000036,T response:: #54534552565f434c49454e543d7330322d6265732d646e6f6436323a3130303131,s{107374187891,107374187891,1415398174207,1415398174207,0,0,0,92758924158107923,33,0,107374187891} | |
22:14:53 |
This file contains 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
# The following block logs java.lang.Throwable correctly: http://www.slf4j.org/api/org/slf4j/Logger.html#error(java.lang.String,%20java.lang.Throwable) | |
begin | |
Java::ComGoogleCommonBase::Preconditions.check_argument(false, "I don't like you") | |
rescue => e | |
logger = Java::OrgSlf4j::LoggerFactory.get_logger('logger') | |
logger.error("This works", e) | |
end | |
# However RubyException is not a throwable and treats it as a java.lang.Object: http://www.slf4j.org/api/org/slf4j/Logger.html#error(java.lang.String,%20java.lang.Object...) | |
begin | |
raise "error" |
This file contains 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
java.lang.RuntimeException: org.jruby.exceptions.RaiseException: (SSLError) jar:file:/var/lib/storm/supervisor/stormdist/test_rsync-4-1406677418/stormjar.jar!/gems/gems/aws-sdk-euca-1.8.5/ca-bundle.crt | |
at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:107) ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] | |
at backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:78) ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] | |
at backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:77) ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] | |
at backtype.storm.daemon.executor$eval3918$fn__3919$fn__3931$fn__3978.invoke(executor.clj:745) ~[na:na] | |
at backtype.storm.util$async_loop$fn__384.invoke(util.clj:433) ~[na:na] | |
at clojure.lang.AFn.run(AFn.java:24) [clojure-1.4.0.jar:na] | |
at java.lang.Thread.run(Unknown Source) [na:1.7.0_60] | |
org.jruby.exceptions.RaiseException: (SSLError) jar:file:/var/li |
This file contains 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
<VirtualHost *:443> | |
#mod_ssl options and Certs ... | |
<Proxy *> | |
AddDefaultCharset Off | |
Order deny,allow | |
Allow from all | |
</Proxy> |
This file contains 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
source 'https://rubygems.org' | |
# Specify your gem's dependencies in vtd-xml.gemspec | |
gemspec | |
# needed to build the gem but fails when it is part of the gems | |
gem "ruby-maven", '~> 3.1.1.0' |
This file contains 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
# well... | |
arielvalentin@kimura:~/dev/repos/jruby | |
git:(1.7.5-424-gc4ecd6b) | |
→ GEM_HOME=./lib/ruby/gems/shared/ bin/jruby -S bin/rake test:mri19 --trace | |
... | |
5012 tests, 874184 assertions, 0 failures, 0 errors, 9 skips | |
** Execute test:mri19 | |
This file contains 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
→ jruby manually_add_to_classpath.rb | |
/var/folders/4m/jqf69nlx38s5hyqp10y9_bvc0000gp/T/d20140107-525-wdgmbz | |
grabbed zookeeper | |
crated table | |
wrote record | |
created a scanner | |
anger | |
wtf |
This file contains 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
# Workaround for IO.popen.readlines being allowed to block indefinitely even if | |
# wrapped in a Timeout::timeout call. | |
# | |
# Test case: | |
# $ time jruby -rtimeout -e "timeout(1) { IO.popen('sleep 10').readlines }" | |
# * Propagating errors executed in the block | |
# * Thread.raise experiences a TypeError because it cannot convert a java Exception into a ruby Error so I've added handling any errors raised from the java code to be propagated correctly | |
# * Renamed some variables so that they matched | |
require 'timeout' |
This file contains 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
require 'rubygems' | |
require 'rack' | |
require 'jruby/profiler' | |
app = lambda {|env| | |
profile_data = JRuby::Profiler::profile do | |
output = (0..50).map do |i| | |
50 * i | |
end | |
puts output |
This file contains 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
<configuration xmlns="urn:hornetq" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> | |
<!-- Connection factory stuff --> | |
<queue name="DissemQueue"> | |
<entry name="/queues/DissemQueue"/> | |
</queue> | |
</configuration> |