1
Please, I tried the code below on Hive 1.2.1000.2.6.5.0-292 and there was an error. How can I extract data from a query in a csv without creating a table?
hive --e 'select * from product limit 10;' | sed 's/[[:space:]]\+/,/g' > ~/output.csv;
Error:
FAILED: ParseException line 1:0 cannot recognize input near 'hive' '<EOF>' '<EOF>'
Watch out for code formatting to be readable
– Ademir Mazer Jr - Nuno