1
データベースからインポートするようにSolrインスタンスを設定しようとしています。 Apache Documentationで説明したようにこれまでのところ、私はすべてを構成してきましたが、一貫してこのエラーを取得:Solrデータのインポート - データベースからインポートするときにInvalidConnectionAttributeExceptionを取得します。
Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server
time zone value 'EDT' is unrecognized or represents more than one time zone.
You must configure either the server or JDBC driver (via the serverTimezone
configuration property) to use a more specifc time zone value if you want to
utilize time zone support.
これは私がinit.dスクリプトでSOLR_TIMEZONE="UTC"
を有効にして-Duser.timezone=UTC
がps auxww | grep solr
の結果に存在することを確認するにもかかわらずです。
これは私のDataImportHandlerの設定です:
<dataConfig>
<dataSource type = "JdbcDataSource"
driver = "com.mysql.jdbc.Driver"
url = "jdbc:mysql://10.0.0.141:3306/dev"
user = "dev"
password = "local_user" />
<document>
<entity name = 'id' query = "select * from index_document;" />
</document>
</dataConfig>
、それはSolrの管理データのインポート画面に表示されます。これについての奇妙なことは、私がインポートしているdbテーブルに日付がないことです。