Created
April 20, 2015 18:09
-
-
Save randerzander/3fd189409cab970156b3 to your computer and use it in GitHub Desktop.
Apache Phoenix via Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jaydebeapi | |
conn = jaydebeapi.connect('org.apache.phoenix.jdbc.PhoenixDriver', \ | |
['jdbc:phoenix:my_zk_server:2181:/hbase-unsecure', '', ''], \ | |
'/usr/hdp/current/phoenix-client/phoenix-client.jar') | |
curs = conn.cursor() | |
curs.execute('select * from WEB_STAT limit 1') | |
curs.fetchall() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment