Skip to content

Instantly share code, notes, and snippets.

@svzdvd
svzdvd / solr.xml
Last active December 14, 2015 11:48
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/data/solr/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/data/solr" override="true" />
</Context>
@svzdvd
svzdvd / 01_centosckan_packages.sh
Created March 4, 2013 11:15
CKAN 1.8 setup on Centos 6.3
yum install -y sudo
yum groupinstall -y "Development Tools"
yum install -y kernel-devel
yum install -y java-1.6.0-openjdk
yum install -y java-1.6.0-openjdk-devel
yum install -y tomcat6
yum install -y xalan-j2
yum install -y postgresql postgresql-server postgresql-devel
yum install -y mercurial git subversion
@svzdvd
svzdvd / gist:1957356
Created March 2, 2012 09:45
ColumnStore | Import data from a tab-separated file
// create a column store instance in a new empty directory:
ColumnStore columnStore = new ColumnStore("/path/to/mycstore");
// get the column store table you want to use
TableDefinition tableDef = columnStore.getTableDefinition("udr");
if (tableDef == null) {
// if the table doesn't exists create a new table using a configuration file:
tableDef = new TableDefinition("udr", new File("udr.cfg"), 5000000);
tableDef = columnStore.addTableDefinition(tableDef);
}
@svzdvd
svzdvd / gist:1957234
Created March 2, 2012 09:33
ColumnStore | Import data from a JDBC Connection
// create a column store instance in a new empty directory:
ColumnStore columnStore = new ColumnStore("/path/to/mycstore");
// get the column store table you want to use
TableDefinition tableDef = columnStore.getTableDefinition("udr");
if (tableDef == null) {
// if the table doesn't exists create a new table using a configuration file:
tableDef = new TableDefinition("udr", new File("udr.cfg"), 5000000);
tableDef = columnStore.addTableDefinition(tableDef);
}