Skip to content

Instantly share code, notes, and snippets.

View bobrik's full-sized avatar

Ivan Babrou bobrik

View GitHub Profile
@bobrik
bobrik / hbase.jmx.json
Created January 4, 2016 13:48
hbase with appends
{
"beans" : [ {
"name" : "Hadoop:service=HBase,name=Master,sub=Balancer",
"modelerType" : "Master,sub=Balancer",
"tag.Context" : "master",
"tag.Hostname" : "dev",
"miscInvocationCount" : 2,
"BalancerCluster_num_ops" : 0,
"BalancerCluster_min" : 0,
"BalancerCluster_max" : 0,
@bobrik
bobrik / UnfuckedTableInputFormat.java
Created December 12, 2015 14:11
TableInputFormat for HBase that works with binary row keys
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.mapreduce.TableInputFormat;
import org.apache.hadoop.hbase.util.Bytes;
public class UnfuckedTableInputFormat extends TableInputFormat {
@Override
public void setConf(Configuration configuration) {
super.setConf(configuration);
web351 ~ # ps aux | grep [4]8174
www 48174 2.3 0.3 84536 25136 ? S 11:35 7:11 nginx: worker process is shutting down
web351 ~ # netstat -ntp | fgrep ESTABLISHED | fgrep 48174 | wc -l
308
web351 ~ # netstat -ntp | fgrep ESTABLISHED | fgrep 48174 | wc -l
308
web351 ~ # netstat -ntp | fgrep ESTABLISHED | fgrep 48174 | wc -l
308
web351 ~ # netstat -ntp | fgrep ESTABLISHED | fgrep 48174 | wc -l
309
@bobrik
bobrik / metrics.json
Created May 27, 2015 09:39
marathon pr-1568 (10min)
{
"timers": {
"service.mesosphere.marathon.tasks.TaskTracker$$EnhancerByGuice$$c9257ec9.timeout": {
"rate_units": "calls/second",
"p98": 1.61442e-06,
"p95": 1.3412499999999997e-06,
"p75": 5.77e-07,
"p50": 3.505e-07,
"min": 3.9000000000000005e-08,
"mean": 4.941150684931507e-07,
@bobrik
bobrik / v0.8.1-RC1.json
Created May 21, 2015 14:05
marathon metrics
{
"timers": {
"org.eclipse.jetty.servlet.ServletContextHandler.trace-requests": {
"rate_units": "calls/second",
"p98": 0,
"p95": 0,
"p75": 0,
"p50": 0,
"min": 0,
"mean": 0,
@bobrik
bobrik / flamegraph-0.8.1-RC1.svg
Created May 14, 2015 09:42
marathon flamegraphs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bobrik
bobrik / jstack-1.txt
Created May 12, 2015 08:23
jstack for marathon
2015-05-12 08:19:17
Full thread dump OpenJDK 64-Bit Server VM (24.79-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f09dc00e800 nid=0xd4d waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-3-thread-96" prio=10 tid=0x00007f0948046000 nid=0xd3a waiting on condition [0x00007f0911262000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000078421f1f0> (a java.util.concurrent.SynchronousQueue$TransferStack)
~ λ docker pull mesosphere/mesos-slave:0.22.0-1.0.ubuntu1404
Pulling repository mesosphere/mesos-slave
ee5112ba1ca1: Download complete
511136ea3c5a: Download complete
f3c84ac3a053: Download complete
a1a958a24818: Download complete
9fec74352904: Download complete
d0955f21bf24: Download complete
1bd6d04c7ede: Download complete
74b90d49b588: Download complete
@bobrik
bobrik / log.txt
Last active August 29, 2015 14:17
# docker logs -f syslog-ng-web13
[2015-03-19T07:53:05.469892] Unable to detect fully qualified hostname for localhost, use_fqdn() will use the short hostname;
[2015-03-19T07:53:05.470649] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode Please update it to use the syslog-ng 3.6 format at your time of convinience, compatibility mode can operate less efficiently in some cases. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.;
[2015-03-19T07:53:05.470674] Reading path for candidate modules; path='/usr/lib/syslog-ng'
[2015-03-19T07:53:05.470807] Reading shared object for a candidate module; path='/usr/lib/syslog-ng', fname='dbparser.so', module='dbparser'
[2015-03-19T07:53:05.471488] Registering candidate plugin; module='dbparser', context='parser', name='db-parser', preference='0'
[2015-03-19T07:53:05.471512] Reading shared object fo
$ curl -v https://api.vk.com/
* About to connect() to api.vk.com port 443 (#0)
* Trying 87.240.131.119...
* connected
* Connected to api.vk.com (87.240.131.119) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):