Skip to content

Instantly share code, notes, and snippets.

#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
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)
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
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
@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
<field name="text" type="text" indexed="true" stored="true" termPositions="true" />
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();
private final ConcurrentMap<String, ShardInfo> indexShards = new MapMaker().makeMap();
private static final Logger logger = Logger.getLogger(CassandraIndexManager.class);
private class ShardInfo
{
public final String indexName;
public final long ttl = System.currentTimeMillis()
+ (expirationTime * 1000) - 1000;
public final ConcurrentSkipListMap<Integer, NodeInfo> shards = new ConcurrentSkipListMap<Integer, NodeInfo>();
#Set to true if you want solandra to compress fields + meta data
#This will size on disk at the cost of indexing speed
solandra.compression = false
#The consistency level of solandra reads and writes
solandra.consistency = ONE
#The number of milliseconds solandra will wait before
#checking to see if it's cache needs to be invalidated
HTTP ERROR 500
Problem accessing /solandra/emailreal.user-new-3062/select. Reason:
Field cache data missing
java.io.IOException: Field cache data missing
at org.apache.lucene.search.LucandraFieldCache.getFieldCacheEntries(LucandraFieldCache.java:852)
at org.apache.lucene.search.LucandraFieldCache.access$000(LucandraFieldCache.java:36)
at org.apache.lucene.search.LucandraFieldCache$LongCache.createValue(LucandraFieldCache.java:625)