Advertisement
tha-dude

datasource.json

Mar 22nd, 2016
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.08 KB | None | 0 0
  1. [
  2.   {
  3.     "dataSchema": {
  4.       "dataSource": "my_datasource",
  5.       "parser": {
  6.         "type": "string",
  7.         "parseSpec": {
  8.           "format": "json",
  9.           "timestampSpec": {
  10.             "column": "tmst",
  11.             "format": "auto"
  12.           },
  13.           "dimensionsSpec": {
  14.             "dimensions": [
  15.               "bid",
  16.               "wid",
  17.               "crm_provider",
  18.               "crm_id",
  19.               "cookie_ok",
  20.               "c_id",
  21.               "ad_id",
  22.               "segs",
  23.               "type"
  24.             ],
  25.             "dimensionExclusions": [],
  26.             "spatialDimensions": []
  27.           }
  28.         }
  29.       },
  30.       "metricsSpec": [
  31.         {
  32.           "type": "count",
  33.           "name": "count"
  34.         },
  35.         {
  36.           "type": "hyperUnique",
  37.           "name": "unique_bid",
  38.           "fieldName": "bid"
  39.         },
  40.         {
  41.           "type": "hyperUnique",
  42.           "name": "unique_crm_id",
  43.           "fieldName": "crm_id"
  44.         }
  45.       ],
  46.       "granularitySpec": {
  47.         "type": "uniform",
  48.         "segmentGranularity": "FIVE_MINUTE",
  49.         "queryGranularity": "NONE"
  50.       }
  51.     },
  52.     "ioConfig": {
  53.       "type": "realtime",
  54.       "firehose": {
  55.         "type": "kafka-0.8",
  56.         "consumerProps": {
  57.           "zookeeper.connect": "<replaced>:2181,<replaced>:2181",
  58.           "zookeeper.connection.timeout.ms": "15000",
  59.           "zookeeper.session.timeout.ms": "15000",
  60.           "zookeeper.sync.time.ms": "5000",
  61.           "group.id": "local-druid",
  62.           "fetch.message.max.bytes": "1048586",
  63.           "auto.offset.reset": "smallest",
  64.           "auto.commit.enable": "false"
  65.         },
  66.         "feed": "druid_kafka_feed"
  67.       },
  68.       "plumber": {
  69.         "type": "realtime"
  70.       }
  71.     },
  72.     "tuningConfig": {
  73.       "type": "realtime",
  74.       "maxRowsInMemory": 250000,
  75.       "intermediatePersistPeriod": "PT30s",
  76.       "windowPeriod": "PT1M",
  77.       "basePersistDirectory": "/tmp/realtime/basePersist",
  78.       "rejectionPolicy": {
  79.         "type": "messageTime"
  80.       }
  81.     }
  82.   }
  83. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement