【问题标题】:Impossible to use gremlin in OrientDB Studio在 OrientDB Studio 中无法使用 gremlin
【发布时间】:2020-07-18 18:45:27
【问题描述】:


我一直在尝试使用 OrientDB 提供的“工作室”将 gremlin 与 OrientDB (V 3.0.30) 一起使用,但每次我尝试运行诸如 g.V 之类的 gremlin 查询时都会收到错误消息:com.orientechnologies.orient.core.exception.OSecurityException: Language 'gremlin' is not allowed to be executed DB name="demodb"
我正在使用全新的安装(在 Windows 上),并且我确实有一个 tp3 附带的版本。

我尝试创建新数据库,每次将它们设置为图形数据库,并尝试将 gremlin 添加到 orientdb-server-config.xlm 作为服务器端脚本解释器的允许语言,但没有任何改变。
我应该更改哪些设置才能从这个“工作室”执行 gremlin 代码?

提前谢谢你。

【问题讨论】:

    标签: orientdb gremlin orientdb3.0


    【解决方案1】:

    这是 3.0.28 的发行说明

    重要提示:在此版本中,出于安全原因,默认情况下禁用远程脚本(除了 SQL,当然默认情况下仍启用)。这会影响执行,如下所示

    db.execute("gremlin", "");

    要重新启用远程脚本,您必须编辑 orientdb-server-config.xml,将您需要的脚本语言添加到 OServerSideScriptInterpreter:

        <handler class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter">
            <parameters>
                <parameter value="true" name="enabled"/>
                <parameter value="SQL,GREMLIN" name="allowedLanguages"/>
            </parameters>
        </handler>
    

    发布说明链接:

    https://github.com/orientechnologies/orientdb/wiki/OrientDB-3.0-Release-Notes#3028---5-february-2020

    【讨论】:

    • 谢谢,这是我尝试做的,但我输入了小写的 gremlin,并且在它之前有一个空格。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多