hiera: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/hiera - from package: hiera

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/hiera - from package: hiera

You may install the required package with command apt-get install {package}
Error in other languages:
hiera: bevel nie gevind nie
hiera: comandă negăsită
hiera: comando não encontrado
hiera: commande introuvable
hiera: command not found
hiera: käsku ei ole
hiera: không tìm thấy lệnh
hiera: komanda nerasta
hiera: Kommando nicht gefunden.
hiera: kommandot finns inte
hiera: komut yok
hiera: nie znaleziono polecenia
hiera: níor aimsíodh an t-ordú
hiera: no se encontró la orden
hiera: no s'ha trobat l'ordre
hiera: opdracht niet gevonden
hiera: parancs nem található
hiera: perintah tidak ditemukan
hiera: príkaz nenájdený
hiera: příkaz nenalezen
hiera: команда не найдена
hiera: командата не е открита
hiera: 命令找不到
hiera: コマンドが見つかりません