cassandra cqlsh_history和cli.history的最大行数/行数是多少?

时间:2017-12-14 11:16:56

标签: cassandra cassandra-2.1

我正在使用cassandra 2.1.16版。我已经证实cli.history文件包含最多501行。但是我没有看到cqlsh_history文件有限制。对此有任何想法。

1 个答案:

答案 0 :(得分:1)

cqlsh uses the readline Python module,并且未设置历史记录长度。默认情况下,readline does not limit the history file

这假设您正在使用CPython 2.7。如果您有不同的解释器,则可以使用

检查默认值
python -c "import readline; print readline.get_history_length()"
相关问题