Backport HDP 2.1 shim to 5.1

Didn't add any references to the shim in big-data-plugin project, to be done according to SP-1403