fixed problems with timing of HA creation and syntax errors in hive/hcat...

...alog