'From XML and job.properties HDFS files'

def get_external_parameters(self, application_path):

    deployment_dir = os.path.dirname(application_path)
    xml = self.fs.do_as_user(self.user, self.fs.read, application_path, 0, (1 * (1024 ** 2)))
    properties_file = (deployment_dir + '/job.properties')
    if self.fs.do_as_user(self.user, self.fs.exists, properties_file):
        properties = self.fs.do_as_user(self.user, self.fs.read, properties_file, 0, (1 * (1024 ** 2)))
    else:
        properties = None
    return self._get_external_parameters(xml, properties)
