Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"type_mapping" format date time doesn't work??? #983

Open
YangFangXin opened this issue Apr 8, 2020 · 0 comments
Open

"type_mapping" format date time doesn't work??? #983

YangFangXin opened this issue Apr 8, 2020 · 0 comments

Comments

@YangFangXin
Copy link

YangFangXin commented Apr 8, 2020

Hello
my Configuration like this:

`echo '{
"type" : "jdbc",
"jdbc" : {
"elasticsearch.cluster":"my-application",
"url" : "jdbc:mysql://10.179.38.6:3306/mammon",
"user" : "root",
"password" : "123456",
"sql" : "select * from '${table}'",
"elasticsearch" : {
"host" : "'${esHost}'",
"port" : "'${esTcpPort}'"
},
"index" : "'${esIndex}'",
"type" : "'${table}'",
"type_mapping":{
"'${table}'":{
"properties": {
"to_account_time": {
"type": "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"created_at": {
"type": "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"updated_at": {
"type": "date",
"format" : "yyyy-MM-dd HH:mm:ss"
}
}
}
}

}

}' | java
-cp "${lib}/*"
-Dlog4j.configurationFile=${bin}/log4j2.xml
org.xbib.tools.Runner
org.xbib.tools.JDBCImporter`

i want to format this three date Type,but it doesn't worked,still
"format" : "strict_date_optional_time||epoch_millis"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant