Skip to content

Instantly share code, notes, and snippets.

for (int i = 0; i < 2000; i++) {
SolrServer serv = new CommonsHttpSolrServer(
"http://10.10.6.106:8983/solandra/testmulti.test-" + i);
List<SolrInputDocument> sD = new ArrayList<SolrInputDocument>();
for (int j = 0; j < 1000; j++) {
SolrInputDocument doc = new SolrInputDocument();
doc.addField("title", "example.com");
String id = UUID.randomUUID().toString();
<field name="text" type="text" indexed="true" stored="true" termPositions="true" />
@ceocoder
ceocoder / gist:981354
Created May 19, 2011 18:04
add at the end of /etc/security/limits.conf
hadoop soft memlock unlimited
hadoop hard memlock unlimited
hadoop soft nofile 50000
hadoop hard nofile 50000
diff --git a/README.md b/README.md
index 0a0d259..6f4b885 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ From the Solandra base directory:
mkdir /tmp/cassandra-data
ant
- cd solandra-app; ./start-solandra.sh
+ cd solandra-app; bin/solandra
for token in `python get_initial_tokens.py 10`
do
echo initial_token: $token
sed 's,initial_token:,initial_token:$token' ../resources/cassandra.yaml > $token.yaml
done
Problem accessing /solandra/schema/emailreal/select. Reason:
INTERNAL_SERVER_ERROR
Caused by:
java.lang.NullPointerException
at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:160)
at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:117)
at solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:90)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
#Set to true if you want solandra to compress fields + meta data
#This will size on disk at the cost of indexing speed
#Compression is google snappy
solandra.compression = true
#The consistency level of solandra reads and writes
solandra.consistency = QUORUM
#The number of milliseconds solandra will wait before
#Set to true if you want solandra to compress fields + meta data
#This will size on disk at the cost of indexing speed
#Compression is google snappy
solandra.compression = true
#The consistency level of solandra reads and writes
solandra.consistency = QUORUM
# Cluster Settings
cluster:
name: skunkcluster
# Gateway Settings
#gateway:
# recover_after_nodes: 1
# recover_after_time: 5m
# expected_nodes: 2
curl -XPUT 'http://localhost:9200/all/_settings' -d '
{
"index" : {
"merge.policy.merge_factor" : 30
}
}'