Skip to content

这是一个编译通过的项目,我没想过要做什么,只是希望编译一个包,可以用。拉取的时候,版本号是3.0.0,似乎官方还没发布呢!

License

Notifications You must be signed in to change notification settings

xiaodizi/OpenSearch-Dashboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

我都干了啥?

其实,这个项目的文档已经很完善了,我也没改啥.就是在编译过程中遇到一些坑。记录一下吧!

其他的,建议还是看官网的资料。

这个分支完全是基于3.0.0的官网版本。使用请注意版本号。

1、无法下载geckodriver

这是碰到第一个比较坑的问题,不知道为什么,一直在下载 geckodriver 的时候失败。尝试过修改镜像源为中国的,但是都不行。 最后是设置了一个环境变量才解决的这个问题。

npm config set geckodriver_cdnurl https://repo.huaweicloud.com/geckodriver/
npm install geckodriver

2、npm包安装失败

我在编译的过程中,碰到了很多次npm包安装失败的问题,除了上边的那个包,其他都是手工安装成功的。执行:

npm install 包名

3、编译打包的时候无法下载node

这应该是整个项目,我唯一修改了源码的地方。

忘了之前是啥域名了,反正一直下载不下来。

后来我给修改为https://nodejs.org/dist/v14.21.3/node-v14.21.3-win-x64.zip

就很顺利了

4、运行源码

先拉取依赖

yarn osd bootstrap

再运行,当然前提是配置文件要配置好

yarn start

配置文件 就是 config/opensearch_dashboards.yml

5、关于配置

官网给出了,如下配置项:

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

6、关于打包编译

用官网的就好 mac 平台使用

yarn build-platform --darwin

其他平台根据情况修改参数:

darwin (builds Darwin x64)
linux (builds Linux x64)
linux-arm (builds Linux ARM64).
windows (builds Windows x64)

Welcome

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.

Code Summary

Build and Test Unit Test Code Coverage Link Checker

Project Resources

Code of Conduct

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.

License

This project is licensed under the Apache v2.0 License.

Copyright

Copyright OpenSearch Contributors. See NOTICE for details.

About

这是一个编译通过的项目,我没想过要做什么,只是希望编译一个包,可以用。拉取的时候,版本号是3.0.0,似乎官方还没发布呢!

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 77.0%
  • JavaScript 21.4%
  • CSS 0.7%
  • SCSS 0.7%
  • Shell 0.2%
  • EJS 0.0%