def main():
  common.setup()
  jobtracker_port = setup_tunnel(util.name_to_ip(cfg.hadoop_jobtracker), 50030)
  namenode_port = setup_tunnel(util.name_to_ip(cfg.hadoop_namenode), 50070)
  print
  print ('ssh tunnels are running in the background to provide access to the '
         'Hadoop web interface. You can close the tunnels by killing the '
         'ssh process responsible. "ps aux | grep ssh" should list processes '
         'matching the commands indicated above.')
  print
  print '*** JobTracker: http://localhost:{0}'.format(jobtracker_port)
  print '*** NameNode: http://localhost:{0}'.format(namenode_port)
Esempio n. 2
0
def main():
    common.setup()
    jobtracker_port = setup_tunnel(util.name_to_ip(cfg.hadoop_jobtracker),
                                   50030)
    namenode_port = setup_tunnel(util.name_to_ip(cfg.hadoop_namenode), 50070)
    print
    print(
        'ssh tunnels are running in the background to provide access to the '
        'Hadoop web interface. You can close the tunnels by killing the '
        'ssh process responsible. "ps aux | grep ssh" should list processes '
        'matching the commands indicated above.')
    print
    print '*** JobTracker: http://localhost:{0}'.format(jobtracker_port)
    print '*** NameNode: http://localhost:{0}'.format(namenode_port)
def send_coordinator(cmd, data, verify=False):
    data['secret'] = cfg.secret
    if verify:
        return util.checked_do(cfg.coordinator, cmd, data=data)
    else:
        return util.talk_to_agent(util.name_to_ip(cfg.coordinator),
                                  cmd,
                                  data=data)
def send_coordinator(cmd, data, verify=False):
  data['secret'] = cfg.secret
  if verify:
    return util.checked_do(cfg.coordinator, cmd, data=data)
  else:
    return util.talk_to_agent(util.name_to_ip(cfg.coordinator), cmd, data=data)