- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Phoenixdb FetchAll not working and returning empty list
- Labels:
-
Apache Phoenix
Created 08-16-2017 08:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Timothy SpannThe queries like upsert are working fine and data is getting inserted into tables but when I execute a select query and print result, it shows empty.
The output which I am getting for this is [ ].
I have checked with sqlline.py and have seen that the table has 2 rows.
- import phoenixdb
- database_url ='http://localhost:8765/'
- conn = phoenixdb.connect(database_url, autocommit=True)
- cursor = conn.cursor()
- cursor.execute("upsert into users values(2,'user')")
- cursor.execute("select * from users")
- print cursor.fetchall()
I have read your previous answer. Could you tell me how to restart the query server and with with the phoenix.queryserver.serialization parameter set to JSON.
Created 08-16-2017 01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Go to Ambari
2. Under HBase, Under Service Actions, Restart Phoenix Query Servers.
3. Under HBase, go to configs, under Filter type in your parameter
4. Change it, save and restart.
https://phoenix.apache.org/server.html
https://community.hortonworks.com/articles/2663/phoenix-queryserver.html
@joshelser
https://community.hortonworks.com/questions/53827/phoenixdb-connection-to-phoenix-query-server.html
Created 08-16-2017 01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Go to Ambari
2. Under HBase, Under Service Actions, Restart Phoenix Query Servers.
3. Under HBase, go to configs, under Filter type in your parameter
4. Change it, save and restart.
https://phoenix.apache.org/server.html
https://community.hortonworks.com/articles/2663/phoenix-queryserver.html
@joshelser
https://community.hortonworks.com/questions/53827/phoenixdb-connection-to-phoenix-query-server.html
Created 08-17-2017 07:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot Timothy.
