Guest User

ingestion_spec

a guest
Jun 1st, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.81 KB | None | 0 0
  1. {
  2. "type" : "index_hadoop",
  3. "spec" : {
  4. "ioConfig" : {
  5. "type" : "hadoop",
  6. "inputSpec" : {
  7. "type" : "static",
  8. "paths" : "<MY VALID PATH>"
  9. }
  10. },
  11. "dataSchema" : {
  12. "dataSource" : "bazaar",
  13. "granularitySpec" : {
  14. "type" : "uniform",
  15. "segmentGranularity" : "day",
  16. "queryGranularity" : "none",
  17. "intervals" : ["2015-11-12/2016-02-27"]
  18. },
  19. "parser" : {
  20. "type" : "string",
  21. "parseSpec" : {
  22. "format" : "json",
  23. "dimensionsSpec" : {
  24. "dimensions" : [
  25. "seller_dir_shipping", "refund_status", "seller_state", "payment_method", "seller_ac_status", "awb_no", "brand_category", "seller_cod_status", "source_info", "ship_state", "pg_discount_flag", "servicable", "shipping_comp","seller_bill_city","sostatus", "order_type_clean","ship_city", "seller_mpdm", "order_priority", "wallet_txn_status", "api_ref", "sub_order_type", "L2_category", "transaction_status", "bill_state", "seller_bill_state", "customer_type", "realign", "reasonofreject", "modeofpayment", "node_category_name", "bill_city","collectable_amount", "L3_category", "consumer_code", "transaction_type", "agr_seller", "L1_category","guid","vinculam_flag", "seller_exp_del","L4_category", "heavy_bulky", "refund_remarks", "account_type", "node_category_id", "express_delivery", "seller_inv_mod", "L5_category", "store_id", "product_pg_amount", "precious_jewellery","product_pg_cashback", "seller_prepay_status", "order_type", "agr_id", "setype", "product_name", "seller_self_ship", "description", "source_type", "seller_city", "wallet_amount", "coupon_code", "details_for_cancel", "occasion", "L6_category"
  26. ]
  27. },
  28. "timestampSpec" : {
  29. "format" : "auto",
  30. "column" : "create_date"
  31. }
  32. }
  33. },
  34. "metricsSpec" : [
  35. {"name" : "uniq_awb_no","type" : "hyperUnique","fieldName" : "awb_no" },
  36. {"name" : "uniq_buyers", "type" : "hyperUnique","fieldName" : "buyer_name"},
  37. {"name" : "uniq_buyers", "type" : "hyperUnique","fieldName" : "buyer_name"},
  38. {"name" : "min_product_qty","type" : "doubleMin","fieldName" : "product_qty"},
  39. {"name" : "max_product_qty","type" : "doubleMax","fieldName" : "product_qty"},
  40. {"name" : "sum_product_qty","type" : "longSum","fieldName" : "product_qty"},
  41. {"name" : "min_transfer_price","type" : "doubleMin","fieldName" : "transfer_price"},
  42. {"name" : "max_transfer_price","type" : "doubleMax","fieldName" : "transfer_price"},
  43. {"name" : "sum_transfer_price","type" : "longSum","fieldName" : "transfer_price"},
  44. {"name" : "uniq_order_uuid", "type" : "hyperUnique","fieldName" : "order_uuid"},
  45. {"name" : "min_logistics_cost","type" : "doubleMin","fieldName" : "logistics_cost"},
  46. {"name" : "max_logistics_cost","type" : "doubleMax","fieldName" : "logistics_cost"},
  47. {"name" : "sum_logistics_cost","type" : "longSum","fieldName" : "logistics_cost"},
  48. {"name" : "min_product_cst","type" : "doubleMin","fieldName" : "product_cst"},
  49. {"name" : "max_product_cst","type" : "doubleMax","fieldName" : "product_cst"},
  50. {"name" : "sum_product_cst","type" : "longSum","fieldName" : "product_cst"},
  51. {"name" : "uniq_seller_phone", "type" : "hyperUnique","fieldName" : "seller_phone"},
  52. {"name" : "min_bazaar_price","type" : "doubleMin","fieldName" : "bazaar_price"},
  53. {"name" : "max_bazaar_price","type" : "doubleMax","fieldName" : "bazaar_price"},
  54. {"name" : "sum_bazaar_price","type" : "longSum","fieldName" : "bazaar_price"},
  55. {"name" : "min_weight","type" : "doubleMin","fieldName" : "weight"},
  56. {"name" : "max_weight","type" : "doubleMax","fieldName" : "weight"},
  57. {"name" : "sum_weight","type" : "longSum","fieldName" : "weight"},
  58. {"name" : "min_store_offer_price","type" : "doubleMin","fieldName" : "store_offer_price"},
  59. {"name" : "max_store_offer_price","type" : "doubleMax","fieldName" : "store_offer_price"},
  60. {"name" : "sum_store_offer_price","type" : "longSum","fieldName" : "store_offer_price"},
  61. {"name" : "min_product_coupon_cashback","type" : "doubleMin","fieldName" : "product_coupon_cashback"},
  62. {"name" : "max_product_coupon_cashback","type" : "doubleMax","fieldName" : "product_coupon_cashback"},
  63. {"name" : "sum_product_coupon_cashback","type" : "longSum","fieldName" : "product_coupon_cashback"},
  64. {"name" : "uniq_sourceorderid", "type" : "hyperUnique","fieldName" : "sourceorderid"},
  65. {"name" : "min_category_discount","type" : "doubleMin","fieldName" : "category_discount"},
  66. {"name" : "max_category_discount","type" : "doubleMax","fieldName" : "category_discount"},
  67. {"name" : "sum_category_discount","type" : "longSum","fieldName" : "category_discount"},
  68. {"name" : "min_shipping_charge","type" : "doubleMin","fieldName" : "shipping_charge"},
  69. {"name" : "max_shipping_charge","type" : "doubleMax","fieldName" : "shipping_charge"},
  70. {"name" : "sum_shipping_charge","type" : "longSum","fieldName" : "shipping_charge"},
  71. {"name" : "min_order_discount","type" : "doubleMin","fieldName" : "order_discount"},
  72. {"name" : "max_order_discount","type" : "doubleMax","fieldName" : "order_discount"},
  73. {"name" : "sum_order_discount","type" : "longSum","fieldName" : "order_discount"},
  74. {"name" : "min_product_vat","type" : "doubleMin","fieldName" : "product_vat"},
  75. {"name" : "max_product_vat","type" : "doubleMax","fieldName" : "product_vat"},
  76. {"name" : "sum_product_vat","type" : "longSum","fieldName" : "product_vat"},
  77. {"name" : "min_collectable_amount","type" : "doubleMin","fieldName" : "collectable_amount"},
  78. {"name" : "max_collectable_amount","type" : "doubleMax","fieldName" : "collectable_amount"},
  79. {"name" : "sum_collectable_amount","type" : "longSum","fieldName" : "collectable_amount"},
  80. {"name" : "uniq_accountid", "type" : "hyperUnique","fieldName" : "accountid"},
  81. {"name" : "min_discount_offered","type" : "doubleMin","fieldName" : "discount_offered"},
  82. {"name" : "max_discount_offered","type" : "doubleMax","fieldName" : "discount_offered"},
  83. {"name" : "sum_discount_offered","type" : "longSum","fieldName" : "discount_offered"},
  84. {"name" : "min_size","type" : "doubleMin","fieldName" : "size"},
  85. {"name" : "max_size","type" : "doubleMax","fieldName" : "size"},
  86. {"name" : "sum_size","type" : "longSum","fieldName" : "size"},
  87. {"name" : "min_size","type" : "doubleMin","fieldName" : "product_wallet_amount"},
  88. {"name" : "max_size","type" : "doubleMax","fieldName" : "product_wallet_amount"},
  89. {"name" : "sum_size","type" : "longSum","fieldName" : "product_wallet_amount"},
  90. {"name" : "min_loyalty_points_burned","type" : "doubleMin","fieldName" : "loyalty_points_burned"},
  91. {"name" : "max_loyalty_points_burned","type" : "doubleMax","fieldName" : "loyalty_points_burned"},
  92. {"name" : "sum_loyalty_points_burned","type" : "longSum","fieldName" : "loyalty_points_burned"},
  93. {"name" : "uniq_node_category_id", "type" : "hyperUnique","fieldName" : "node_category_id"},
  94. {"name" : "min_store_price","type" : "doubleMin","fieldName" : "store_price"},
  95. {"name" : "max_store_price","type" : "doubleMax","fieldName" : "store_price"},
  96. {"name" : "sum_store_price","type" : "longSum","fieldName" : "store_price"},
  97. {"name" : "min_loyality_points_earned","type" : "doubleMin","fieldName" : "loyality_points_earned"},
  98. {"name" : "max_loyality_points_earned","type" : "doubleMax","fieldName" : "loyality_points_earned"},
  99. {"name" : "sum_loyality_points_earned","type" : "longSum","fieldName" : "loyality_points_earned"},
  100. {"name" : "min_pg_discount","type" : "doubleMin","fieldName" : "pg_discount"},
  101. {"name" : "max_pg_discount","type" : "doubleMax","fieldName" : "pg_discount"},
  102. {"name" : "sum_pg_discount","type" : "longSum","fieldName" : "pg_discount"},
  103. {"name" : "uniq_base_product_id","type" : "hyperUnique","fieldName" : "base_product_id"},
  104. {"name" : "min_total_paid_amount","type" : "doubleMin","fieldName" : "total_paid_amount"},
  105. {"name" : "max_total_paid_amount","type" : "doubleMax","fieldName" : "total_paid_amount"},
  106. {"name" : "sum_total_paid_amount","type" : "longSum","fieldName" : "total_paid_amount"},
  107. {"name" : "uniq_bill_code", "type" : "hyperUnique","fieldName" : "bill_code"},
  108. {"name" : "min_total_quantity","type" : "doubleMin","fieldName" : "total_quantity"},
  109. {"name" : "max_total_quantity","type" : "doubleMax","fieldName" : "total_quantity"},
  110. {"name" : "sum_total_quantity","type" : "longSum","fieldName" : "total_quantity"},
  111. {"name" : "uniq_salesorderid", "type" : "hyperUnique","fieldName" : "salesorderid"},
  112. {"name" : "uniq_product_name", "type" : "hyperUnique","fieldName" : "product_name"},
  113. {"name" : "min_order_total","type" : "doubleMin","fieldName" : "order_total"},
  114. {"name" : "max_order_total","type" : "doubleMax","fieldName" : "order_total"},
  115. {"name" : "sum_order_total","type" : "longSum","fieldName" : "order_total"},
  116. {"name" : "min_wallet_amount","type" : "doubleMin","fieldName" : "wallet_amount"},
  117. {"name" : "max_wallet_amount","type" : "doubleMax","fieldName" : "wallet_amount"},
  118. {"name" : "sum_wallet_amount","type" : "longSum","fieldName" : "wallet_amount"},
  119. {"name" : "uniq_source_id", "type" : "hyperUnique","fieldName" : "source_id"}
  120. ]
  121. },
  122. "tuningConfig" : {
  123. "type" : "hadoop",
  124. "partitionsSpec" : {
  125. "type" : "hashed",
  126. "targetPartitionSize" : 5000000
  127. },
  128. "jobProperties" : {}
  129. }
  130. }
  131. }
Add Comment
Please, Sign In to add comment