我尝试在Vertica数据库上进行完全备份。当我执行命令时:
/opt/vertica/bin/vbr.py --debug 3 --task backup --config-file vertica_backup.ini
我收到以下错误:
/bin/sh: 1: ulimit: Illegal option -u
Traceback (most recent call last):
File "/opt/vertica/bin/vbr.py", line 2526, in backup
prepareAll()
File "/opt/vertica/bin/vbr.py", line 1888, in prepareAll
configCheck()
File "/opt/vertica/bin/vbr.py", line 506, in configCheck
concurrency_upperboud = int(subprocess.Popen(['ulimit -u'],
shell=True, stdout= subprocess.PIPE).communicate()[0].strip())
ValueError: invalid literal for int() with base 10: ''
backup failed unexpectedly!
我的vertica_backup.ini文件:
[Misc]
snapshotName = vertica_backup
restorePointLimit = 1
passwordFile = vertica
[Database]
dbName = dwh_vertica
dbUser = dbadmin
[Transmission]
[Mapping]
v_dwh_vertica_node0001 = vertica1:/home/dbadmin/backups
Debian Wheezy:
Linux vertica1 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt11-1~bpo70+1 (2015-06-08) x86_64 GNU/Linux
/ bin / sh指向/ bin / sh - >破折号
答案 0 :(得分:0)
我找到了解决方法,在Vertica备份文件/opt/vertica/bin/vbr.py中我将ulimit -u更改为ulimit -n。