<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Phoenixdb FetchAll not working in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenixdb-FetchAll-not-working/m-p/170322#M41860</link>
    <description>&lt;P&gt;I think the issue is using the same cursor or it's because of you using the wrong version of Phoenix/Phoenix connection.&lt;/P&gt;&lt;P&gt;Remember you also need to be using an older version as the newest version of Phoenix uses Google Protocol Buffers for data retrieval and PhoenixDB only does the older jSON.&lt;/P&gt;&lt;P&gt;See: &lt;A href="https://bitbucket.org/lalinsky/python-phoenixdb" target="_blank"&gt;https://bitbucket.org/lalinsky/python-phoenixdb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is your server running Phoenix 4.7, then it is v=1.6, but that is Protocol Buffers.   Python does not support this.   You can restart your  phoenix query server with the phoenix.queryserver.serialization parameter set to JSON.&lt;/P&gt;&lt;P&gt;Hopefully Python-PhoenixDB will be updated to use the current protocol.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2016 01:29:54 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2016-09-27T01:29:54Z</dc:date>
    <item>
      <title>Phoenixdb FetchAll not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenixdb-FetchAll-not-working/m-p/170321#M41859</link>
      <description>&lt;P&gt;
	The 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.&lt;/P&gt;&lt;P&gt;The output which I am getting for this is [ ].&lt;/P&gt;&lt;P&gt;I have checked with sqlline.py and have seen that the table has 2 rows.&lt;/P&gt;
&lt;PRE&gt;import phoenixdb
database_url = 'http://localhost:8765/?v=1.6'
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()
&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 01:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenixdb-FetchAll-not-working/m-p/170321#M41859</guid>
      <dc:creator>annepuharsha</dc:creator>
      <dc:date>2016-09-27T01:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenixdb FetchAll not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenixdb-FetchAll-not-working/m-p/170322#M41860</link>
      <description>&lt;P&gt;I think the issue is using the same cursor or it's because of you using the wrong version of Phoenix/Phoenix connection.&lt;/P&gt;&lt;P&gt;Remember you also need to be using an older version as the newest version of Phoenix uses Google Protocol Buffers for data retrieval and PhoenixDB only does the older jSON.&lt;/P&gt;&lt;P&gt;See: &lt;A href="https://bitbucket.org/lalinsky/python-phoenixdb" target="_blank"&gt;https://bitbucket.org/lalinsky/python-phoenixdb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is your server running Phoenix 4.7, then it is v=1.6, but that is Protocol Buffers.   Python does not support this.   You can restart your  phoenix query server with the phoenix.queryserver.serialization parameter set to JSON.&lt;/P&gt;&lt;P&gt;Hopefully Python-PhoenixDB will be updated to use the current protocol.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 01:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenixdb-FetchAll-not-working/m-p/170322#M41860</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-09-27T01:29:54Z</dc:date>
    </item>
  </channel>
</rss>

