我正在尝试使用cassandra通过kafka连接Meetup流媒体api。cqlengine
看起来它以前是一个单独的项目,我使用的参考代码是在那个时候制作的。在
所以之前,cqlengine.management
有{cassandra.cqlengine.management
有{
我正在尝试创建键空间。在
create_keyspace_simple('meetup', 'SimpleStrategy', 1)
但是,我得到了这个错误。 警告:
/Users/a/anaconda/lib/python2.7/site-packages/cassandra/cqlengine/management.py:419: UserWarning: CQLENG_ALLOW_SCHEMA_MANAGEMENT environment variable is not set. Future versions of this package will require this variable to enable management functions.
warnings.warn(msg)
错误:
^{pr2}$
根据documentation的外观,
create_keyspace_simple
接受以下参数列表:基于这一点,我认为如果您删除“SimpleStrategy”参数,您的语句将起作用。由于您使用的是
^{pr2}$create_keyspace_simple
,所以SimpleStrategy是隐含的,因此您不必指定它。在相关问题 更多 >
编程相关推荐