'Unable to dump data in output file using beeline in hiveql

Beeline query is returning no rows selected when dumping to file and the output file is blank.

I am able to get results on simply querying. The difference in query is that I am not using limit function while dumping data.

Below is the format :

beeline -e "query" > sample_file.csv

Also tries with :

beeline --showHeader=false --outputformat=csv  -e "query" > sample_file.csv


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source