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
import java.net.InetAddress; | |
import java.net.InetSocketAddress; | |
import java.net.InterfaceAddress; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.net.UnknownHostException; | |
import org.apache.bookkeeper.conf.ServerConfiguration; | |
public class Bookie { |
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
#!/bin/bash | |
for DIR in `find /mnt/mapred/local/taskTracker/*/jobcache/* -maxdepth 0 -type d -mmin +60`; do | |
if ! find $DIR | grep attempt > /dev/null; then | |
rm -rf $DIR; | |
fi; | |
done; | |
# There is also another bug that results in jobcache directories being duplicated | |
# within the attempt_ directories we filter out above. These directories never go away and so jobs with |
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
/** | |
* Copyright 2009 The Apache Software Foundation | |
* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at |
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 org.apache.hadoop.hbase.mapreduce; | |
import java.io.IOException; | |
import java.util.Collections; | |
import java.util.List; | |
import org.apache.hadoop.hbase.HBaseConfiguration; | |
import org.apache.hadoop.hbase.client.Scan; | |
import org.apache.hadoop.hbase.util.Bytes; | |
import org.apache.hadoop.mapreduce.Job; |
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
1 times (0% total cpu) | |
"2116134604@qtp-1167186972-0" daemon prio=10 tid=0x7f20df278000 nid=0xb655 in Object.wait() start=2015-11-30 21:17:39 | |
java.lang.Thread.State: TIMED_WAITING (on object monitor) | |
at java.lang.Object.wait(Native Method) | |
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:626) | |
- locked <0x00007f19080118c0> (a org.mortbay.thread.QueuedThreadPool$PoolThread) | |
1 times (2.5% total cpu) | |
"RpcServer.responder" daemon prio=10 tid=0x7f20dfb64000 nid=0xb6f9 runnable cpu=2.5% start=2015-11-30 21:17:42 | |
java.lang.Thread.State: RUNNABLE |
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
java.lang.AssertionError: Key REDACTED_ROWKEY/2:\x00\x05\x12\xBF8/OLDEST_TIMESTAMP/Minimum/vlen=0/seqid=0 followed by a smaller key REDACTED_ROWKEY/2:\x00\x03,\x0E0/1456850400248000000/Put/vlen=10/seqid=0 in cf 2 | |
at org.apache.hadoop.hbase.regionserver.StoreScanner.checkScanOrder(StoreScanner.java:787) | |
at org.apache.hadoop.hbase.regionserver.StoreScanner.next(StoreScanner.java:542) | |
at org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:145) | |
at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.populateResult(HRegion.java:5272) | |
at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:5423) | |
at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextRaw(HRegion.java:5210) | |
at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:5187) | |
at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:5174) | |
at org.apache.h |
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 org.apache.hadoop.hbase.regionserver.metrics; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.TimeUnit; |
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
# May need to install the proper version (1.7+) of go before starting | |
export GOPATH=~/work | |
export PATH=$PATH:$GOPATH/bin | |
mkdir -p $GOPATH/src $GOPATH/bin $GOPATH/pkg | |
git clone [email protected]:youtube/vitess.git $GOPATH/src/github.com/youtube/vitess | |
cd $GOPATH/src/github.com/youtube/vitess | |
go get -u github.com/golang/lint/golint github.com/golang/mock/mockgen github.com/kardianos/govendor golang.org/x/tools/cmd/goimports honnef.co/go/unused/cmd/unused code.google.com/p/go.tools/cmd/cover | |
govendor sync | |
cd go/cmd | |
go install ./vtgate ./vtctld |
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
#!/bin/sh -ex | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
vitess_version='2.1.0-alpha' | |
source /opt/rh/devtoolset-4/enable | |
source /opt/rh/python27/enable | |
export GOROOT="/usr/local/go" |
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
From a89a8d6144136512574681f36e5e9828c757090d Mon Sep 17 00:00:00 2001 | |
From: Bryan Beaudreault <[email protected]> | |
Date: Wed, 4 Jan 2017 11:23:12 -0500 | |
Subject: [PATCH] vtparse -- a tool for analyzing query logs, sending them | |
through vitess planbuilders, and outputting errors | |
--- | |
go/cmd/vtparse/main.go | 10 + | |
go/cmd/vtparse/plugin_cephbackupstorage.go | 5 + | |
go/cmd/vtparse/plugin_etcd2topo.go | 22 + |
OlderNewer