Skip to content

Instantly share code, notes, and snippets.

View balboah's full-sized avatar

Johnny Bergström balboah

View GitHub Profile

Keybase proof

I hereby claim:

  • I am balboah on github.
  • I am joonix (https://keybase.io/joonix) on keybase.
  • I have a public key ASD8bpXXVUUBY-iHpB-tBJsN4xF2xmEV1n-58dQ4CUzsBQo

To claim this, I am signing this object:

subscribe 22a7962d-e2ff-4f9b-596f-07906baeebdc
subscribe 58ad2f08-33c3-4d2a-7e13-cfb592f7e3f3
subscribe 54b0c1b2-9203-4baa-4a6e-af274e08dbd3
subscribe b15d35a4-cc21-4862-77e1-81264a4601b4
subscribe 6bf91e78-2b26-48cb-4750-926359e3ccc0
subscribe 30faa918-8526-4950-4eb9-f0c6fe044724
subscribe 205ff0ea-e633-4d13-64d1-4a057a70e9a2
unsubscribe 58ad2f08-33c3-4d2a-7e13-cfb592f7e3f3
unsubscribe 7d77ed3d-b613-4dd2-551f-743d159cebe2
unsubscribe 22a7962d-e2ff-4f9b-596f-07906baeebdc
@balboah
balboah / gist:1080234
Created July 13, 2011 12:49
mongo freebsd bug
// Save as test.js and run in console with:
// time mongo test.js
db.users.drop();
for (var i=0; i < 100; i++) { db.users.insert({}); }
for (var i=1; i < 100; i++) {
var result = db.users.find().limit(1);
if (! result.hasNext()) continue; // This check together with the insert below makes it terrible slow
db.communications.insert({text: 'testing'});
-- message delivery logic ready
starting error log relay ...done
starting networking ...BOOT ERROR: FAILED
Reason: badarg
Stacktrace: [{inet6_tcp,listen,2},
{rabbit_networking,ipv6_status,1},
{rabbit_networking,port_to_listeners,1},
{rabbit_networking,check_tcp_listener_address_auto,2},
{rabbit_networking,start_listener,4},
{rabbit_networking,'-boot_tcp/0-lc$^0/1-0-',1},
2011-05-31 16:01:42,926 ERROR org.mortbay.log: /streamFile
java.lang.NullPointerException
at org.apache.hadoop.hdfs.server.common.JspHelper.getDefaultWebUser(JspHelper.java:386)
at org.apache.hadoop.hdfs.server.common.JspHelper.getUGI(JspHelper.java:426)
at org.apache.hadoop.hdfs.server.namenode.DfsServlet.getUGI(DfsServlet.java:101)
at org.apache.hadoop.hdfs.server.namenode.StreamFile.getDFSClient(StreamFile.java:59)
at org.apache.hadoop.hdfs.server.namenode.StreamFile.doGet(StreamFile.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
...
<?
protected function _getPathName($path)
{
$pathname = new Pathname();
$pathname->pathname = $path;
return $pathname;
}
:/Users/johnny/bin/hadoop/bin/../lib/thrift/hadoop-thriftfs-0.20.203.0.jar:/Users/johnny/bin/hadoop/bin/../src/contrib/thriftfs/lib/hadoopthriftapi.jar:/Users/johnny/bin/hadoop/bin/../src/contrib/thriftfs/lib/libthrift.jar:/Users/johnny/bin/hadoop/bin/../lib/aspectjrt-1.6.5.jar:/Users/johnny/bin/hadoop/bin/../lib/aspectjtools-1.6.5.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-beanutils-1.7.0.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-beanutils-core-1.8.0.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-cli-1.2.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-codec-1.4.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-collections-3.2.1.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-configuration-1.6.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-daemon-1.0.1.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-digester-1.8.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-el-1.0.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-httpclient-3.0.1.jar:/Users/johnny/bin/hadoop/bin/../lib/commons-lang-2.4.jar:/Users/j