[ 
https://issues.apache.org/jira/browse/PIO-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Takako Shimamoto closed PIO-204.
--------------------------------
    Resolution: Duplicate

The bug is already fixed via 
[#507|https://github.com/apache/predictionio/pull/507] as a part of PIO-203.

> pio deploy --engine-instance-id doesn't work
> --------------------------------------------
>
>                 Key: PIO-204
>                 URL: https://issues.apache.org/jira/browse/PIO-204
>             Project: PredictionIO
>          Issue Type: Sub-task
>    Affects Versions: 0.14.0
>            Reporter: Takako Shimamoto
>            Priority: Major
>
> {code:sh}
> bash-4.4$ curl -XGET 'http://localhost:9600/'
> {
>   "name" : "09B4kBg",
>   "cluster_name" : "predictionio6",
>   "cluster_uuid" : "S6Dljs0MTPqg7Ivj_plewg",
>   "version" : {
>     "number" : "6.5.4",
>     "build_flavor" : "default",
>     "build_type" : "tar",
>     "build_hash" : "d2ef93d",
>     "build_date" : "2018-12-17T21:17:40.758843Z",
>     "build_snapshot" : false,
>     "lucene_version" : "7.5.0",
>     "minimum_wire_compatibility_version" : "5.6.0",
>     "minimum_index_compatibility_version" : "5.0.0"
>   },
>   "tagline" : "You Know, for Search"
> }
> bash-4.4$ curl -H "Content-Type: application/json" -XGET 
> http://localhost:9600/pio_meta_engine_instances/_search -d '
> {
>   "query" : {
>     "match_all" : {}
>   }
> }'
> {"took":188,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"pio_meta_engine_instances","_type":"engine_instances","_id":"AWhQ9y_8C4sx-GpWCc6N","_score":1.0,"_source":{"id":"AWhQ9y_8C4sx-GpWCc6N","status":"COMPLETED","startTime":"2019-01-15T10:03:22.275Z","endTime":"2019-01-15T10:03:37.235Z","engineId":"org.example.recommendation.RecommendationEngine","engineVersion":"6a2841579d2c44559cafedbf97d19cb57b37eec2","engineVariant":"default","engineFactory":"org.example.recommendation.RecommendationEngine","batch":"","env":{"PIO_ENV_LOADED":"1","PIO_STORAGE_REPOSITORIES_METADATA_NAME":"pio_meta","PIO_FS_BASEDIR":"/home/pio/.pio_store","PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS":"localhost","PIO_HOME":"/predictionio","PIO_FS_ENGINESDIR":"/home/pio/.pio_store/engines","PIO_STORAGE_SOURCES_LOCALFS_PATH":"/home/pio/.pio_store/models","PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE":"elasticsearch","PIO_STORAGE_REPOSITORIES_METADATA_SOURCE":"ELASTICSEARCH","PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE":"LOCALFS","PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME":"pio_event","PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME":"predictionio","PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME":"/vendors/elasticsearch","PIO_FS_TMPDIR":"/home/pio/.pio_store/tmp","PIO_STORAGE_REPOSITORIES_MODELDATA_NAME":"pio_model","PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE":"ELASTICSEARCH","PIO_CONF_DIR":"/predictionio/conf","PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS":"9200","PIO_STORAGE_SOURCES_LOCALFS_TYPE":"localfs"},"sparkConf":{"spark.executor.extraClassPath":"."},"dataSourceParams":"{\"\":{\"appName\":\"MyApp1\"}}","preparatorParams":"{\"\":{}}","algorithmsParams":"[{\"als\":{\"rank\":10,\"numIterations\":20,\"lambda\":0.01,\"seed\":3}}]","servingParams":"{\"\":{}}"}}]}}
> bash-4.4$ pio deploy --engine-instance-id AWhQ9y_8C4sx-GpWCc6N
> [WARN] [RestClient] request [PUT http://localhost:9600/pio_meta] returned 1 
> warnings: [299 Elasticsearch-6.5.4-d2ef93d "the default number of shards will 
> change from [5] to [1] in 7.0.0; if you wish to continue using the default of 
> [5] shards, you must manage this on the create index request or with an index 
> template" "Tue, 15 Jan 2019 10:24:14 GMT"]
> [WARN] [RestClient] request [PUT 
> http://localhost:9600/pio_meta/_mapping/engine_instances] returned 1 
> warnings: [299 Elasticsearch-6.5.4-d2ef93d "[_all] is deprecated in 6.0+ and 
> will be removed in 7.0. As a replacement, you can use [copy_to] on mapping 
> fields to create your own catch all field." "Tue, 15 Jan 2019 10:24:14 GMT"]
> [ERROR] [Engine$] Invalid engine instance ID AWhQ9y_8C4sx-GpWCc6N. Aborting.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to