def create_hadoopcli_client():
 version = hdfs_config.get_configured_hadoop_version()
 if (version == 'cdh4'):
  return HdfsClient()
 elif (version == 'cdh3'):
  return HdfsClientCdh3()
 elif (version == 'apache1'):
  return HdfsClientApache1()
 else:
  raise ValueError('Error: Unknown version specified in Hadoop versionconfiguration parameter')

def create_hadoopcli_client ( ) : version = hdfs_config . get_configured_hadoop_version ( ) if ( version == 'cdh4' ) : return HdfsClient ( ) elif ( version == 'cdh3' ) : return HdfsClientCdh3 ( ) elif ( version == 'apache1' ) : return HdfsClientApache1 ( ) else : raise ValueError ( 'Error: Unknown version specified in Hadoop versionconfiguration parameter' )
given that we want one of the hadoop cli clients .