Nebula Engine

This article mainly introduces the installation, use and configuration of the Nebula engine plugin in Linkis.

If you want to use Nebula engine on your Linkis service, you need to install Nebula service and make sure the service is available.

  1. # Execute the task
  2. ./usr/local/bin/nebula-console -u root -p password --address=graphd --port=9669
  3. CREATE SPACE IF NOT EXISTS my_space_1 (vid_type=FIXED_STRING(30));SHOW SPACES;
  4. # Get the following output to indicate that the service is available
  5. +--------------+
  6. | Name |
  7. +--------------+
  8. | "my_space_1" |
  9. +--------------+

Compile the engine plug-in separately (requires maven environment)

  1. # compile
  2. cd ${linkis_code_dir}/linkis-engineconn-plugins/nebula/
  3. mvn clean install
  4. # The compiled engine plug-in package is located in the following directory
  5. ${linkis_code_dir}/linkis-engineconn-plugins/nebula/target/out/

EngineConnPlugin Engine Plugin Installation

Upload the engine package in 2.1 to the engine directory of the server

  1. ${LINKIS_HOME}/lib/linkis-engineplugins

The directory structure after uploading is as follows

  1. linkis-engineconn-plugins/
  2. ├── nebula
  3. ├── dist
  4. └── 3.0.0
  5. ├── conf
  6. └── lib
  7. └── plugin
  8. └── 3.0.0

Refresh the engine by restarting the linkis-cg-linkismanager service

  1. cd ${LINKIS_HOME}/sbin
  2. sh linkis-daemon.sh restart cg-linkismanager

You can check whether the last_update_time of the linkis_engine_conn_plugin_bml_resources table in the database is the time to trigger the refresh.

  1. #login to `linkis` database
  2. select * from linkis_cg_engine_conn_plugin_bml_resources;
  1. sh ./bin/linkis-cli -engineType nebula-3.0.0 -codeType nebula \
  2. -code 'CREATE SPACE IF NOT EXISTS my_space_1 (vid_type=FIXED_STRING(30));SHOW SPACES;' \
  3. -runtimeMap linkis.nebula.port=9669 -runtimeMap linkis.nebula.host=wds07

More Linkis-Cli command parameter reference: Linkis-Cli usage

ConfigurationDefaultRequiredDescription
linkis.nebula.host127.0.0.1nohost
linkis.nebula.port9669noport
linkis.nebula.usernamerootnousername
linkis.nebula.passwordnebulanopassword
linkis.nebula.max.conn.size100nomax conn size
linkis.nebula.reconnect.enabledfalsenowhether to retry after the connection is disconnected
linkis.engineconn.concurrent.limit100noMaximum concurrent number of engines
linkis.nebula.default.limit5000noLimit the number of result sets