extlookup2hiera: 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 Debian possible default full paths are:

/usr/bin/extlookup2hiera - from package: puppet-common

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