Skip to content

Instantly share code, notes, and snippets.

View nsoft's full-sized avatar

Patrick (Gus) Heck nsoft

View GitHub Profile
@nsoft
nsoft / ZkStateReader.java
Created November 3, 2017 02:50
just zk state reader as patched in earlier gist
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@nsoft
nsoft / SOLR-11487-watch.patch
Last active November 3, 2017 02:49
SOLR-11487-watch.patch -- Patch vs master as of ~9pm Nov 2 2017
Index: solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java (date 1509475828000)
+++ solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java (date 1508764667000)
@@ -21,9 +21,7 @@
import java.util.HashSet;
import java.util.List;
@nsoft
nsoft / cloud.sh
Last active September 16, 2019 04:09
solr cloud dev cluster script
#!/bin/bash
# The goal of this script is to allow quick setup of a blank local
# cluster for development testing without needing to erase or
# interfere with previous testing. It also enables redeployment of
# the code for such testing clusters without erasing the data previously
# indexed. It is NOT for production use.
#
# This is also NOT meant to be run from within a lucene-solr working copy
# typical usage is to copy it out to a separate workspace and edit
@nsoft
nsoft / gist:eb1c956246f7a373f203d9b6d4c94cce
Created July 5, 2017 03:10
Cassandra jboss-logging dependency (per gradle)
+--- org.apache.cassandra:cassandra-all:3.11.0-JJ
| +--- org.xerial.snappy:snappy-java:1.1.1.7
| +--- net.jpountz.lz4:lz4:1.3.0
| +--- com.ning:compress-lzf:0.8.4 -> 1.0.2
| +--- com.google.guava:guava:18.0 -> 19.0
| +--- commons-cli:commons-cli:1.1 -> 1.3.1
| +--- commons-codec:commons-codec:1.9
| +--- org.apache.commons:commons-lang3:3.1
| +--- org.apache.commons:commons-math3:3.2
| +--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4
@Override
public ElasticNodeSender build() {
ElasticNodeSender obj = getObj();
String home = Main.JJ_DIR + System.getProperty("file.separator") + obj.nodeName;
new File(home).mkdirs();
obj.settings = Settings.settingsBuilder()
.put("node.name", obj.nodeName)
.put("path.home", home)
.build();
obj.node = new NodeBuilder()