Hive Beeline 命令行参数

  1. The Beeline CLI 支持以下命令行参数:    
  2. Option    
  3. Description    
  4. --autoCommit=[true/false] ---进入一个自动提交模式:beeline --autoCommit=true    
  5. --autosave=[true/false]   ---进入一个自动保存模式:beeline --autosave=true    
  6. --color=[true/false]    ---显示用到的颜色:beeline --color=true    
  7. --delimiterForDSV= DELIMITER ---分隔值输出格式的分隔符。默认是“|”字符。    
  8. --fastConnect=[true/false]  ---在连接时,跳过组建表等对象:beeline --fastConnect=false    
  9. --force=[true/false]    ---是否强制运行脚本:beeline--force=true    
  10. --headerInterval=ROWS   ---输出的表间隔格式,默认是100: beeline --headerInterval=50    
  11. --help ---帮助  beeline --help    
  12. --hiveconf property=value  ---设置属性值,以防被hive.conf.restricted.list重置:beeline --hiveconf prop1=value1     
  13. --hivevar name=value   ---设置变量名:beeline --hivevar var1=value1    
  14. --incremental=[true/false]  ---输出增量  
  15. --isolation=LEVEL  ---设置事务隔离级别:beeline --isolation=TRANSACTION_SERIALIZABLE    
  16. --maxColumnWidth=MAXCOLWIDTH ---设置字符串列的最大宽度:beeline --maxColumnWidth=25    
  17. --maxWidth=MAXWIDTH ---设置截断数据的最大宽度:beeline --maxWidth=150    
  18. --nullemptystring=[true/false]  ---打印空字符串:beeline --nullemptystring=false    
  19. --numberFormat=[pattern]     ---数字使用DecimalFormat:beeline --numberFormat="#,###,##0.00"    
  20. --outputformat=[table/vertical/csv/tsv/dsv/csv2/tsv2] ---输出格式:beeline --outputformat=tsv     
  21. --showHeader=[true/false]   ---显示查询结果的列名:beeline --showHeader=false    
  22. --showNestedErrs=[true/false] ---显示嵌套错误:beeline --showNestedErrs=true    
  23. --showWarnings=[true/false] ---显示警告:beeline --showWarnings=true    
  24. --silent=[true/false]  ---减少显示的信息量:beeline --silent=true    
  25. --truncateTable=[true/false] ---是否在客户端截断表的列       
  26. --verbose=[true/false]  ---显示详细错误信息和调试信息:beeline --verbose=true    
  27. -d <driver class>  ---使用一个驱动类:beeline -d driver_class    
  28. -e <query>  ---使用一个查询语句:beeline -e "query_string"    
  29. -f <file>  ---加载一个文件:beeline -f filepath  多个文件用-e file1 -e file2  
  30. -n <username>  ---加载一个用户名:beeline -n valid_user    
  31. -p <password>  ---加载一个密码:beeline -p valid_password    
  32. -u <database URL> ---加载一个JDBC连接字符串:beeline -u db_URL   </span>  

猜你喜欢

转载自blog.csdn.net/gyxinguan/article/details/80179864