终于可以debug MetaStore了。
debug的命令如下:
jdb org.apache.hadoop.hive.metastore.HiveMetaStore
stop in org.apache.hadoop.hive.metastore.HiveMetaStore.main
stop in org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore
stop in org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.方法名
stop in org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_database
stop in org.apache.hadoop.hive.metastore.ObjectStore.createDatabase
查询数据库
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_databases
创建表格
stop in org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table
stop in org.apache.hadoop.hive.metastore.ObjectStore.create_table
run
来源:oschina
链接:https://my.oschina.net/u/1382024/blog/639353