我正在尝试在 predix 中部署 elasticsearch,我尝试使用以下 list 将下载的 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 config中设置端口和主机如下
http.port: ${VCAP_APP_PORT}
network.host: ${VCAP_APP_HOST}
但没有运气。
有人可以指出在 predix 上部署 elasticsearch 的解决方案吗?
最佳答案
在较新的 CF 版本上,您应该使用 CF_INSTANCE_ip* 变量而不是已弃用的 VCAP_APP_* DEAD 变量。
更多关于 https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html
关于elasticsearch - 如何在predix中部署elasticsearch?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42970985/