CLI的二进制启动以及debug环境搭建

根据官方文档: https://prestodb.io/docs/current/installation/cli.html

1)下载 

https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.142/presto-cli-0.142-executable.jar

2)重命名为presto

 cp presto-cli-0.142-executable.jar presto

3)启动 

./presto --server localhost:8080 --catalog hive --schema default

4)找到执行主类

CLI的二进制启动以及debug环境搭建_第1张图片

好,主类找到了,下面开始从这里搭建eclipse环境。

===eclipse里搭建好的截图如下:

CLI的二进制启动以及debug环境搭建_第2张图片

下面把这些传到linux里面去。

===debug环境如下:

CLI的二进制启动以及debug环境搭建_第3张图片

===命令如下:

jdb com.facebook.presto.cli.Presto  --server localhost:8080 --catalog hive --schema default

stop in com.facebook.presto.cli.Presto.main

stop in com.facebook.presto.cli.Console.xxx

stop in com.facebook.presto.cli.Console.run

stop in com.facebook.presto.cli.Console.initializeLogging

stop in com.facebook.presto.cli.QueryRunner.getHttpClientConfig

stop in  com.facebook.presto.cli.Console.runConsole

stop in com.facebook.presto.cli.Console.getHistory

stop in com.facebook.presto.cli.Completion.commandCompleter

stop in  com.facebook.presto.cli.Console.process

stop in com.facebook.presto.client.StatementClient.buildQueryRequest




run


好,开始源码之旅。




你可能感兴趣的:(impala,presto)