I used to be able to use below hive command to run query file in batch mode and output the result to a CSV file. I used -S option to suppress the query log so only the query output is exported to the CSV file. I also used nohup to let the big job run even I logged out the system.
nohup hive -S -f /home/wj19670/pad.sql >pad.csv &
However under beeline, I can use the query in batch mode using below. But seems I can not use the -S option and nohup anymore. beeline is new to me. Does that beeline does not support -S and nohup?
beeline -u 'jdbc:hive2://server.domain.<>.com:10000/default;principal=hive/server.domain.com@SERVER.DOMAIN.COM' -f filename.hql