## Started sqlline in /tmp/alicana directory
0: jdbc:phoenix:> !record data.csv
Saving all output to "/tmp/alicana/data.csv". Enter "record" with no arguments to stop it.
0: jdbc:phoenix:> !record ../alicana-data.csv
Saving all output to "/tmp/alicana/../alicana-data.csv". Enter "record" with no arguments to stop it.
## When sqlline started in (~) user home
0: jdbc:phoenix:> !record data.csv
Saving all output to "/home/alicana/data.csv". Enter "record" with no arguments to stop it.
## Official sqlline documentation
0: jdbc:oracle:thin:@localhost:1521:mydb> !record /tmp/mysession.out
Saving all output to "/tmp/mysession.out". Enter "record" with no arguments to stop it.
1条答案
按热度按时间vc6uscn91#
可能您的data.csv文件是在您机器的根目录中生成的,因为您的文件以
/
. 通常,路径前缀将是启动phoenix-sqlline
贝壳(实际上,路径是在开始记录之前登录到sqlline的)例如: