在xshell中執行hive sql 並將結果寫入另外一個txt文本中

在xshell 中進入文件夾:sql vi test.sqlshell 而後將要執行的sql輸入,注意開頭不能有空格spa 寫完後按Esc鍵,輸入:x保存並退出ip 輸入下面代碼:ci /usr/bin/beeline -u "jdbc:hive2://dsrv1.heracles.sohuno.com:10000/mbadp;principal=hive/dsrv1.heracles.sohun
相關文章
相關標籤/搜索