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
/** | |
* <pre> | |
* Copyright (c) 2013, AVAST Software a.s. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright |
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
/** | |
* <pre> | |
* Copyright (c) 2013, AVAST Software a.s. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright |
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
#!/bin/bash | |
## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
## Version 2, December 2004 | |
## | |
## Copyright (C) 2013 Lukáš Karas <[email protected]> | |
## | |
## Everyone is permitted to copy and distribute verbatim or modified | |
## copies of this license document, and changing it is allowed as long | |
## as the name is changed. |
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
package cz.karry; | |
import org.jboss.netty.bootstrap.ServerBootstrap; | |
import org.jboss.netty.buffer.ChannelBuffers; | |
import org.jboss.netty.channel.*; | |
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; | |
import org.jboss.netty.channel.socket.nio.NioWorkerPool; | |
import org.jboss.netty.handler.codec.http.*; | |
import org.jboss.netty.handler.stream.ChunkedInput; | |
import org.jboss.netty.handler.stream.ChunkedWriteHandler; |
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
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.Map; | |
import java.util.Queue; | |
import java.util.concurrent.Executor; | |
/** | |
* This Executor warrants task ordering for tasks with same key (key have to implement hashCode and equal methods correctly). | |
*/ | |
public class OrderingExecutor implements Executor{ |
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
diff --git a/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeBalancer.java b/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeBalancer.java | |
index 59d32ae..7937fbd 100644 | |
--- a/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeBalancer.java | |
+++ b/src/main/java/org/apache/hadoop/hdfs/server/datanode/VolumeBalancer.java | |
@@ -316,10 +316,7 @@ public class VolumeBalancer { | |
/* | |
* Generate the final name of the destination | |
*/ | |
- final File[] existingSubDirs = findSubdirs(leastUsedBlockSubdir); | |
- |
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
package io.netty.resolver.dns; | |
import io.netty.buffer.ByteBuf; | |
import io.netty.buffer.Unpooled; | |
import io.netty.channel.AddressedEnvelope; | |
import io.netty.channel.EventLoopGroup; | |
import io.netty.channel.nio.NioEventLoopGroup; | |
import io.netty.channel.socket.nio.NioDatagramChannel; | |
import io.netty.handler.codec.dns.*; | |
import io.netty.util.concurrent.Future; |
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
+ Step #10 - WayWayDataGenerator... | |
Module description: Merge ways into bigger ways | |
Module requires file 'distribution.dat' | |
Module requires file 'rawways.dat' | |
Module requires file 'rawturnrestr.dat' | |
Module provides temporary file 'wayway.tmp' | |
Module provides temporary file 'turnrestr.dat' | |
- Generate wayway.tmp... | |
- Reading type distribution... | |
- Reading turn restrictions... |
OlderNewer