Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "index_hadoop",
- "spec": {
- "ioConfig": {
- "inputSpec": {
- "intervals": [
- "2017-03-04T00:00:00Z/2018-07-15T00:00:00Z"
- ],
- "paths": "hdfs://analytics-hadoop/tmp/wmf_gsc.csv",
- "type": "static"
- },
- "type": "hadoop"
- },
- "dataSchema": {
- "dataSource": "gsc_all",
- "granularitySpec": {
- "queryGranularity": "day",
- "segmentGranularity": "day",
- "type": "uniform"
- },
- "parser": {
- "parseSpec": {
- "dimensionsSpec": {
- "dimensions": [
- "url",
- "protocol",
- "site",
- "subdomain",
- "project",
- "country_code",
- "country_name"
- ]
- },
- "format": "csv",
- "hasHeaderRow": true,
- "timestampSpec": {
- "column": "dt"
- }
- }
- },
- "metricsSpec": [
- {
- "name": "impressions",
- "type": "doubleSum",
- "fieldName": "impressions"
- },
- {
- "name": "clicks",
- "type": "doubleSum",
- "fieldName": "clicks"
- },
- {
- "name": "best_position",
- "type": "doubleMin",
- "fieldName": "position"
- },
- {
- "name": "worst_position",
- "type": "doubleMax",
- "fieldName": "position"
- }
- ]
- }
- },
- "tuningConfig": {
- "type": "hadoop"
- }
- }
Add Comment
Please, Sign In to add comment