druid-longsum度量没有填充

qvk1mo1f  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(280)

我在druid中通过使用DruidQuickStart附带的wikiticker-index.json文件进行批量摄取。
以下是我在wikiticker-index.json文件中的数据模式。

  1. {
  2. type:"index_hadoop",
  3. spec:{
  4. ioConfig:{
  5. type:"hadoop",
  6. inputSpec:{
  7. type:"static",
  8. paths:"quickstart/wikiticker-2015-09-12-sampled.json"
  9. }
  10. },
  11. dataSchema:{
  12. dataSource:"wikiticker",
  13. granularitySpec:{
  14. type:"uniform",
  15. segmentGranularity:"day",
  16. queryGranularity:"none",
  17. intervals:[
  18. "2015-09-12/2015-09-13"
  19. ]
  20. },
  21. parser:{
  22. type:"hadoopyString",
  23. parseSpec:{
  24. format:"json",
  25. dimensionsSpec:{
  26. dimensions:[
  27. "channel",
  28. "cityName",
  29. "comment",
  30. "countryIsoCode",
  31. "countryName",
  32. "isAnonymous",
  33. "isMinor",
  34. "isNew",
  35. "isRobot",
  36. "isUnpatrolled",
  37. "metroCode",
  38. "namespace",
  39. "page",
  40. "regionIsoCode",
  41. "regionName",
  42. "user"
  43. ]
  44. },
  45. timestampSpec:{
  46. format:"auto",
  47. column:"time"
  48. }
  49. }
  50. },
  51. metricsSpec:[
  52. {
  53. name:"count",
  54. type:"count"
  55. },
  56. {
  57. name:"added",
  58. type:"longSum",
  59. fieldName:"added"
  60. },
  61. {
  62. name:"deleted",
  63. type:"longSum",
  64. fieldName:"deleted"
  65. },
  66. {
  67. name:"delta",
  68. type:"longSum",
  69. fieldName:"delta"
  70. },
  71. {
  72. name:"user_unique",
  73. type:"hyperUnique",
  74. fieldName:"user"
  75. }
  76. ]
  77. },
  78. tuningConfig:{
  79. type:"hadoop",
  80. partitionsSpec:{
  81. type:"hashed",
  82. targetPartitionSize:5000000
  83. },
  84. jobProperties:{
  85. }
  86. }
  87. }
  88. }

在摄取样本json之后。只显示以下指标。

我找不到longsum指标。即添加、删除和增量。有什么特别的原因吗?
有人知道这件事吗?
提前谢谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题