其实,这个项目的文档已经很完善了,我也没改啥.就是在编译过程中遇到一些坑。记录一下吧!
其他的,建议还是看官网的资料。
这个分支完全是基于3.0.0的官网版本。使用请注意版本号。
这是碰到第一个比较坑的问题,不知道为什么,一直在下载 geckodriver 的时候失败。尝试过修改镜像源为中国的,但是都不行。 最后是设置了一个环境变量才解决的这个问题。
npm config set geckodriver_cdnurl https://repo.huaweicloud.com/geckodriver/
npm install geckodriver
我在编译的过程中,碰到了很多次npm包安装失败的问题,除了上边的那个包,其他都是手工安装成功的。执行:
npm install 包名
这应该是整个项目,我唯一修改了源码的地方。
忘了之前是啥域名了,反正一直下载不下来。
后来我给修改为https://nodejs.org/dist/v14.21.3/node-v14.21.3-win-x64.zip
就很顺利了
先拉取依赖
yarn osd bootstrap
再运行,当然前提是配置文件要配置好
yarn start
配置文件 就是 config/opensearch_dashboards.yml
官网给出了,如下配置项:
opensearch.hosts: ["https://localhost:9200"]
opensearch.username: "admin" # Default username on the docker image
opensearch.password: "admin" # Default password on the docker image
opensearch.ssl.verificationMode: none
也许是习惯了kibana的配置,我也就配置了
opensearch.hosts: ["http://127.0.0.1:9200"]
server.name: "Opensearch"
server.port: 5601
用官网的就好 mac 平台使用
yarn build-platform --darwin
其他平台根据情况修改参数:
darwin (builds Darwin x64)
linux (builds Linux x64)
linux-arm (builds Linux ARM64).
windows (builds Windows x64)
OpenSearch Dashboards is an open source search and analytics visualization. We aim to be the best community-driven platform and provide all the contributors a great open source experience.
Feel free to take a look at what the community has been up to, and then head over to the Project Board to track release targets, or jump in and start opening issues, set up your development environment, or start contributing.
- Project Website
- Downloads
- Documentation
- Need help? Try Forums
- Project Principles
- Developer Guide
- Contributing to OpenSearch
- Maintainer Responsibilities
- Release Management
- Testing
- Security
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
This project is licensed under the Apache v2.0 License.
Copyright OpenSearch Contributors. See NOTICE for details.