bookkeeper docker启动环境变量清单

bookkeeper docker启动环境变量清单,第1张

bookkeeper docker启动环境变量清单

清单如下:
echo “Environment Vars for bookie:”
echo “”
echo " [metadata service]"
echo " BK_zkServers is $BK_zkServers"
echo " BK_CLUSTER_ROOT_PATH is $BK_CLUSTER_ROOT_PATH"
echo " BK_metadataServiceUri is $BK_metadataServiceUri"
echo “”
echo " [bookie]"
echo " BK_bookiePort bookie service port is $BK_bookiePort"
echo " BK_DATA_DIR is $BK_DATA_DIR"
echo " BK_journalDirectory is ${BK_journalDirectory}"
echo " BK_ledgerDirectories are ${BK_ledgerDirectories}"
echo " BK_indexDirectories are ${BK_indexDirectories}"
echo “”
echo " [bookie http]"
echo " BK_httpServerEnabled is ${BK_httpServerEnabled}"
echo " BK_httpServerPort is ${BK_httpServerPort}"
echo “”
echo " [dlog]"
echo " BK_dlogRootPath is $BK_dlogRootPath"
echo “”
echo " [stream storage]"
echo " BK_STREAM_STORAGE_ROOT_PATH is ${BK_STREAM_STORAGE_ROOT_PATH}"
echo " BK_NUM_STORAGE_ConTAINERS is ${BK_NUM_STORAGE_CONTAINERS}"
echo " BOOKIE_GRPC_PORT is ${BOOKIE_GRPC_PORT}"

docker启动需要设置BOOKIE_HTTP_PORT或者BK_httpServerPort ,否则脚本有小错误,原因是:

  • docker启动是通过python scripts/apply-config-from-env.py ${BK_HOME}/conf 重新生成了conf
  • 调用python前的comon.sh 中使用BOOKIE_HTTP_PORT为默认值但BOOKIE_HTTP_PORT本身是为空的
export BK_httpServerPort=${BK_httpServerPort:-${BOOKIE_HTTP_PORT}}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5521664.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-13
下一篇 2022-12-13

发表评论

登录后才能评论

评论列表(0条)

保存