Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. [ec2-user@ip-10-150-96-149 apache-drill-1.11.0-SNAPSHOT]$ bin/drill-embedded
  2. OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
  3. Jul 24, 2017 6:34:27 PM org.glassfish.jersey.server.ApplicationHandler initialize
  4. INFO: Initiating Jersey application, version Jersey: 2.8 2014-04-29 01:25:26...
  5. apache drill 1.11.0-SNAPSHOT
  6. "drill baby drill"
  7. 0: jdbc:drill:zk=local> use kudu;
  8. +-------+-----------------------------------+
  9. | ok | summary |
  10. +-------+-----------------------------------+
  11. | true | Default schema changed to [kudu] |
  12. +-------+-----------------------------------+
  13. 1 row selected (0.597 seconds)
  14. 0: jdbc:drill:zk=local> describe pulse_report;
  15. +----------------+------------+--------------+
  16. | COLUMN_NAME | DATA_TYPE | IS_NULLABLE |
  17. +----------------+------------+--------------+
  18. | year | INTEGER | NO |
  19. | month | INTEGER | NO |
  20. | day | INTEGER | NO |
  21. | hour | INTEGER | NO |
  22. | campaign_id | BIGINT | NO |
  23. | strategy_id | BIGINT | NO |
  24. | exch_id | INTEGER | NO |
  25. | mm_date_gmt | TIMESTAMP | NO |
  26. | gmt_offset | INTEGER | NO |
  27. | impressions | INTEGER | NO |
  28. | media_cost | DOUBLE | NO |
  29. | total_ad_cost | DOUBLE | NO |
  30. | total_spend | DOUBLE | NO |
  31. +----------------+------------+--------------+
  32. 13 rows selected (2.074 seconds)
  33. 0: jdbc:drill:zk=local> select campaign_id,impressions from pulse_report where `day` = 14 and campaign_id = 132444 and `hour` = 1;
  34. +--------------+--------------+
  35. | campaign_id | impressions |
  36. +--------------+--------------+
  37. | 132444 | 2 |
  38. | 132444 | 11 |
  39. | 132444 | 2 |
  40. | 132444 | 31 |
  41. | 132444 | 8 |
  42. | 132444 | 12 |
  43. | 132444 | 9 |
  44. | 132444 | 11 |
  45. | 132444 | 1 |
  46. | 132444 | 7 |
  47. | 132444 | 11 |
  48. | 132444 | 2 |
  49. | 132444 | 3 |
  50. | 132444 | 1 |
  51. | 132444 | 1 |
  52. | 132444 | 4 |
  53. | 132444 | 4 |
  54. | 132444 | 2 |
  55. | 132444 | 9 |
  56. | 132444 | 5 |
  57. | 132444 | 2 |
  58. | 132444 | 7 |
  59. | 132444 | 1 |
  60. | 132444 | 1 |
  61. | 132444 | 4 |
  62. | 132444 | 3 |
  63. | 132444 | 3 |
  64. | 132444 | 1 |
  65. | 132444 | 6 |
  66. | 132444 | 2 |
  67. | 132444 | 1 |
  68. | 132444 | 3 |
  69. | 132444 | 1 |
  70. | 132444 | 13 |
  71. | 132444 | 2 |
  72. | 132444 | 3 |
  73. | 132444 | 5 |
  74. | 132444 | 1 |
  75. | 132444 | 5 |
  76. | 132444 | 1 |
  77. | 132444 | 3 |
  78. | 132444 | 4 |
  79. | 132444 | 18 |
  80. | 132444 | 7 |
  81. | 132444 | 2 |
  82. | 132444 | 5 |
  83. | 132444 | 7 |
  84. | 132444 | 1 |
  85. | 132444 | 15 |
  86. | 132444 | 1 |
  87. | 132444 | 2 |
  88. | 132444 | 1 |
  89. | 132444 | 12 |
  90. | 132444 | 3 |
  91. | 132444 | 5 |
  92. | 132444 | 1 |
  93. | 132444 | 6 |
  94. | 132444 | 15 |
  95. | 132444 | 3 |
  96. | 132444 | 7 |
  97. | 132444 | 1 |
  98. | 132444 | 1 |
  99. | 132444 | 4 |
  100. | 132444 | 2 |
  101. | 132444 | 1 |
  102. | 132444 | 1 |
  103. | 132444 | 1 |
  104. | 132444 | 1 |
  105. | 132444 | 2 |
  106. | 132444 | 2 |
  107. | 132444 | 1 |
  108. | 132444 | 17 |
  109. | 132444 | 4 |
  110. | 132444 | 6 |
  111. | 132444 | 2 |
  112. | 132444 | 3 |
  113. | 132444 | 1 |
  114. | 132444 | 1 |
  115. | 132444 | 2 |
  116. | 132444 | 6 |
  117. | 132444 | 1 |
  118. | 132444 | 1 |
  119. | 132444 | 1 |
  120. | 132444 | 1 |
  121. | 132444 | 1 |
  122. | 132444 | 1 |
  123. | 132444 | 19 |
  124. | 132444 | 4 |
  125. | 132444 | 5 |
  126. | 132444 | 5 |
  127. | 132444 | 13 |
  128. | 132444 | 2 |
  129. | 132444 | 3 |
  130. | 132444 | 4 |
  131. | 132444 | 6 |
  132. | 132444 | 1 |
  133. | 132444 | 4 |
  134. | 132444 | 5 |
  135. | 132444 | 2 |
  136. +-------------+-------------+
  137. | campaign_id | impressions |
  138. +-------------+-------------+
  139. | 132444 | 1 |
  140. | 132444 | 1 |
  141. | 132444 | 1 |
  142. | 132444 | 7 |
  143. | 132444 | 1 |
  144. | 132444 | 1 |
  145. | 132444 | 1 |
  146. | 132444 | 1 |
  147. | 132444 | 1 |
  148. | 132444 | 1 |
  149. | 132444 | 1 |
  150. | 132444 | 4 |
  151. | 132444 | 81 |
  152. | 132444 | 20 |
  153. | 132444 | 11 |
  154. | 132444 | 20 |
  155. | 132444 | 41 |
  156. | 132444 | 1 |
  157. | 132444 | 3 |
  158. | 132444 | 10 |
  159. | 132444 | 3 |
  160. | 132444 | 1 |
  161. | 132444 | 1 |
  162. | 132444 | 1 |
  163. | 132444 | 12 |
  164. | 132444 | 8 |
  165. | 132444 | 2 |
  166. | 132444 | 4 |
  167. | 132444 | 1 |
  168. | 132444 | 1 |
  169. | 132444 | 11 |
  170. | 132444 | 1 |
  171. | 132444 | 1 |
  172. | 132444 | 1 |
  173. | 132444 | 3 |
  174. | 132444 | 1 |
  175. | 132444 | 9 |
  176. | 132444 | 2 |
  177. | 132444 | 1 |
  178. | 132444 | 1 |
  179. | 132444 | 1 |
  180. | 132444 | 3 |
  181. +-------------+-------------+
  182. 141 rows selected (0.906 seconds)
  183. 0: jdbc:drill:zk=local> select campaign_id,sum(impressions) from pulse_report where `day` = 14 and campaign_id = 132444 and `hour` = 1 group by campaign_id ;
  184. +--------------+---------+
  185. | campaign_id | EXPR$1 |
  186. +--------------+---------+
  187. | 132444 | 734 |
  188. +--------------+---------+
  189. 1 row selected (1.492 seconds)
  190. 0: jdbc:drill:zk=local> select campaign_id,sum(impressions) from pulse_report where `day` = 14 and campaign_id = 132444 and `hour` = 1 group by campaign_id ;
  191. Error: SYSTEM ERROR: IllegalStateException: Failure while reading vector. Expected vector class of org.apache.drill.exec.vector.NullableIntVector but was holding vector class org.apache.drill.exec.vector.BigIntVector, field= campaign_id(BIGINT:REQUIRED)
  192.  
  193. Fragment 1:0
  194.  
  195. [Error Id: 4365288d-2fa9-4b3a-9819-26caff2f0a67 on ip-10-150-96-149.ec2.internal:31010] (state=,code=0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement