Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_results into a file #198

Closed
samratisking opened this issue May 24, 2017 · 3 comments
Closed

get_results into a file #198

samratisking opened this issue May 24, 2017 · 3 comments

Comments

@samratisking
Copy link

Hi,

The comments provided in the code are not helpful in understanding how to retrieve the results into 'fp'. It is mentioned that the get_results() can be redirected to 'fp'. But an example of how to provide the details for this file stream 'fp' would be really appreciated.

Best Regards,
Sam

@mcarlsen
Copy link
Contributor

mcarlsen commented Nov 6, 2017

You should be able to use any file-like object that you can write bytes to. E.g. my_hive_command.get_results(fp=open('/tmp/outfile', 'wb'))

@wmoussa
Copy link

wmoussa commented Apr 27, 2018

@mcarlsen did Qubole stopped supporting this project? seems several PR could be merged.

@chattarajoy
Copy link
Member

Closing as this is working, we are working on better docs btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants