巩膜平台管理工具

scleradmin的Python项目详细描述


巩膜平台管理工具

PyPI version

Sclera是一个独立的SQL处理器,对机器学习、数据虚拟化和流数据提供本机支持。在

此工具使用交互式命令行shell将Sclera安装为独立的应用程序。在

先决条件:巩膜需要Java 13 or higher。在

我们建议不要使用root/admin权限安装Sclera。Sclera在安装或运行时不需要root访问权限。

使用

       scleradmin [-h] [--install] [--add plugin [plugin ...]]
                  [--remove plugin [plugin ...]] [--update] [--root rootdir]
                  [--overwrite]

Sclera Platform Administration

optional arguments:
  -h, --help            show this help message and exit
  --install             install Sclera in the root directory
  --add plugin [plugin ...]
                        add plugins
  --remove plugin [plugin ...]
                        remove plugins
  --update              update Sclera and installed plugins to the latest version
  --root rootdir        root directory location (if not specified, will use
                        $SCLERA_ROOT if present, otherwise ~/sclera)
  --overwrite           overwrite root directory if present

In --add and --remove above, 'plugin' has the format 'org:name:version', where
'org:' and ':version' are optional. When not specified, 'org' defaults to
'com.scleradb' and 'version' defaults to the latest installable version.

Sclera requires Java 13 or higher.

安装巩膜核心包和外壳

以下命令安装Sclera:

^{pr2}$

在上面,<sclera-root>是要安装Sclera的目录。此目录在安装之前不能存在,它是由命令创建的(这是防止意外覆盖的一种保护措施)。安装后目录的内容描述为later in this document。在

安装包括下载核心巩膜组件和相关库。这可能需要几分钟;您可以通过查看<sclera-root>/install/log/install.log中生成的日志来监视进度。在

使用Shell

可以使用以下命令启动shell:

> <sclera-root>/bin/sclera

这将启动shell,您可以在其中交互式地运行查询。完成后,您可以通过键入Control-D终止会话。在

Welcome to Sclera 4.0

> select "Hello, world!" as greeting;
---------------
 GREETING
---------------
 Hello, world!
---------------
(1 row)

> ^D
Goodbye!

有关使用shell的详细信息,请参阅Command Line Shell Reference。在

根目录结构

安装后,根目录具有以下结构:

[<sclera-root>]
  bin/
    sclera.cmd         # executable command file (generated for Windows systems)
    sclera             # executable bash script (generated for Linux, macOS, and other Unix-based systems)
  config/
    sclera.conf        # configuration file
  extlib/              # directory for additional libraries, plugins (initially empty)
  home/
    assets/
      data/            # data stored by the embedded temporary database (H2), etc.
    history            # shell command history
    log/
      sclera.log       # execution log, contains details of runtime progress
  install/
    boot/              # specification files for sclera components (core or plugin)
    launcher*.jar      # SBT launcher, used for installing sclera components
    log/
      install.log      # installation log, contains details of installation progress
  lib/                 # installation artifacts (jars, etc.) of installed components and their dependencies

插件管理

巩膜提供a variety of plugins,可以使用scleradmin添加。命令语法为:

> scleradmin --add <plugins> --root <sclera-root>

在上面,<plugins>是要添加的以空格分隔的插件列表,<sclera-root>as earlier是根目录。例如,要将Sclera - CSV File ConnectorSclera - Text File Connector插件添加到安装在/path/to/sclera的Sclera实例,命令是:

> scleradmin --add sclera-csv-plugin sclera-textfiles-plugin --root /path/to/sclera

要删除已安装的插件,语法类似。以下命令将删除上面安装的插件:

> scleradmin --remove sclera-csv-plugin sclera-textfiles-plugin --root /path/to/sclera

您可以在同一个命令中指定要添加的插件列表和要删除的另一个插件列表。在

有关可用插件和其他组件的列表,请参阅Sclera Documentation。在

更新已安装的包和插件

以下命令将Sclera的核心包以及插件更新到最新版本:

> scleradmin --update --root <sclera-root>

其中<sclera-root>as mentioned earlier是根目录。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Hibernate中的java高效删除   java ClassNotFoundException:org。阿帕奇。弗林克。流动。连接器。兔子。常见的RMQConnectionConfig$Builder   java使用正则表达式在括号中查找包含单个字符的单词   web服务如何在java WebMethod中获取POST/get参数?   java中HashMap的ArrayList上的流GroupBy   java“简单”Trie实现   java访问多态数组中的子类变量   java如何检索firebase数据中的嵌套对象   运行线程时java FixedThreadPool和异常   java SwaggerCodegen生成空类,而不是ByteArrayOutputStream的实例   java二进制十进制减法   java查找生成给定值的包的最小数量   映射创建错误Java   mongodb Java MongoTemplate在查询中排除子关系   java在toString方法中避免递归   java从HTML内容中删除空白?   java新的运算符和字符串在这个程序中做什么?   java将ActionListeners添加到小程序中的按钮数组中   java不使用SQL从JPA中删除数据