dremio 查看外部profile 信息

dremio web server 基于了jersey实际包含了比较完备的配置支持(类似spring boot 强大的配置支持一样)
同时dremio 也包含了一些测试api 但是默认是关闭的,我们可以通过配置,或者修改代码打开,目前我基于
代码进行了修改

参考修改的代码

  • TestResourcesFeature.java
 
public boolean configure(FeatureContext context) {
  Configuration configuration = context.getConfiguration();
 // Boolean enabled = PropertyHelper.getProperty(configuration, RestServerV2.TEST_API_ENABLE);
  Boolean enabled = true;
 
  // Default is not enabled
  if (enabled == null || !enabled) {
    return false;
  }
 
  for (Class<?> resource : scanResult.getAnnotatedClasses(RestResourceUsedForTesting.class)) {
    context.register(resource);
  }
 
  return true;
}

构建

  • 参考构建
mvn clean  package  -Dmaven.test.skip // 如果外部的已经构建了,可以直接构建dac 的backend 就行了

使用效果

  • 使用
    直接替换jar 包就行了
  • 访问
 
http://<hostip>:9047/apiv2/test/render_external_profile
  • 效果

通过粘贴查询profile 的json 格式到表单就行了

 

 


 

 

说明

如果同时进行关注dremio 社区,实际上官方团队就经常要用户一些profile 信息,方便分析问题,处理上应该是类似的,只是关于估计包装了自己的系统,开启了test api
的dremio 对于我们平时分析一些查询问题还是很有用的,同时也可以学习一些社区的profile信息,dremio 23 开始的版本我已经提交到github了,可以直接使用

参考资料

https://docs.dremio.com/software/jobs/viewing-query-profiles/
https://docs.dremio.com/software/jobs/raw-profile/
https://github.com/rongfengliang/mydremio-packages-private

posted on   荣锋亮  阅读(27)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-12-12 atop 很不错的系统以及进程监控工具
2021-12-12 使用logux 一种新的连接client 以及server的模式
2020-12-12 使用go-sql-rest-driver 查询rest api
2019-12-12 使用async-profiler简单分析zeebe 工作流引擎的性能
2018-12-12 nakadi 一款基于kafka 的http event broker
2018-12-12 使用uflare/smtp2http 将smtp 转转化为http 请求
2018-12-12 tessellate Architecture

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示