示例#1
0
def _make_mrcluster(identifier):
    cluster_conf = conf.MR_CLUSTERS[identifier]
    return LiveJobTracker.from_conf(cluster_conf)
示例#2
0
文件: cluster.py 项目: Lt-Pone/hue
def _make_mrcluster(identifier):
  cluster_conf = conf.MR_CLUSTERS[identifier]
  return LiveJobTracker.from_conf(cluster_conf)
示例#3
0
 def jt(self):
   """Creates a LiveJobTracker object configured for this cluster."""
   if self._jt is None:
     self._jt = LiveJobTracker("localhost", self.jobtracker_thrift_port)
   return self._jt
示例#4
0
 def jt(self):
     if self._jt is None:
         self._jt = LiveJobTracker(self._fqdn, self.jt_thrift_port)
     return self._jt
示例#5
0
 def jt(self):
     if self._jt is None:
         self._jt = LiveJobTracker(self._fqdn, 0)
     return self._jt
示例#6
0
 def jt(self):
     """Returns a LiveJobTracker object configured for this cluster."""
     if self._jt is None:
         self._jt = LiveJobTracker(self._fqdn, self.jt_thrift_port)
     return self._jt