【问题标题】:How to set up Solr configuration with DSE如何使用 DSE 设置 Solr 配置
【发布时间】:2016-12-06 03:16:14
【问题描述】:

我是 Cassandra 的新手。我正在尝试将 Solr 与 DSE 一起用于搜索功能。我正在尝试在我的桌子上创建 solr 核心,因为我正在使用以下命令。

dsetool create_core tradebees_dev.yf_product_books generateResources=true

但我收到以下错误消息:

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)

在此之后,我尝试了很多选项,但无法创建核心。

【问题讨论】:

  • 您使用的是什么 DSE 版本以及该字段是什么 CQL 类型?如果您可以粘贴 tradebees_dev.yf_product_books 表定义,那将是很好的信息。
  • @Bereng DSE 版本 :- 5.0.1 OpsCenter :- 6.0.1 表定义 ::- CREATE TABLE tradebees_dev.yf_product_books ( id uuid PRIMARY KEY, abstract text, author text, category_code text, cid_code text , clickcount int, combo_book_id int, created_at timestamp, currency_code text, dimensions text, edition text, editor text, shipping_id int, generaleditor text,
  • illustrator 文本、图像路径文本、inquirycount int、is_copyright 文本、is_orderallowed 文本、is_presale 文本、is_showlink 文本、is_showquantity 文本、isbn 文本、language_code 文本、longtitle 文本、market_code 文本、marketinglink 文本、marketplace_code 文本、 medium_code 文本,
  • medium_code text,on_sell int,ordercount int,otherfield text,otherimg text,pages int,presale_date date,presale_price decimal,price decimal,pricetype_code text,pubcountry_code text,pubdate text,publisher_code text,quantity int, quantity_unit_code 文本,quantity_unit_size int,sales_status text,samplelink text,series text,sku text,status_code text,status_end_date date,status_related_price decimal,status_start_date date,thumb text,title text,translator text,unit text,updated_at timestamp,user_id int,weight float ,weight_unit_code 文本,word_count 文本)
  • @Bereng 只需检查一下......任何建议的方法来克服这个问题。

标签: solr cassandra datastax-enterprise


【解决方案1】:

您的 CQL 类型 date 的字段将向您显示错误消息,因为自动资源生成尚不支持该 CQL 字段类型。

您可以将它们更改为 timestamp 以便它们在修复发布之前正常工作。

【讨论】:

  • [root@DSE ~]# dsetool create_core keyspace_name.table_name generateResources=ture org.apache.solr.common.SolrException:无效的布尔值:在 org.apache.solr.common.util.StrUtils .parseBool(StrUtils.java:236) 在 org.apache.solr.common.params.SolrParams.getBool(SolrParams.java:96) 在 com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore(SearchDseToolCommands.java:1060) 在com.datastax.bdp.tools.SearchDseToolCommands.access$300(SearchDse
  • ToolCommands.java:88) 在 com.datastax.bdp.tools.SearchDseToolCommands$CreateCore.execute(SearchDseToolCommands.java:390) 在 com.datastax.bdp.tools.DseTool.run(DseTool. java:274) 在 com.datastax.bdp.tools.DseTool.run(DseTool.java:203) 在 com.datastax.bdp.tools.DseTool.main(DseTool.java:309) [root@DSE ~]# dsetool create_core tradebees_dev.
  • yf_product_books generateResources=ture org.apache.solr.common.SolrException:无效的布尔值:在 org.apache.solr.common.util.StrUtils.parseBool(StrUtils.java:236) 在 org. .apache.solr.common.params.SolrParams.getBool(SolrParams.java:96) 在 com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore(SearchDseToolCommands.java:1060) 在 com.datastax.bdp.tools.SearchDseToolCommands.access com.datastax.bdp.tools.SearchDseToolCommands$Crea 上 $300(SearchDseToolCommands.java:88)
  • teCore.execute(SearchDseToolCommands.java:390) 在 com.datastax.bdp.tools.DseTool.run(DseTool.java:274) 在 com.datastax.bdp.tools.DseTool.run( DseTool.java:203) 在 com.datastax.bdp.tools.DseTool.main(DseTool.java:309) 我将日期更改为时间戳,但仍然遇到同样的问题。
  • 我在本地主机的地方使用 IP 地址。是否必须在某个特定位置创建核心.. 你能告诉我我是否需要对配置文件进行任何更改。
猜你喜欢
  • 1970-01-01
  • 2011-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-02-06
  • 2016-09-03
  • 2014-05-06
相关资源
最近更新 更多