Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 01-07-2015 01:15 AM - edited 09-16-2022 02:17 AM
Created 01-07-2015 07:34 AM
Checkout lines 84 and 85 in accumulo.sh script. It replaces the hostname in the accumulo principal by _HOST. The script finds out the name of the host by running "hostname". Does that command return the full hostname on your hosts?
Created 01-07-2015 11:59 PM
Ah, this got me on the right track. I've switched the 'hostname' command for 'hostname -f', redeployed the CSD jar and it works now.
I think I'm a bit confused about how this works then. CM deploys a fresh config, it supplies the principal name to this initialisation script (presumably it's got the right one, as CM is aware of the keytabs it's distributing). That principal is regexed to remove the hostname and replace it with the template value of _HOST. Accumulo starts and replaces _HOST with the principal again.
I guess the problem here is that 'hostname' returns an unqualified hostname whereas CM knows the server running the service by is FQDN.
Maybe I'm missing something, but it seems like all the switching of hostnames an template values is what's causing the problem here.
Thanks for pointing me in the right direction.
Created 01-07-2015 01:29 AM
Created 01-07-2015 07:34 AM
Checkout lines 84 and 85 in accumulo.sh script. It replaces the hostname in the accumulo principal by _HOST. The script finds out the name of the host by running "hostname". Does that command return the full hostname on your hosts?
Created 01-07-2015 11:59 PM
Ah, this got me on the right track. I've switched the 'hostname' command for 'hostname -f', redeployed the CSD jar and it works now.
I think I'm a bit confused about how this works then. CM deploys a fresh config, it supplies the principal name to this initialisation script (presumably it's got the right one, as CM is aware of the keytabs it's distributing). That principal is regexed to remove the hostname and replace it with the template value of _HOST. Accumulo starts and replaces _HOST with the principal again.
I guess the problem here is that 'hostname' returns an unqualified hostname whereas CM knows the server running the service by is FQDN.
Maybe I'm missing something, but it seems like all the switching of hostnames an template values is what's causing the problem here.
Thanks for pointing me in the right direction.