in google-datacatalog-hive-connector/src/google/datacatalog_connectors/hive/datacatalog_cli.py [0:0]
def run(argv):
args = Hive2DatacatalogCli.__parse_args(argv)
# Enable logging
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
if args.service_account_path:
os.environ['GOOGLE_APPLICATION_CREDENTIALS']\
= args.service_account_path
datacatalog_synchronizer.DataCatalogSynchronizer(
project_id=args.datacatalog_project_id,
location_id=args.datacatalog_location_id,
hive_metastore_db_host=args.hive_metastore_db_host,
hive_metastore_db_user=args.hive_metastore_db_user,
hive_metastore_db_pass=args.hive_metastore_db_pass,
hive_metastore_db_name=args.hive_metastore_db_name,
hive_metastore_db_type=args.hive_metastore_db_type,
enable_monitoring=args.enable_monitoring).run()