Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. from hadoop import Impala
  2.  
  3. plink_path = r'C:\Users\...' # path to plink.exe (do not inlcude "plink.exe" in path)
  4.  
  5.  
  6. server = 'dayrhewbwp006.enterprisenet.org'
  7. hive = 'dayrhewbwp015'
  8.  
  9.  
  10. con = Impala(plink_path=plink_path, server=server,hive_server=hive,
  11.                    user='???', password='???')
  12.  
  13. df = con.to_frame("select * from table limit 1")
  14. df
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement