imbajin commented on code in PR #420: URL: https://github.com/apache/incubator-hugegraph-doc/pull/420#discussion_r2444747848
########## content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md: ########## @@ -51,6 +53,9 @@ Next, open the `Run/Debug Configurations` panel in IntelliJ IDEA and create a ne - Select `hugegraph-dist` as the `Use classpath of module`. - Set the `Main class` to `org.apache.hugegraph.cmd.InitStore`. - Set the program arguments to `conf/rest-server.properties`. Note that the path here is relative to the working directory, so make sure to set the working directory to `path-to-your-directory`. +- RocksDB Plus requires preloading dynamic libraries via the `LD_PRELOAD` mechanism. Developers need to set two environment variables: `LD_LIBRARY_PATH` should point to the `library` directory extracted by `preload-topling.sh`, and `LD_PRELOAD` should be set to `libjemalloc.so:librocksdbjni-linux64.so` to ensure the necessary libraries are correctly loaded at runtime. Review Comment: ```suggestion - ToplingDB requires preloading dynamic libraries via the `LD_PRELOAD` mechanism. Developers need to set two environment variables: `LD_LIBRARY_PATH` should point to the `library` directory extracted by `preload-topling.sh`, and `LD_PRELOAD` should be set to `libjemalloc.so:librocksdbjni-linux64.so` to ensure the necessary libraries are correctly loaded at runtime. ``` ########## content/cn/docs/contribution-guidelines/hugegraph-server-idea-setup.md: ########## @@ -51,6 +53,9 @@ rocksdb.wal_path=. - 在 `Use classpath of module` 中选择 `hugegraph-dist` - 将 `Main class` 设置为 `org.apache.hugegraph.cmd.InitStore` - 设置运行参数为 `conf/rest-server.properties`,这里的路径是相对于工作路径的,需要将工作路径设置为 `path-to-your-directory` +- RocksDB Plus 需要通过 `LD_PRELOAD` 机制预加载动态库,开发者需设置两个环境变量:`LD_LIBRARY_PATH` 指向 `preload-topling.sh` 解压出的 `library` 目录,`LD_PRELOAD` 设置为 `libjemalloc.so:librocksdbjni-linux64.so`,以确保相关库在运行时被正确加载 Review Comment: ```suggestion - (可选) ToplingDB 需要通过 `LD_PRELOAD` 机制预加载动态库,开发者需设置两个环境变量:`LD_LIBRARY_PATH` 指向 `preload-topling.sh` 解压出的 `library` 目录,`LD_PRELOAD` 设置为 `libjemalloc.so:librocksdbjni-linux64.so`,以确保相关库在运行时被正确加载 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
