def __init__(self):
     # Python 2.x
     super(CheckTachyon, self).__init__()
     # Python 3.x
     # super().__init__()
     name = ""
     default_port = None
     if re.search("master", prog, re.I):
         name = "Master"
         default_port = 19999
     elif re.search("worker|slave", prog, re.I):
         name = "Worker"
         default_port = 30000
     self.name = space_prefix(name)
     self.default_port = default_port
 def __init__(self):
     # Python 2.x
     super(CheckTachyon, self).__init__()
     # Python 3.x
     # super().__init__()
     name = ''
     default_port = None
     if re.search('master', prog, re.I):
         name = 'Master'
         default_port = 19999
     elif re.search('worker|slave', prog, re.I):
         name = 'Worker'
         default_port = 30000
     self.name = space_prefix(name)
     self.default_port = default_port
 def __init__(self):
     # Python 2.x
     super(CheckTachyonVersion, self).__init__()
     # Python 3.x
     # super().__init__()
     self.name = ''
     if re.search('master', prog, re.I):
         self.name = 'Master'
         self.default_port = 19999
     elif re.search('worker|slave', prog, re.I):
         self.name = 'Worker'
         self.default_port = 30000
     else:
         self.default_port = None
     self.name = space_prefix(self.name)
     self.software = 'Tachyon{0}'.format(self.name)
 def __init__(self):
     # Python 2.x
     super(CheckTachyonVersion, self).__init__()
     # Python 3.x
     # super().__init__()
     self.name = ''
     if re.search('master', prog, re.I):
         self.name = 'Master'
         self.default_port = 19999
     elif re.search('worker|slave', prog, re.I):
         self.name = 'Worker'
         self.default_port = 30000
     else:
         self.default_port = None
     self.name = space_prefix(self.name)
     self.software = 'Tachyon{0}'.format(self.name)
Example #5
0
 def __init__(self):
     # Python 2.x
     super(CheckSparkVersion, self).__init__()
     # Python 3.x
     # super().__init__()
     name = ''
     if re.search('master', prog, re.I):
         name = 'Master'
         self.default_port = 8080
     elif re.search('worker|slave', prog, re.I):
         name = 'Worker'
         self.default_port = 8081
     else:
         self.default_port = None
     name = space_prefix(name)
     self.software = 'Spark{0}'.format(name)
 def __init__(self):
     # Python 2.x
     super(CheckTachyon, self).__init__()
     # Python 3.x
     # super().__init__()
     self.software = 'Tachyon'
     name = ''
     default_port = None
     if re.search('master', prog, re.I):
         name = 'Master'
         default_port = 19999
     elif re.search('worker|slave', prog, re.I):
         name = 'Worker'
         default_port = 30000
     self.name = space_prefix(name)
     self.default_port = default_port
 def __init__(self):
     # Python 2.x
     super(CheckTachyonVersion, self).__init__()
     # Python 3.x
     # super().__init__()
     self.software = 'Tachyon'
     name = ''
     default_port = None
     if re.search('master', prog, re.I):
         name = 'Master'
         default_port = 19999
     elif re.search('worker|slave', prog, re.I):
         name = 'Worker'
         default_port = 30000
     self.name = space_prefix(name)
     self.default_port = default_port
     self.msg = '{0} version unknown - no message defined'.format(self.software)