0

我正在使用 druid 快速入门附带的 wikiticker-index.json 文件在 druid 中进行批量摄取。

以下是我在 wikiticker-index.json 文件中的数据架构。

{  
   type:"index_hadoop",
   spec:{  
      ioConfig:{  
         type:"hadoop",
         inputSpec:{  
            type:"static",
            paths:"quickstart/wikiticker-2015-09-12-sampled.json"
         }
      },
      dataSchema:{  
         dataSource:"wikiticker",
         granularitySpec:{  
            type:"uniform",
            segmentGranularity:"day",
            queryGranularity:"none",
            intervals:[  
               "2015-09-12/2015-09-13"
            ]
         },
         parser:{  
            type:"hadoopyString",
            parseSpec:{  
               format:"json",
               dimensionsSpec:{  
                  dimensions:[  
                     "channel",
                     "cityName",
                     "comment",
                     "countryIsoCode",
                     "countryName",
                     "isAnonymous",
                     "isMinor",
                     "isNew",
                     "isRobot",
                     "isUnpatrolled",
                     "metroCode",
                     "namespace",
                     "page",
                     "regionIsoCode",
                     "regionName",
                     "user"
                  ]
               },
               timestampSpec:{  
                  format:"auto",
                  column:"time"
               }
            }
         },
         metricsSpec:[  
            {  
               name:"count",
               type:"count"
            },
            {  
               name:"added",
               type:"longSum",
               fieldName:"added"
            },
            {  
               name:"deleted",
               type:"longSum",
               fieldName:"deleted"
            },
            {  
               name:"delta",
               type:"longSum",
               fieldName:"delta"
            },
            {  
               name:"user_unique",
               type:"hyperUnique",
               fieldName:"user"
            }
         ]
      },
      tuningConfig:{  
         type:"hadoop",
         partitionsSpec:{  
            type:"hashed",
            targetPartitionSize:5000000
         },
         jobProperties:{  

         }
      }
   }
}

摄取样本 json后。仅显示以下指标。

在此处输入图像描述

我找不到 longSum metrics.ie 添加、删除和增量。有什么特别的原因吗?

有人知道吗?

提前致谢。

4

0 回答 0