2016-08-01 10 views
0

Cassandraの新機能です。私は検索機能としてDSEでSolrを使用しようとしています。私は下のコマンドを使用しているために自分のテーブルにsolr coreを作成しようとしています。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) 

私は非常に多くのオプションをしようとしているが、コアを作成することができませんでした。

+0

どのDSEバージョンを使用していますか、そのフィールドのCQLタイプは何ですか? tradebees_dev.yf_product_booksテーブル定義を貼り付けることができれば、素晴らしい情報になります。 – Bereng

+0

@Bereng DSEバージョン: - 5.0.1のOpsCenter: - 6.0.1表の定義:: - ( ID UUID PRIMARY KEY、 抽象的なテキストを表tradebees_dev.yf_product_booksをCREATE、 著者テキスト、 category_codeテキスト、 cid_codeテキスト、 clickCountはint型、 combo_book_id int型、 のcreated_atタイムスタンプ、 CURRENCY_CODEテキスト、 寸法テキスト、 版テキスト、 エディタのテキスト、 freight_id int型、 generaleditorテキスト、 –

+0

イラストレーターのテキスト、 のImagePathテキスト、 inquirycount int型、 is_copyrightテキスト、 is_orderallowedテキスト、 is_presaleテキスト、 is_showlinkテキスト、 is_showquantityテキスト、 ISBNテキスト、 LANGUAGE_CODEテキスト、 longtitleテキスト、 market_codeテキスト、 marketinglinkテキスト、 marketplace_codeテキスト、 medium_codeテキスト、 –

答えて

0

CQLタイプのフィールドdateは、自動リソース生成がそのCQLフィールドタイプをまだサポートしていないため、そのエラーメッセージを表示します。

修正プログラムがリリースされるまで、それらのユーザーはtimestampに変更できます。

+0

[root @ DSE〜]#dsetool create_core keyspace_name.table_name generateResources = ture org.apache.solr.common.SolrException:無効なブール値:ture \t at 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で \t(SearchDseToolCommands.java:1060で \t) com.datastax.bdp.tools.SearchDseToolCommands.access $ 300(SearchDse –

+0

ToolCommands.java:88)で\t com.datastax.bdp.tools.SearchDseToolCommands $ CreateCore.executeで \t(SearchDseToolCommands.java:390) \t、com.datastax.bdp.tools.DseTool.run(DseTool.java:274) \t at com。datastax.bdp.tools.DseTool.run(DseTool.java:203) \t com.datastax.bdp.tools.DseTool.main(DseTool.java:309) [root @ DSE〜]#dsetool create_core tradebees_dev。 –

+0

yf_product_booksのgenerateResources =トゥーレ org.apache.solr.common.SolrException:無効なブール値:トゥーレ \t org.apache.solr.common.util.StrUtils.parseBool(StrUtils.java:236)でorg.apacheで \t com.datastax.bdp.tools.SearchDseToolCommandsで.solr.common.params.SolrParams.getBool(SolrParams.java:96) com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCoreで\t(SearchDseToolCommands.java:1060) \t .accessの$ 300(SearchDseToolCommands.java:88) com.datastax.bdp.tools.SearchDseToolCommands $クレア –

関連する問題