进入janusgraph安装目录
export HADOOP_USER_NAME=hbase
./bin/gremlin.sh
graph = JanusGraphFactory.open(“conf/zw/janusgraph-hbase-es.properties”) mgmt = graph.openManagement()
// 获取janus instance mgmt.getOpenInstances()
// 关闭非当前instance
mgmt.getOpenInstances().forEach{id -> if (if.indexOf(‘current’)<0) }mgmt.forceCloseInstance(id)}
mgmt.commit()
// 修改参数 mgmt = graph.openManagement()
mgmt.set(‘ids.block-size’, 10000000)
mgmt.commit()
// 退出 :q