2016-08-01 8 views
0

Ich bin neu in Cassandra. Ich versuche, Solr mit DSE für die Suchfunktion zu verwenden. Ich versuche, Solr-Core auf meinem Tisch zu erstellen, für den ich unter Befehl verwende.So konfigurieren Sie die Solr-Konfiguration mit DSE

dsetool create_core tradebees_dev.yf_product_books generateResources=true 

Aber ich bin unten Fehlermeldung bekommen:

You requested the core to be created with reindex=false. Preexisting data will not be searchable via DSE Search until you reindex. 
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Type org.apache.cassandra.db.marshal.SimpleDateType is not supported with automatic Solr schema generation. Specify 'lenient: true' in your resource generation options to ignore unsupported columns. 
    at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:665) 
    at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:303) 
    at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:294) 
    at com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore(SearchDseToolCommands.java:1117) 
    at com.datastax.bdp.tools.SearchDseToolCommands.access$300(SearchDseToolCommands.java:88) 
    at com.datastax.bdp.tools.SearchDseToolCommands$CreateCore.execute(SearchDseToolCommands.java:390) 
    at com.datastax.bdp.tools.DseTool.run(DseTool.java:274) 
    at com.datastax.bdp.tools.DseTool.run(DseTool.java:203) 
    at com.datastax.bdp.tools.DseTool.main(DseTool.java:309) 

Danach war ich so viel Option versucht, aber nicht in der Lage Kern zu schaffen.

+0

Welche DSE-Version verwenden Sie und welcher CQL-Typ ist dieses Feld? Wenn Sie die Tabellendefinition tradebees_dev.yf_product_books einfügen könnten, wäre das eine gute Information. – Bereng

+0

@Bereng DSE Version: - 5.0.1 OpsCenter: - 6.0.1 Tabellendefinition :: - TABLE tradebees_dev.yf_product_books CREATE ( id UUID PRIMARY KEY, abstrakter Text, Autor Text, category_code Text, cid_code Text, clickcount int, combo_book_id int, created_at Zeitstempel, currency_code Text, Dimensionen Text, edition text, Editor Text, freight_id int, generaleditor Text, –

+0

Illustrator Text, imagepath Text, inquirycount int, is_copyright Text, is_orderallowed Text, is_presale Text, is_showlink Text, is_showquantity Text, ISBN Text, language_code Text, longtitle Text, market_code Text, marketinglink Text, marketplace_code Text, medium_code Text, –

Antwort

0

Ihre Felder des CQL-Typs date werden Ihnen diese Fehlermeldung geben, da die automatische Ressourcengenerierung diesen CQL-Feldtyp noch nicht unterstützt.

Sie können sie in timestamp ändern, damit sie funktionieren, bis ein Fix veröffentlicht wird.

+0

[root @ DSE ~] # dsetool create_core keyspace_name.table_name generateResources = ture org.apache.solr.common.SolrException: ungültige Booleschen Wert: ture \t bei org.apache.solr.common.util.StrUtils.parseBool (StrUtils .java-: 236) \t bei org.apache.solr.common.params.SolrParams.getBool (SolrParams.java:96) \t bei com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore (SearchDseToolCommands.java:1060) \t bei com.datastax.bdp.tools.SearchDseToolCommands.access $ 300 (SearchDse –

+0

ToolCommands.java:88) \t bei com.datastax.bdp.tools.SearchDseToolCommands $ CreateCore.execute (SearchDseToolCommands.java:390) \t bei com.datastax.bdp.tools.DseTool.run (DseTool.java:274) \t bei com.datastax.bdp.tools.DseTool.run (DseTool.java:203) \t unter com.datastax.bdp.tools.DseTool.main (DseTool.java309) [root @ DSE ~] # dsetool create_core tradebees_dev. –

+0

yf_product_books generateResources ture = org.apache.solr.common.SolrException: invalid boolean value: ture \t bei org.apache.solr.common.util.StrUtils.parseBool (StrUtils.java:236) \t bei org.apache .solr.common.params.SolrParams.getBool (SolrParams.java:96) \t bei com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore (SearchDseToolCommands.java:1060) \t bei com.datastax.bdp.tools.SearchDseToolCommands .access $ 300 (SearchDseToolCommands.java:88) \t bei com.datastax.bdp.tools.SearchDseToolCommands $ Crea –

Verwandte Themen