Guest User

Untitled

a guest
Jul 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. {
  2. "type": "index_hadoop",
  3. "spec": {
  4. "ioConfig": {
  5. "inputSpec": {
  6. "intervals": [
  7. "2017-03-04T00:00:00Z/2018-07-15T00:00:00Z"
  8. ],
  9. "paths": "hdfs://analytics-hadoop/tmp/wmf_gsc.csv",
  10. "type": "static"
  11. },
  12. "type": "hadoop"
  13. },
  14. "dataSchema": {
  15. "dataSource": "gsc_all",
  16. "granularitySpec": {
  17. "queryGranularity": "day",
  18. "segmentGranularity": "day",
  19. "type": "uniform"
  20. },
  21. "parser": {
  22. "parseSpec": {
  23. "dimensionsSpec": {
  24. "dimensions": [
  25. "url",
  26. "protocol",
  27. "site",
  28. "subdomain",
  29. "project",
  30. "country_code",
  31. "country_name"
  32. ]
  33. },
  34. "format": "csv",
  35. "hasHeaderRow": true,
  36. "timestampSpec": {
  37. "column": "dt"
  38. }
  39. }
  40. },
  41. "metricsSpec": [
  42. {
  43. "name": "impressions",
  44. "type": "doubleSum",
  45. "fieldName": "impressions"
  46. },
  47. {
  48. "name": "clicks",
  49. "type": "doubleSum",
  50. "fieldName": "clicks"
  51. },
  52. {
  53. "name": "best_position",
  54. "type": "doubleMin",
  55. "fieldName": "position"
  56. },
  57. {
  58. "name": "worst_position",
  59. "type": "doubleMax",
  60. "fieldName": "position"
  61. }
  62. ]
  63. }
  64. },
  65. "tuningConfig": {
  66. "type": "hadoop"
  67. }
  68. }
Add Comment
Please, Sign In to add comment