Set credentials for secure HDFS environments

Should work as before on non-secure environments.