@classmethod
    def conn(cls):
        config = cls.config
        try:
            connection = hive.connect(host=config['host'], port=config.get('port', cls.DEFAULT_PORT),
                                      authMechanism='NOSASL', user=config['username'],
                                      password=config['password'])
        except Exception, e:
            raise DbError("Cannot connect to Hive Server: %s\n"
                          "Ensure that the server is running and you can connect normally"
                          % e.message)

        return connection
return the hive connection handle to the configured server
dataset/ETHPy150Open appnexus/schema-tool/schematool/db/_hive.py/HiveDb.conn