Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. {
  2. "type" : "index_hadoop",
  3. "spec" : {
  4. "dataSchema" : {
  5. "dataSource" : "wikipedia",
  6. "parser" : {
  7. "type" : "hadoopyString",
  8. "parseSpec" : {
  9. "format" : "json",
  10. "timestampSpec" : {
  11. "column" : "time",
  12. "format" : "auto"
  13. },
  14. "dimensionsSpec" : {
  15. "dimensions": ["page","language","user","unpatrolled","newPage","robot","anonymous","namespace","continent","country","region","city"],
  16. "dimensionExclusions" : [],
  17. "spatialDimensions" : []
  18. }
  19. }
  20. },
  21. "metricsSpec" : [
  22. {
  23. "type" : "count",
  24. "name" : "count"
  25. },
  26. {
  27. "type" : "doubleSum",
  28. "name" : "added",
  29. "fieldName" : "added"
  30. },
  31. {
  32. "type" : "doubleSum",
  33. "name" : "deleted",
  34. "fieldName" : "deleted"
  35. },
  36. {
  37. "type" : "doubleSum",
  38. "name" : "delta",
  39. "fieldName" : "delta"
  40. }
  41. ],
  42. "granularitySpec" : {
  43. "type" : "uniform",
  44. "segmentGranularity" : "DAY",
  45. "queryGranularity" : "HOUR",
  46. "intervals" : [ "2015-09-12T00:00:00.000Z/2015-09-13T00:00:00.000Z" ]
  47. }
  48. },
  49. "ioConfig" : {
  50. "type" : "hadoop",
  51. "metadataUpdateSpec" : {
  52. "type":"postgresql",
  53. "connectURI" : "jdbc:postgresql://XXXXXX.us-west-2.rds.amazonaws.com:5432/XXXX",
  54. "password" : "XXX",
  55. "segmentTable" : "druid_segments",
  56. "user" : "XXX"
  57. },
  58. "segmentOutputPath" : "s3://druid-cloud/",
  59. "inputSpec" : {
  60. "type" : "static",
  61. "paths" : "s3://druid-cloud/wikiticker-2016-06-27-sampled.json"
  62. }
  63. },
  64. "tuningConfig" : {
  65. "type": "hadoop",
  66. "workingPath": "/tmp/druid-indexing",
  67. "leaveIntermediate":true,
  68. "partitionsSpec": {
  69. "type": "hashed",
  70. "targetPartitionSize": 5000000,
  71. "maxPartitionSize": 75000000,
  72. "assumeGrouped": false,
  73. "numShards": -1,
  74. "partitionDimensions": []
  75. },
  76. "jobProperties" : {
  77. "mapreduce.job.user.classpath.first": "true",
  78. "mapreduce.map.memory.mb" : 2048,
  79. "mapreduce.map.java.opts" : "-server -Xmx1536m -Duser.timezone=UTC -Dfile.encoding=UTF-8",
  80. "mapreduce.reduce.memory.mb" : 2048,
  81. "mapreduce.reduce.java.opts" : "-server -Xmx2560m -Duser.timezone=UTC -Dfile.encoding=UTF-8",
  82. "fs.s3.awsAccessKeyId" : "XXXXXX",
  83. "fs.s3.awsSecretAccessKey" : "XXXXXX",
  84. "fs.s3.impl" : "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
  85. "fs.s3n.impl" : "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
  86. "io.compression.codecs" : "org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.BZip2Codec,org.apache.hadoop.io.compress.SnappyCodec"}
  87. }
  88. }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement