macos m1安装elasticsearch kibana arm64v8

# docker pull arm64v8/elasticsearch:7.14.1
# docker pull arm64v8/kibana7.14.1

如果出现
【报错】: Error response from daemon: manifest for arm64v8/elasticsearch:latest not found: manifest unknown: manifest unknown
代表没有加版本号,记住要加版本号。

启动es

docker run -d --name elasticsearch --net somenetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" \ 
-e ES_JAVA_OPTS="-Xms64m -Xmx128m" \
 -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
 -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \
 -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \ 
 -d arm64v8/elasticsearch:7.14.1

若docker ps没有启动

dokcer logs elasticsearch

【报错】:
Caused by: ParsingException[Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]]
at org.elasticsearch.common.xcontent.XContentParserUtils.parsingException(XContentParserUtils.java:74)
at org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpectedToken(XContentParserUtils.java:68)
at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:606)
at org.elasticsearch.common.settings.Settings.access 400 ( S e t t i n g s . j a v a : 71 ) a t o r g . e l a s t i c s e a r c h . c o m m o n . s e t t i n g s . S e t t i n g s 400(Settings.java:71) at org.elasticsearch.common.settings.Settings 400(Settings.java:71)atorg.elasticsearch.common.settings.SettingsBuilder.loadFromStream(Settings.java:1098)
代表配置文件解析错误
发现elasticsearch.yml中http.host:0.0.0.0忘记加空格了,加上空格后就可以通过端口访问了。
macos m1安装elasticsearch kibana arm64v8_第1张图片

你可能感兴趣的:(大数据,elasticsearch,macos)