【发布时间】:2018-05-28 11:08:40
【问题描述】:
我使用的是 cassandra 2.1.16 版。我已经验证 cli.history 文件最多包含 501 行。但是我没有看到 cqlsh_history 文件有限制。任何想法。
【问题讨论】:
我使用的是 cassandra 2.1.16 版。我已经验证 cli.history 文件最多包含 501 行。但是我没有看到 cqlsh_history 文件有限制。任何想法。
【问题讨论】:
cqlsh uses the readline Python module,并且没有设置历史长度。默认情况下,readlinedoes not limit the history file。
这假设您使用的是 CPython 2.7。如果你有不同的解释器,你可以检查默认使用
python -c "import readline; print readline.get_history_length()"
【讨论】: