Docker安裝JanusGraph
janusgraph中文文件:http://www.janusgraph.cn/
JanusGraph提供Docker image,使得其能在Docker容器中執行。下面就舉例如何使用Docker技術來安裝和執行JanusGraph:
$ docker run -it -p 8182:8182 janusgraph/janusgraph
執行docker命令,獲取janusgraph的Dockerimage並執行於Docker容器,8182埠作為服務埠暴露對外。啟動日誌如下:
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/janusgraph/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/janusgraph/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 0 [main] INFO com.jcabi.manifests.Manifests - 110 attributes loaded from 283 stream(s) in 130ms, 110 saved, 3770 ignored: ["Agent-Class", "Ant-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Boot-Class-Path", "Branch", "Build-Date", "Build-Host", "Build-Id", "Build-Java-Version", "Build-Jdk", "Build-Job", "Build-Number", "Build-Timestamp", "Build-Version", "Built-At", "Built-By", "Built-Date", "Built-OS", "Built-On", "Built-Status", "Bundle-ActivationPolicy", "Bundle-Activator", "Bundle-BuddyPolicy", "Bundle-Category", "Bundle-ClassPath", "Bundle-ContactAddress", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "Can-Redefine-Classes", "Change", "Class-Path", "Created-By", "DSTAMP", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-ExtensibleAPI", "Embed-Dependency", "Embed-Transitive", "Export-Package", "Extension-Name", "Extension-name", "Fragment-Host", "Gradle-Version", "Gremlin-Lib-Paths", "Gremlin-Plugin-Dependencies", "Gremlin-Plugin-Paths", "Ignore-Package", "Implementation-Build", "Implementation-Build-Date", "Implementation-Title", "Implementation-URL", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "Java-Vendor", "Java-Version", "Main-Class", "Manifest-Version", "Maven-Version", "Module-Email", "Module-Origin", "Module-Owner", "Module-Source", "Originally-Created-By", "Os-Arch", "Os-Name", "Os-Version", "Package", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Bundle", "Require-Capability", "Scm-Connection", "Scm-Revision", "Scm-Url", "Specification-Title", "Specification-Vendor", "Specification-Version", "TODAY", "TSTAMP", "Time-Zone-Database-Version", "Tool", "X-Compile-Elasticsearch-Snapshot", "X-Compile-Elasticsearch-Version", "X-Compile-Lucene-Version", "X-Compile-Source-JDK", "X-Compile-Target-JDK", "hash", "implementation-version", "mode", "package", "service", "url", "version"] 1 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - 3.4.1 \,,,/ (o o) -----oOOo-(3)-oOOo----- 100 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Configuring Gremlin Server from /etc/opt/janusgraph/gremlin-server.yaml ... ... 3965 [gremlin-server-boss-1] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Gremlin Server configured with worker thread pool of 1, gremlin pool of 8 and boss thread pool of 1. 3965 [gremlin-server-boss-1] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Channel started at port 8182.
等待服務啟動完成後,就可以啟動Gremlin Console來連線新安裝的janusgraph server:
$ bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>Configured localhost/127.0.0.1:8182
為了方便起見,這裡在同一臺機器同時安裝JanusGraph Server和Gremlin Console Client:
首先在機器上建立Docker容器來執行JanusGraph Server。
$ docker run --name janusgraph-default janusgraph/janusgraph:latest
然後在這臺機器上再另啟一個容器來執行Gremlin Console Client並連線執行中的Janusgraph Server。
$ docker run --rm --link janusgraph-default:janusgraph -e GREMLIN_REMOTE_HOSTS=janusgraph \ -it janusgraph/janusgraph:latest ./bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>Configured janusgraph/172.17.0.2:8182
相關文章
- Janusgraph安裝部署與IDEA連結CassandraIdea
- 安裝dockerDocker
- 安裝 dockerDocker
- docker 安裝Docker
- docker安裝及解除安裝Docker
- docker 安裝 RabbitMQDockerMQ
- docker 安裝 PHPDockerPHP
- docker安裝使用Docker
- Docker安裝NacosDocker
- docker 安裝 mysqlDockerMySql
- Docker安裝mongodbDockerMongoDB
- Docker安裝PortainerDockerAI
- docker安裝harborDocker
- redhat安裝dockerRedhatDocker
- docker安裝zookeeperDocker
- macOS 安裝 DockerMacDocker
- Docker 安裝 NacosDocker
- MacOS Docker 安裝MacDocker
- Windows Docker 安裝WindowsDocker
- CentOS Docker 安裝CentOSDocker
- Ubuntu Docker 安裝UbuntuDocker
- windows安裝dockerWindowsDocker
- CentOS 安裝 dockerCentOSDocker
- docker安裝giteaDockerGit
- docker 安裝 supersetDocker
- macOS安裝DockerMacDocker
- Docker的安裝Docker
- Docker安裝tfsDocker
- CentOS安裝DockerCentOSDocker
- DOCKER windows安裝DockerWindows
- 三、Docker安裝Docker
- docker 解除安裝Docker
- ubuntu 安裝 dockerUbuntuDocker
- docker安裝svnDocker
- docker安裝redisDockerRedis
- docker安裝mysqlDockerMySql
- Docker安裝RabbitmqDockerMQ
- docker 安裝 redisDockerRedis