【问题标题】:DSE Gremlin Console: Cannot modify schemaDSE Gremlin 控制台:无法修改架构
【发布时间】:2016-11-22 16:44:27
【问题描述】:

我已经安装了带有 DSE Graph 引擎的 DSE 5.0,并且正在尝试按照 docs 来启动并运行图形,但在定义图形架构时遇到了问题。

当我尝试引用 schema 时,例如通过执行 schema.propertyKey('test').Text().create(),我收到以下错误:

No such property: schema for class: Script2

我曾尝试挖掘与 DSE Graph 相关的各种配置文件,但没有找到任何有用的东西。以前有没有其他人遇到过这个错误?

【问题讨论】:

    标签: datastax datastax-enterprise gremlin


    【解决方案1】:

    以下是您开始时需要运行的命令:

    system.graph('test_graph').create()
    
    :remote config alias g test_graph.g
    
    schema.config().option('graph.schema_mode').set('Development') //Not having this was probably giving you the error.
    
    schema.propertyKey('testProperty').Text().create()
    

    见:https://docs.datastax.com/en/datastax_enterprise/5.0/datastax_enterprise/graph/using/QuickStartGremlin.html

    "首先,将模式模式设置为Development。Development is a more 允许在任何时候添加模式的宽松模式 测试。对于生产,生产模式模式应设置为 防止可能导致异常的交互式架构更改 行为。”

    【讨论】:

      猜你喜欢
      • 2016-11-04
      • 1970-01-01
      • 1970-01-01
      • 2020-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多