我正在尝试在predix中部署elasticsearch,我尝试使用以下清单将下载的elasticsearch文件夹推送到predix中。
---
applications:
- name: elastic-search-test3
buildpack: java_buildpack
# path: target/elstic-search-test-1.0.0.jar
command: elasticsearch-5.2.2/bin/elasticsearch -f
#timeout : 180我得到错误,如端口不应该是硬编码,应该使用$PORT。
然后,我尝试在elasticsearch配置中设置端口和主机,如下所示
http.port: ${VCAP_APP_PORT}
network.host: ${VCAP_APP_HOST}但没那么走运。
有人能指出在predix上部署elasticsearch的解决方案吗?
发布于 2017-03-31 22:26:24
在较新的CF版本中,您应该使用CF_INSTANCE_*变量,而不是折旧的VCAP_APP_* DEA变量。
有关https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html的更多信息
https://stackoverflow.com/questions/42970985
复制相似问题