How can I save my query results in a CSV file via the Impala Shell.
My Code:
impala-shell -q "use test;
select * from teams;
-- From this point I need to save the query results to /Desktop (for example).
"
The problem that I am getting is that I have to select the DB first and then operate the query, but I only see syntax commands that directly uses the query instead of using the DB and then the query.
--print header
in the command. community.cloudera.com/t5/Interactive-Short-cycle-SQL/… – Pedestrianism