original_docstring: Identities needed for Cloudera Distribution including Hadoop
docstring: Identities needed for Cloudera Distribution including Hadoop
docstring_tokens: Identities needed for Cloudera Distribution including Hadoop
code: def cdh_identities(zone):
      """Identities needed for Cloudera Distribution including Hadoop"""
      smoke_user = ('cloudera-scm', 'user')
      identities = {
          'groups': set(),  # Groups with no users in them.
          'users': {
              'accumulo': ('accumulo', set()),
              'anonymous': ('anonymous', set()),
              'apache': ('apache', set()),
              'cloudera-scm': ('cloudera-scm', set()),
              'cmjobuser': ('cmjobuser', set()),
              'flume': ('flume', set()),
              'hbase': ('hbase', {'hadoop', 'supergroup'}),
              'hdfs': ('hdfs', {'hadoop', 'supergroup'}),
              'hive': ('hive', set()),
              'HTTP': ('HTTP', {'hadoop', 'supergroup'}),
              'httpfs': ('httpfs', set()),
              'hue': ('hue', set()),
              'impala': ('impala', {'hive'}),
              'kafka': ('kafka', set()),
              'keytrustee': ('keytrustee', set()),
              'kms': ('kms', set()),
              'kudu': ('kudu', set()),
              'llama': ('llama', set()),
              'mapred': ('mapred', {'hadoop', 'supergroup'}),
              'oozie': ('oozie', set()),
              'sentry': ('sentry', set()),
              'solr': ('solr', set()),
              'spark': ('spark', set()),
              'sqoop': ('sqoop', {'sqoop2'}),
              'sqoop2': ('sqoop2', {'sqoop'}),
              'yarn': ('yarn', {'hadoop', 'supergroup'}),
              'zookeeper': ('zookeeper', set()),
          },
          'proxy_users': {
              'flume': {smoke_user, ('hadoop', 'group')},
              'hive': {smoke_user, ('hadoop', 'group')},
              'HTTP': {smoke_user},
              'hue': {smoke_user, ('hadoop', 'group')},
              'impala': {smoke_user, ('hadoop', 'group')},
              'mapred': {smoke_user, ('hadoop', 'group')},
              'oozie': {smoke_user, ('hadoop', 'group')},
          },
      }
      if zone.lower() != 'system':
          identities['users']['admin'] = ('admin', set())
      return identities
code_tokens: def cdh_identities ( zone ) : smoke_user = ( 'cloudera-scm' , 'user' ) identities = { 'groups' : set ( ) , 'users' : { 'accumulo' : ( 'accumulo' , set ( ) ) , 'anonymous' : ( 'anonymous' , set ( ) ) , 'apache' : ( 'apache' , set ( ) ) , 'cloudera-scm' : ( 'cloudera-scm' , set ( ) ) , 'cmjobuser' : ( 'cmjobuser' , set ( ) ) , 'flume' : ( 'flume' , set ( ) ) , 'hbase' : ( 'hbase' , { 'hadoop' , 'supergroup' } ) , 'hdfs' : ( 'hdfs' , { 'hadoop' , 'supergroup' } ) , 'hive' : ( 'hive' , set ( ) ) , 'HTTP' : ( 'HTTP' , { 'hadoop' , 'supergroup' } ) , 'httpfs' : ( 'httpfs' , set ( ) ) , 'hue' : ( 'hue' , set ( ) ) , 'impala' : ( 'impala' , { 'hive' } ) , 'kafka' : ( 'kafka' , set ( ) ) , 'keytrustee' : ( 'keytrustee' , set ( ) ) , 'kms' : ( 'kms' , set ( ) ) , 'kudu' : ( 'kudu' , set ( ) ) , 'llama' : ( 'llama' , set ( ) ) , 'mapred' : ( 'mapred' , { 'hadoop' , 'supergroup' } ) , 'oozie' : ( 'oozie' , set ( ) ) , 'sentry' : ( 'sentry' , set ( ) ) , 'solr' : ( 'solr' , set ( ) ) , 'spark' : ( 'spark' , set ( ) ) , 'sqoop' : ( 'sqoop' , { 'sqoop2' } ) , 'sqoop2' : ( 'sqoop2' , { 'sqoop' } ) , 'yarn' : ( 'yarn' , { 'hadoop' , 'supergroup' } ) , 'zookeeper' : ( 'zookeeper' , set ( ) ) , } , 'proxy_users' : { 'flume' : { smoke_user , ( 'hadoop' , 'group' ) } , 'hive' : { smoke_user , ( 'hadoop' , 'group' ) } , 'HTTP' : { smoke_user } , 'hue' : { smoke_user , ( 'hadoop' , 'group' ) } , 'impala' : { smoke_user , ( 'hadoop' , 'group' ) } , 'mapred' : { smoke_user , ( 'hadoop' , 'group' ) } , 'oozie' : { smoke_user , ( 'hadoop' , 'group' ) } , } , } if zone . lower ( ) != 'system' : identities [ 'users' ] [ 'admin' ] = ( 'admin' , set ( ) ) return identities
short_docstring: Identities needed for Cloudera Distribution including Hadoop
short_docstring_tokens: Identities needed for Cloudera Distribution including Hadoop
comment: """Identities needed for Cloudera Distribution including Hadoop"""$SEP$# Groups with no users in them.