Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ************** HIVE **********************
  2. CREATE EXTERNAL TABLE `customer`(
  3. `id` int,
  4. `first` string,
  5. `last` string)
  6. ROW FORMAT SERDE
  7. 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
  8. WITH SERDEPROPERTIES (
  9. 'field.delim'=',',
  10. 'serialization.format'=',')
  11. STORED AS INPUTFORMAT
  12. 'org.apache.hadoop.mapred.TextInputFormat'
  13. OUTPUTFORMAT
  14. 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
  15. LOCATION
  16. 's3a://testbucket/'
  17. TBLPROPERTIES (
  18. 'transient_lastDdlTime'='1524321660')
  19.  
  20. hive> use minio;
  21. OK
  22. Time taken: 2.398 seconds
  23.  
  24. hive> select * from customer;
  25. OK
  26. 5 Bob Jones
  27. 6 Phil Brune
  28. Time taken: 3.359 seconds, Fetched: 2 row(s)
  29.  
  30. ************** PRESTO **********************
  31.  
  32. presto:minio> select * from customer;
  33.  
  34. Query 20180422_102158_00007_7etq4, FAILED, 1 node
  35. Splits: 16 total, 0 done (0.00%)
  36. 0:38 [0 rows, 0B] [0 rows/s, 0B/s]
  37.  
  38. Query 20180422_102158_00007_7etq4 failed: Unable to execute HTTP request: testbucket.minio: Name or service not known
  39.  
  40. connector.name=hive-hadoop2
  41. hive.metastore.uri=thrift://hivemeta:9083
  42. hive.s3.endpoint=http://minio:9000
  43. hive.s3.aws-access-key=OQ4K2YFH7S1BE6ZM10M0
  44. hive.s3.aws-secret-key=Ft5iKPkY0YZNoDpp6r5HgbjFuGAxn+jt1avBPyHq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement