Guest User

Untitled

a guest
Nov 13th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Connecting to mysql using presto (on AWS EMR without using EMR config properties)
  2.  
  3. #### Step1: create mysql.properties in //etc/presto/conf.dist/catalog/
  4. ```
  5. connector.name=mysql
  6. connection-url=jdbc:mysql://10.29.7.xx:3306
  7. connection-user=harleenxx
  8. connection-password=harleenxx
  9. ```
  10. #### Step2: restart presto server
  11. ```
  12. sudo restart presto-server
  13. ```
  14. #### Step3: start presto cli
  15. ```
  16. $ presto-cli
  17. presto:default> select * from mysql.reatail_db.customers limit 10;
  18. ```
Add Comment
Please, Sign In to add comment