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
<?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> |
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
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 |
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
// 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); | |
} |
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
// 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); | |
} |
NewerOlder