安裝了elasticsearch curator 套件
下指令時出現錯誤
python /usr/lib/python2.7/site-packages/curator/curator.py close --timestring %Y.%m.%d --prefix logstash --older-than 14
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 2, in <module>
from .cli import cli
ValueError: Attempted relative import in non-package
請高手協助解決
下指令時出現錯誤
python /usr/lib/python2.7/site-packages/curator/curator.py close --timestring %Y.%m.%d --prefix logstash --older-than 14
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 2, in <module>
from .cli import cli
ValueError: Attempted relative import in non-package
請高手協助解決
0 个回复