Download query result from Presto JDBC interface

90 views
Skip to first unread message

Rohit Jangid

unread,
Oct 31, 2017, 11:59:52 AM10/31/17
to Hue-Users
Hi,

We are evaluating Hue with presto at Expedia and facing this issue where we need to download query result but getting below error that it is not supported yet. Is there any work going on in this direction? 

[31/Oct/2017 08:28:02 -0700] middleware   INFO     Processing exception: Downloading is not supported yet: Traceback (most recent call last):
 
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
    response
= wrapped_callback(request, *callback_args, **callback_kwargs)
 
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner
   
return func(*args, **kwargs)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/decorators.py", line 55, in decorate
   
return view_func(request, *args, **kwargs)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/views.py", line 313, in download
    response
= get_api(request, snippet).download(notebook, snippet, file_format)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/connectors/jdbc.py", line 123, in download
   
raise PopupException('Downloading is not supported yet')
PopupException: Downloading is not supported yet


Romain Rigaux

unread,
Nov 1, 2017, 9:04:59 AM11/1/17
to Rohit Jangid, Hue-Users

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.

Rohit Jangid

unread,
Nov 7, 2017, 11:51:43 PM11/7/17
to Hue-Users, em...@rohitjangid.com
Hi,

I am on the latest release. Actually I am looking for downloading presto query result via jdbc and that is what I think is not supported. 
The support added in https://issues.cloudera.org/browse/HUE-3996 is via rdbms api I believe.  
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.

daiki takioka

unread,
Apr 22, 2018, 11:21:53 PM4/22/18
to Hue-Users, em...@rohitjangid.com
私もjdbc経由でDLしたかったために、この件につきましたが、追加修正されていなかったので、適当に修正してつかっています。
apache-drillでしか、動作確認していませんが、ファイルを添付しておきます。
デフォルトで1000件までしか取り込まない仕様のようなので、(CONFを見ていない)必要があれば削除
query_and_fetchの1000件制限を外してください。

11月8日、2017水曜日13:51:43 UTC + 9 Rohit Jangid:
Hi,

私は最新のリリースです。実際に私はjdbcを介してprestoクエリの結果をダウンロードするために探している、それは私がサポートされていないと思うものです。 
サポートはhttps://issues.clouderaで追加されました  org / browse / HUE-3996  はrdbms api経由です。  

2017年11月1日水曜日、午後6時34分59秒(UTC + 5:30)にRomain Rigauxは次のように書いています。
色相はあなたですか?

火曜日、午前8時59分に2017年10月31日にRohit Jangid < em ... @ rohitjangid.com >が書いた:
Hi,

Expediaではプレステで色相を評価していますが、この問題は検索結果をダウンロードする必要がありますが、まだサポートされていないというエラーが表示されます。この方向に何かの仕事はありますか? 

[31/Oct/2017 08:28:02 -0700] middleware   INFO     Processing exception: Downloading is not supported yet: Traceback (most recent call last):
 
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
    response
= wrapped_callback(request, *callback_args, **callback_kwargs)
 
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner
   
return func(*args, **kwargs)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/decorators.py", line 55, in decorate
   
return view_func(request, *args, **kwargs)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/views.py", line 313, in download
    response
= get_api(request, snippet).download(notebook, snippet, file_format)
 
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/connectors/jdbc.py", line 123, in download
   
raise PopupException('Downloading is not supported yet')
PopupException: Downloading is not supported yet


-
Googleグループの「色相ユーザー」グループに登録されているため、このメッセージが届きました。
このグループから退会し、そのグループからの電子メールの受信を停止するには、hue-user + u ... @ cloudera.orgに電子メールを送信してください

jdbc.py
Reply all
Reply to author
Forward
0 new messages