Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

cb 1.01 error

$
0
0

Hi,
Been trying to create a test cluster on aws. Followed the pdf instructions on the document from 08/05/2015.
The creation of a mini aws cluster fails with the following stacktrace snippet :

ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
cloudbreak_1 | at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
cloudbreak_1 | Caused by: com.sequenceiq.cloudbreak.core.CloudbreakSecuritySetupException: Failed to read file: /certs/stack-101/ca.pem

Looking at the files in cert folder, ca.pem is missing.
It is unclear to me in which stage the file is to be placed there, from looking in the code of tls-setup.sh

cloudbreak-generate-cert() {
cloudbreak-config
if [ -f "${CBD_CERT_ROOT_PATH}/client.pem" ] && [ -f "${CBD_CERT_ROOT_PATH}/client-key.pem" ]; then
debug "Cloudbreak certificate and private key already exist, won't generate new ones."
else
info "Generating Cloudbreak client certificate and private key in ${CBD_CERT_ROOT_PATH}."
docker run --rm -v ${CBD_CERT_ROOT_PATH}:/certs ehazlett/cert-tool:${DOCKER_TAG_CERT_TOOL} -d /certs -o=local &> /dev/null
owner=$(ls -od ${CBD_CERT_ROOT_PATH} | tr -s ' ' | cut -d ' ' -f 3)
[[ "$owner" != "$(whoami)" ]] && sudo chown -R $(whoami):$(id -gn) ${CBD_CERT_ROOT_PATH}
cat "${CBD_CERT_ROOT_PATH}/ca.pem" >> "${CBD_CERT_ROOT_PATH}/client.pem"
mv "${CBD_CERT_ROOT_PATH}/ca.pem" "${CBD_CERT_ROOT_PATH}/client-ca.pem"
mv "${CBD_CERT_ROOT_PATH}/ca-key.pem" "${CBD_CERT_ROOT_PATH}/client-ca-key.pem"
debug "Certificates successfully generated."
fi
}

It seems reasonable that there is no file by that name.

I would like also to suggest some modifications to the pdf to clarify some points for future users but could not find the document on github to pull request.


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>